Created
November 17, 2017 09:53
-
-
Save pokk/3bc885c6e73bb5eb6947cd161ddb4fa2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 BindingActivityModule { | |
/** | |
* ContributesAndroidInjector is including fragment injector. Only putting FragmentBindModule in modules array, | |
* the children fragment can obtain the parent's fragment injector. | |
*/ | |
@PerActivity | |
@ContributesAndroidInjector(modules = arrayOf(BindingFragmentModule::class)) | |
abstract fun contributeMainActivityInjector(): MainActivity | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment