Last active
December 3, 2017 02:38
-
-
Save pokk/e8d3b7b096ad59550177196325a03fa9 to your computer and use it in GitHub Desktop.
app module for my blog.
This file contains hidden or 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 | |
class AppModule { | |
@Provides | |
@Singleton | |
fun provideApplication(app: App): Application = app | |
@Provides | |
@Singleton | |
fun provideAppContext(app: App): Context = app.applicationContext | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment