Dagger Questions

Ad

Retaining Dagger 2 Subcomponent

Is it possible to retain a dagger 2 subcomponent for an activity through a configuration change? it seems like the only two possible solutions

@Component / @SubComponent

What's the difference between @component & @subcomponent in dagger2? when to use which one of those? can you provide examples / code

Dagger2 + ViewModel + Repository

I am new to dagger 2 and trying to implement it in kotlin. here i am trying to inject my repository object into viewmodel. i am successfully able
Ad

WorkManager Java Android Dagger2

I need working workmanager in android app with java only (without kotlin!!!). in a project, we use just dagger2.8 (without android-dagger!) and i

Android Dagger not building

I have already added dagger into my application. now i am facing the following error after updating android studio and project updated to the
Ad
Ad

Objects after inject is null

I am trying to inject objects that are singletons to 2 activity. my problem is, milk and coffee object after @inject are null into activity.
Ad
Ad

Dagger2 Injection Unit Tests is null

Hi i have used dagger for dependency injections of network module, applicationmodule, databasemodule, presenters and interactor in my app. i want

Proguard rule setup for mvvm

The code is working fine without proguard rule setup. but when i enabled proguard in release build, the project is build successfully. app is
Ad
Ad
Ad
Ad
Ad

Blog Categories

Ad