Skip to content Skip to sidebar Skip to footer
Showing posts with the label Dagger 2

Dagger2 And Qualifiers In Dependent Components

I have an app component and a dependent component. The app component declares explicit dependencies… Read more Dagger2 And Qualifiers In Dependent Components

Dagger 2 On Android: Inject Same Dependency In Activity And Retained Fragment

I have objects of classes F1 and F2 that I want to inject in a retained Fragment. I also have an ob… Read more Dagger 2 On Android: Inject Same Dependency In Activity And Retained Fragment

Dagger 2 On Android, Missing Error Messages

I'm using Dagger 2 in my Android project and I'm having trouble debugging it. I know that t… Read more Dagger 2 On Android, Missing Error Messages

Dagger 2 - How Does Marking A Class Constructor With @inject Without Component Registration Work

i have dagger already set up with two components. One component is a subcomponent of another, big d… Read more Dagger 2 - How Does Marking A Class Constructor With @inject Without Component Registration Work

How Can I Swap Test Doubles At The Scope Of An Activity Or A Fragment Using Dagger 2?

EDIT: Watch out! I have deleted the old repository reffered to in this question. See my own answer … Read more How Can I Swap Test Doubles At The Scope Of An Activity Or A Fragment Using Dagger 2?

How To Catch The Exception In Retrofit Android

I have defined the classes as below. I have used dagger with Retrofit here What I am trying to do:… Read more How To Catch The Exception In Retrofit Android

What Is @autoannotation For? How Could It Be Used?

In https://dagger.dev/multibindings.html, I read about @AutoAnnotation. It has a reference to https… Read more What Is @autoannotation For? How Could It Be Used?

How Do I Make Dagger 1 And Dagger 2 Coexist Together In One Android Project?

We have a huge codebase to migrate from dagger 1 to dagger 2 but we would like to do it step by ste… Read more How Do I Make Dagger 1 And Dagger 2 Coexist Together In One Android Project?