Skip to content

Instantly share code, notes, and snippets.

@tompee26
Created December 5, 2018 02:57
Show Gist options
  • Save tompee26/983bfed5f0598b6fe0d3e3aecd7c361a to your computer and use it in GitHub Desktop.
Save tompee26/983bfed5f0598b6fe0d3e3aecd7c361a to your computer and use it in GitHub Desktop.
AppComponentWithActivityModule.kt
@Singleton
@Component(
modules = [
AndroidSupportInjectionModule::class,
ActivityModule::class
]
)
interface AppComponent {
@Component.Builder
interface Builder {
@BindsInstance
fun application(application: Application): Builder
fun build(): AppComponent
}
fun inject(myApplicationCustom: MyApplication)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment