Created
February 1, 2020 09:33
-
-
Save diousk/bf9d9ab63fb5523bb5b83b641efe6e80 to your computer and use it in GitHub Desktop.
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 DummyBuilder { | |
@ContributesAndroidInjector(modules = [DummyModule::class]) | |
abstract fun bindDummygFragment(): DummyFragment | |
// put binding of fragment at this layer(not DummyModule) for parent to inject | |
@Binds | |
@IntoMap | |
@FragmentKey(DummyFragment::class) | |
abstract fun bindDummyFragment(fragment: DummyFragment): Fragment | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment