Last active
February 4, 2018 17:13
-
-
Save mohsenoid/16a8b457da8927b6b07fd716e724c347 to your computer and use it in GitHub Desktop.
Sample ApplicationComponent class https://hackernoon.com/yet-another-mvp-article-part-2-how-dagger-helps-with-the-project-90d049a45e00
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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