I have defined this classes for contributing some objects:
interface NavGraphScope
interface NavGraphIdProvider {
val navGraphId: Int
}
and have some implementations like
@ContributesMultibinding(NavGraphScope::class)
object ReferralNavGraphIdProvider : NavGraphIdProvider {
override val navGraphId: Int get() = R.navigation.referral_graph
}
I can contribute them into a component by
@MergeComponent(NavGraphScope::class)
interface MyComponent {
...
}
but I want to contributes them into a MODULE and then introduce it to MyComponent
.
Can I do this? How?