Created
January 13, 2020 07:32
-
-
Save ubarua123/e8f1c2d7687813765d11ddee7980c1aa to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@Component(modules = { | |
WorkerBindingModule.class, // To bind our worker classes to the factory | |
AppModule.class, //. Which provides context | |
ActivityBinderModule.class, // TO bind our activities | |
FragmentBinderModule.class, // To bind our fragments | |
AndroidInjectionModule.class | |
}) | |
@Singleton | |
public interface AppComponent extends AndroidInjector<WonderquilApplication> { | |
@Component.Builder | |
interface Builder { | |
@BindsInstance | |
Builder application(Application application); | |
AppComponent build(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment