Skip to content

Instantly share code, notes, and snippets.

@CarlitosDroid
Created March 30, 2019 04:03
Show Gist options
  • Save CarlitosDroid/7765e137374a062d2bddd6c5d3da4d7d to your computer and use it in GitHub Desktop.
Save CarlitosDroid/7765e137374a062d2bddd6c5d3da4d7d to your computer and use it in GitHub Desktop.
The Dagger Core Component in the Core Module(Android Library)
@Component(
modules = [
CoreGsonModule::class,
CoreOkHttpModule::class,
SharedPreferencesModule::class,
UserDataModule::class]
)
interface CoreComponent {
@Component.Builder
interface Builder {
fun build(): CoreComponent
fun coreOkHttpModule(module: CoreOkHttpModule): Builder
fun sharedPreferencesModuleModule(module: SharedPreferencesModule): Builder
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment