Explain how you would implement dependency injection in a multi-module mobile application to optimize build times and testability.