Created
September 22, 2017 12:55
-
-
Save mcatta/68e0165447253bb1263207121497edb5 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 { | |
Application mApplication; | |
public AppModule(Application application) { | |
mApplication = application; | |
} | |
@Provides | |
@Singleton | |
Application providesApplication() { | |
return mApplication; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment