Are you wondering what dependency and Dependency Injection is, why you need dependency injection in your project, and how to implement it using Hilt? Then you are at the right place and this course is for you.
In this course, you will learn:
what Dependency and Dependency Injection are
how to implement Dependency Injection using Hilt
different features of the Hilt library
Dependency Injection is an important technique to make code:
More maintainable
Avoid code replication
Improve lifecycle management
More testable
More readable
Hilt is a Dependency Injection library that is built on top of Dagger and it helps to implement Dependency Injection without a lot of boilerplate code.
At the end of the course, you will be able to:
set up the Hilt library in the Android Studio project
create a module for providing dependencies
provide dependencies using @Provide annotation
bind dependencies using @Binds annotation
inject dependencies using @Inject annotation
integrate Hilt with ViewModel
to provide the same instance with @Singleton annotation
inject Context using Hilt
provide instances of the same types using @Named and @Qualifier annotations
Implementation of Dependency Injection is demonstrated in the example of a simple weather forecast application. After taking this course, you will be able to implement Dependency Injection using Hilt in your Android Studio project.
Why me?
I am developing Android applications since 2013. I have participated in many projects in the education, mobile banking, telecommunication, retail, and transportation fields. I am teaching Android development since 2015 and created several online courses on Android development. I have a Masters degree in Computer Science. Currently, I working on my start-up project called Cheapta, which helps to find cheap flights.