Dagger-2 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
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

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

Dagger retrofit cannot be provided

Admiteddly,dagger is tough and i am trying to inject retrofit. i injected context and sharedpreferences and it works fine.but retrofit broke it

Android Dagger 2.14 setup

I am trying to figure out how to setup android project with dagger 2, but i am doing something wrong. dagger 2 and android dependancy injection is
Ad
Ad

Blog Categories

Ad