-
-
Save denis-itskovich/fba47757c523ea925307f2768cf95d32 to your computer and use it in GitHub Desktop.
AppModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Module | |
public class AppModule { | |
private final Application mApplication; | |
public AppModule(Application application) { | |
mApplication = application; | |
} | |
@Provides @Singleton | |
Application provideApplication() { | |
return mApplication; | |
} | |
@Provides | |
Context provideContext(Application app) { | |
return app; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment