Skip to content

Tag: dagger-2

Dagger Component has conflicting scopes

I am using Dagger and I have an app component with @Singleton scope and also a subcomponent with @Singleton scope. Now when I compile it I get this error: [io.droid.nowtellapp.dagger.SignInMvpComponet] io.droid.nowtellapp.dagger.SignInMvpComponet has conflicting scopes: io.droid.nowtellapp.dagger.ApplicationC…

Dagger 2: Injecting user inputted parameter into object

Say I have a class Util that takes in a object – an instance of class Validator. Since I want to avoid instantiating the Validator class within Util, I pass it in via a constructor: I have a module that provides the Validator instance: and an instance of the Util class: I have a component wired up that …