Skip to content

Instantly share code, notes, and snippets.

@vestrel00
Created July 26, 2017 19:29
Show Gist options
  • Save vestrel00/bc340f2939383778e40214b4f92acc2f to your computer and use it in GitHub Desktop.
Save vestrel00/bc340f2939383778e40214b4f92acc2f to your computer and use it in GitHub Desktop.
A: 6 - AppModule.java
@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