Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@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
You can’t perform that action at this time.