Last active
June 15, 2020 06:26
-
-
Save saurabharora90/e6951bd8296a99889557e6866af6c58b to your computer and use it in GitHub Desktop.
Dagger module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface AppComponent { | |
@Component.Factory | |
interface Factory { | |
fun create(@BindsInstance context: Context): AppComponent | |
} | |
..... | |
fun getInitializers(): Set<ModuleInitializer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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