A Complete Guide To Learn Dagger 2
What is Dagger 2?
Dagger 2 is a dependency injection for Android. Dagger 2 is a dependency injection (DI) framework.
And, Dependency Injection in build upon the concept of Inversion of Control which says that a class should get its dependencies from outside. In simple words, no class should instantiate another class but should get the instances from a configuration class.
As we know that Dagger 2 is another important library for Android Projects. So we must have a proper grip on using Dagger 2 in the Android Projects.
Let’s see all the best resources available to learn Dagger 2 in the best possible way.
In this blog, we are going to see why do we use the Dependency Injection Framework like Dagger in Android. This will help you in understanding how it can be useful for Android Project and you will be able to convince anyone to use a Dependency Injection Framework based on the requirement.
This video will help you in getting started with Dagger for Android Development.
As you all know, I am very fortunate to have Janishar Ali as my friend. I am learning from him by working very close to him. Working with him is always fun for me. When you learn from the best, you learn the best. In this article, he has provided the best introduction to Dagger 2 and how to use dependency injection. It deals with the introduction to the concept and overview of Dagger2.
It contains Dagger2 implementation through an example.
All about when and how a dependency class is instantiated and the scenarios that may produce unexpected results.
This blog will help you in learning how to design an Android App Architecture using Dagger 2.
In this blog, we are going to talk about how we can use Dagger for dependency management in a multi-module project.
In this blog, we are going to learn how we can setup Dagger in our project having Dynamic Features Module.
In this blog, we are going to see how to work with Dagger-Hilt, the new dependency injection library based on top of Dagger with a step by step guide. Dagger-Hilt is recommended by Google for dependency injection in Android.
With great power, comes great responsibility. So learn it in the best way.
Happy Coding :)