Skip to content

Instantly share code, notes, and snippets.

@vestrel00
Created July 27, 2017 12:24
Show Gist options
  • Save vestrel00/3f083128472eddebf4d509e802bf3863 to your computer and use it in GitHub Desktop.
Save vestrel00/3f083128472eddebf4d509e802bf3863 to your computer and use it in GitHub Desktop.
A: 8 - AppModule.java
@Module(includes = AndroidInjectionModule.class,
subcomponents = {
MainActivitySubcomponent.class,
Example1ActivitySubcomponent.class,
Example2ActivitySubcomponent.class,
Example3ActivitySubcomponent.class
})
abstract class AppModule {
...
// TODO (ContributesAndroidInjector) remove this in favor of @ContributesAndroidInjector
@Binds
@IntoMap
@ActivityKey(Example3Activity.class)
abstract AndroidInjector.Factory<? extends Activity>
example3ActivityInjectorFactory(Example3ActivitySubcomponent.Builder builder);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment