Created
July 26, 2017 19:29
-
-
Save vestrel00/bc340f2939383778e40214b4f92acc2f to your computer and use it in GitHub Desktop.
A: 6 - AppModule.java
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(includes = AndroidInjectionModule.class, | |
subcomponents = { | |
MainActivitySubcomponent.class, | |
Example1ActivitySubcomponent.class | |
}) | |
abstract class AppModule { | |
... | |
// TODO (ContributesAndroidInjector) remove this in favor of @ContributesAndroidInjector | |
@Binds | |
@IntoMap | |
@ActivityKey(Example1Activity.class) | |
abstract AndroidInjector.Factory<? extends Activity> | |
example1ActivityInjectorFactory(Example1ActivitySubcomponent.Builder builder); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment