Skip to content

Instantly share code, notes, and snippets.

@MyDogTom
Created October 12, 2017 13:56
Show Gist options
  • Save MyDogTom/11aec8d64906bfba61ba080b6b2e006a to your computer and use it in GitHub Desktop.
Save MyDogTom/11aec8d64906bfba61ba080b6b2e006a to your computer and use it in GitHub Desktop.
Article: Modularization. Gist2. LoginComponent
@Component(
modules = arrayOf(LoginModule::class),
dependencies = arrayOf(LoggedOutComponent::class))
@FeatureScope
interface LoginComponent {
fun inject(activity: LogInActivity)
@Component.Builder
interface Builder {
fun loggedOutComponent(component: LoggedOutComponent): Builder
fun build(): LoginComponent
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment