Created
July 27, 2017 11:31
-
-
Save vestrel00/0f5e03e1026b86a2e3656e2c66f5eff7 to your computer and use it in GitHub Desktop.
A: 7 - 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, | |
Example2ActivitySubcomponent.class | |
}) | |
abstract class AppModule { | |
... | |
// TODO (ContributesAndroidInjector) remove this in favor of @ContributesAndroidInjector | |
@Binds | |
@IntoMap | |
@ActivityKey(Example2Activity.class) | |
abstract AndroidInjector.Factory<? extends Activity> | |
example2ActivityInjectorFactory(Example2ActivitySubcomponent.Builder builder); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment