Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Dagger module
interface AppComponent {
@Component.Factory
interface Factory {
fun create(@BindsInstance context: Context): AppComponent
}
.....
fun getInitializers(): Set<ModuleInitializer>
@Module
abstract class InitializerModule {
@Binds
@IntoSet
abstract fun customerCareInitializer(initializer: CustomerCareInitializer): ModuleInitializer
@Binds
@IntoSet
internal abstract fun subscriptionInitializer(initializer: SubscriptionInitializer): ModuleInitializer
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment