Skip to content

Instantly share code, notes, and snippets.

@hamadycisse
Last active November 17, 2019 19:04
Show Gist options
  • Save hamadycisse/118fe0c77eaf0f9540463548c10da5d8 to your computer and use it in GitHub Desktop.
Save hamadycisse/118fe0c77eaf0f9540463548c10da5d8 to your computer and use it in GitHub Desktop.
@Singleton
@Component(modules = [
AppModule::class,
AndroidSupportInjectionModule::class,
ActivityScopeBuilderModule::class,
UserScopeSubcomponentModule::class
])
interface AppComponent : AndroidInjector<OurApp> {
fun getUserScopeSubcomponentFactory() : UserScopeSubcomponent.Factory
@Component.Builder
interface Builder {
@BindsInstance
fun application(application: OurApp): Builder
fun build(): AppComponent
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment