Skip to content

Instantly share code, notes, and snippets.

@diousk
Last active May 26, 2020 01:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diousk/2ec1d65de9eff96903fd400d08eba658 to your computer and use it in GitHub Desktop.
Save diousk/2ec1d65de9eff96903fd400d08eba658 to your computer and use it in GitHub Desktop.
@Singleton
@Component(
 modules = [
 AndroidSupportInjectionModule::class,
 ActivityBuilder::class,
 AppSubcomponents::class,
 AppModule::class
 ]
)
interface AppComponent : AndroidInjector<App> {
 @Component.Factory
 interface Factory : AndroidInjector.Factory<App>
// expose session manager to control lifecycle of SessionComponent
 fun sessionManager(): SessionManager
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment