Created
May 17, 2018 19:00
-
-
Save maskaravivek/c12b491987012a9e6812db1e8c2cf7fa to your computer and use it in GitHub Desktop.
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 | |
open class AppModule(val application: Application) { | |
@Provides | |
@Singleton | |
internal open fun provideContext(): Context { | |
return application | |
} | |
@Provides | |
@Singleton | |
internal open fun provideUserService(context: Context): UserService { | |
return UserService(context) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment