Skip to content

Instantly share code, notes, and snippets.

@vestrel00
Created July 27, 2017 11:31
Show Gist options
  • Save vestrel00/0f5e03e1026b86a2e3656e2c66f5eff7 to your computer and use it in GitHub Desktop.
Save vestrel00/0f5e03e1026b86a2e3656e2c66f5eff7 to your computer and use it in GitHub Desktop.
A: 7 - AppModule.java
@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