Skip to content

Instantly share code, notes, and snippets.

@vestrel00
Created July 26, 2017 19:06
Show Gist options
  • Save vestrel00/f9d7a6d9e0ae002cf869c8701ae650f0 to your computer and use it in GitHub Desktop.
Save vestrel00/f9d7a6d9e0ae002cf869c8701ae650f0 to your computer and use it in GitHub Desktop.
A: 5 - AppModule.java
@Module(includes = AndroidInjectionModule.class,
subcomponents = MainActivitySubcomponent.class)
abstract class AppModule {
// TODO (ContributesAndroidInjector) remove this in favor of @ContributesAndroidInjector
@Binds
@IntoMap
@ActivityKey(MainActivity.class)
abstract AndroidInjector.Factory<? extends Activity>
mainActivityInjectorFactory(MainActivitySubcomponent.Builder builder);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment