Skip to content

Instantly share code, notes, and snippets.

@mohsenoid
Last active February 4, 2018 17:13
Show Gist options
  • Save mohsenoid/16a8b457da8927b6b07fd716e724c347 to your computer and use it in GitHub Desktop.
Save mohsenoid/16a8b457da8927b6b07fd716e724c347 to your computer and use it in GitHub Desktop.
package com.mirhoseini.marvel;
/*...*/
@Singleton
@Component(modules = {
AndroidModule.class,
ApplicationModule.class,
ApiModule.class,
DatabaseModule.class,
ClientModule.class
})
public interface ApplicationComponent {
void inject(MainActivity activity);
SearchSubComponent plus(AppSearchModule module);
CacheSubComponent plus(AppCacheModule module);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment