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

How To Pass A String To A Viewmodel/repository Class Using Dagger2 In Android?

This is my fragment class: public class MyFragment extends DaggerFragment { @Inject MyViewModel… Read more How To Pass A String To A Viewmodel/repository Class Using Dagger2 In Android?

Android Dagger Dependency Cycle

I have 2 dependencies with the same Scope that require of each other. My dependencies are domain s… Read more Android Dagger Dependency Cycle

Dagger 2 - Why Is This A Dependency Cycle?

I'm trying to inject the application's Context into 2 other objects, an AuthManager and an … Read more Dagger 2 - Why Is This A Dependency Cycle?

Dagger: Proper Way To Define Injectable Class That Takes Context In Its Constructor

I want to use dagger (dagger v1 by Square) to create a singleton class whose constructor requires c… Read more Dagger: Proper Way To Define Injectable Class That Takes Context In Its Constructor

Dagger Android Support To Androidx.fragment

How to inject a fragment from the package androidx.fragment.app.Fragment ? I'm using the dagger… Read more Dagger Android Support To Androidx.fragment

Dagger Example Built Through Eclipse Fails With 'please Ensure That Code Generation Was Run For This Module.'

I'm using Dagger for dependency injection in Android, using Eclipse to build. I've cloned … Read more Dagger Example Built Through Eclipse Fails With 'please Ensure That Code Generation Was Run For This Module.'