All Projects → frogermcs → Dagger2recipes Activitiesmultibinding

frogermcs / Dagger2recipes Activitiesmultibinding

Example app which shows how to build Activities Subcomponents Multibinding

Programming Languages

java
68154 projects - #9 most used programming language

Dagger2Recipes-ActivitiesMultibinding

Example app which shows how to build Activities Subcomponents Multibinding


Starting from Dagger 2.7 there is a new way of declaring Subcomponents (my @Module.subcomponents). Thanks to this we are able to decouple AppComponent from Activities Subcomponents.

Using Multibinding we can inject Activity Subcomponents builders without passign instance of AppComponent to Activities what means that finally we can test Activities decoupled from the whole Application. We are able to provide mock objects to our activity without using tools like DaggerMock.

Check blog post: Activities Multibinding in Dagger 2 for more details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].