r/androidresources • u/amitshekhariitbhu • Jun 02 '20
Why do we use the Dependency Injection Framework like Dagger in Android?
We should use the dependency framework because of the following:
It helps us in managing the complex dependencies easily.
It makes the unit testing easy by enabling us to pass all the dependencies from outside so that we can easily use the mocked objects.
It easily manages the scope(lifecycle) of the object.