Skip to content

Instantly share code, notes, and snippets.

@goofyahead
Created April 4, 2017 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofyahead/f13b41ba6beda87a030347f47f552019 to your computer and use it in GitHub Desktop.
Save goofyahead/f13b41ba6beda87a030347f47f552019 to your computer and use it in GitHub Desktop.
@Module(subcomponents = {
TestMainActivitySubComponent.class,
TestSecondaryActivitySubComponent.class
})
public abstract class TestBindingModule {
@Binds
@IntoMap
@ActivityKey(MainActivity.class)
abstract AndroidInjector.Factory<? extends Activity> bindMainActivityInjectorFactory(TestMainActivitySubComponent.Builder builder);
@Binds
@IntoMap
@ActivityKey(SecondaryActivity.class)
abstract AndroidInjector.Factory<? extends Activity> bindMainSecondaryInjectorFactory(TestSecondaryActivitySubComponent.Builder builder);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment