Skip to content

Instantly share code, notes, and snippets.

@CarlitosDroid
Created March 30, 2019 04:31
Show Gist options
  • Save CarlitosDroid/bd802f62958d32a866ef98b3a47d6b7b to your computer and use it in GitHub Desktop.
Save CarlitosDroid/bd802f62958d32a866ef98b3a47d6b7b to your computer and use it in GitHub Desktop.
The main component
@Component(modules = [MainModule::class], dependencies = [CoreComponent::class])
interface MainComponent : BaseComponent<MainActivity> {
@Component.Builder
interface Builder {
fun build(): MainComponent
fun coreComponent(module: CoreComponent): Builder
fun coreGsonModule(module: CoreGsonModule): Builder
fun coreOkHttpModule(module: CoreOkHttpModule): Builder
fun sharePreferencesModule(module: SharedPreferencesModule): Builder
fun mainModule(module: MainModule): Builder
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment