Category "dagger-2"

Expose Dagger provided dependencies through component or module in multi-module app?

I am looking for some guidance on the best code structure for dagger in multi module android apps. Lets say we have featureModuleA and featureModuleB, both of w

Dagger2 dependent-component vs subcomponent

What's the difference between Subcomponents and Dependent-Components with specific scope in action? What's pros or cons of every one? My Story: Recently I deci

Dagger2 @Provides annotation order issue

Say I have MapperModule like below: @Module public class MapperModule { @Singleton @Provides public static ObjectMapper provideObjectMapper () {

Dagger2 @Provides annotation order issue

Say I have MapperModule like below: @Module public class MapperModule { @Singleton @Provides public static ObjectMapper provideObjectMapper () {

What is the use case for @Binds vs @Provides annotation in Dagger2

I am not certain on the purpose for Dagger2's @Bind annotation. From what i have read online im still not clear but here is an example: @Module public abstr

Android Dagger2 ComponentProcessor was unable to process

I'm trying to make multi module project with Dagger2. You can see my code following the link. In the main branch is working solution where all the dagger classe

Square up FLOW navigation

I followed Lukaspili Demo to create MVP architecture project for Motor & Flow framework integration. I want to have two different activities with for before

Square up Flow History Clear

I am learning android MVP pattern implementation with Square up Motor & Flow concept. I dont know how to clear my Flow history after user login is succeed.

Error:Execution failed for task ':app:kaptDebugKotlin'

I'm new to using Kotlin and trying to set it up with Dagger2, I've seen some few examples but none of them seem to work for me. I keep getting this Error:

Kotling :: Android :: java.lang.ClassCastException: java.lang.Class cannot be cast to androidx.lifecycle.ViewModel

I am getting an exception in the first line of the code below viewModel.homeLiveData.observe(this, Observer { list -> list?.let { mLis

Dagger @Reusable scope vs @Singleton

From the User's Guide: Sometimes you want to limit the number of times an @Inject-constructed class is instantiated or a @Provides method is called, but y

Can someone provide a good explanation of Dagger 2?

I'm really having a hard time understanding the Dagger 2 Dependency injection system. I understand the use of the @Inject annotation to tell Dagger we need to