Hilt Dependency Injection in Android with Kotlin

Hilt with Kotlin in theory and practice in an Android application

4.56 (394 reviews)
Udemy
platform
English
language
Mobile Apps
category
instructor
1,626
students
2.5 hours
content
Aug 2023
last update
$69.99
regular price

What you will learn

Hilt

Unit Testing

Dependency Injection

Modules

Components

Field Injection

Constructor injection

Method injection

Qualifiers

ViewModel injection

Description

Dependency Injection is now an indispensable component of Android development. All well built, large projects use it to make development easier and more practical.

Hilt is the next generation dependency injection framework from Google. It's built on top of Dagger and simplifies DI greatly. Android development has been steadily relied upon Dependency Injection, and Hilt is now the fastest and simplest way to implement it in your projects.

This course will

  • take you from a complete beginner in the technology

  • explain in detail the theoretical aspects of Hilt injection

  • exhaustively go through all the components that make Hilt such a successful library

  • implement it in a practical application

After this course you will have the knowledge and experience to use Hilt in all your app development projects, and will allow your apps to grow and expand seamlessly.

We will learn about:

  • Modules

  • Constructor injection

  • Field injection

  • Method injection

  • Components

  • Qualifiers

  • Standard qualifiers

  • ViewModel injection

  • Unit testing

We will build everything in Kotlin.

We cover a lot of ground in this course, and we will implement the concepts practically so that you get not only theoretical knowledge but practical experience as well. Whether you start with zero experience in dependency injection or you already know a little bit about it through dagger, this course will show you how to use it with Hilt.

Sign up today, and let's learn how to use Hilt to build a modern Android Application.

Content

Introduction

Introduction
What is dependency injection
Dagger basics

Basics

Section overview
Create project and setup hilt
Application class
AndroidEntryPoint
Constructor injection
Field injection
Method injection

Modules

Section overview
Code setup
Modules
Inject interfaces with @Binds
Inject instances with @Provides
Qualifiers
Providing context
Installing in multiple components

Components

Section overview
Components and lifetimes
Scopes
Hierarchy

Others

ViewModel
Unit testing

Conclusion

Conclusion

Screenshots

Hilt Dependency Injection in Android with Kotlin - Screenshot_01Hilt Dependency Injection in Android with Kotlin - Screenshot_02Hilt Dependency Injection in Android with Kotlin - Screenshot_03Hilt Dependency Injection in Android with Kotlin - Screenshot_04

Reviews

Hesam
October 12, 2023
It is a great course if you are a junior developer. If you are an expert and looking to use Hilt in a multi-module project, play with scopes, or share objects between scopes, then this course is not for you. I hope the author can cover those areas and I happily give 5 stars.
Khandaker
September 13, 2023
Could be better for more topics on how an error log can be interpreted what happened and why error happened in my implementation and how fast we can point that out. That is our actual challenge.
Yasmine
August 31, 2023
Thank you very much. You made the concepts very easy to understand and very concise. Also, the agenda of each section was a great addition that made every part's scope clear.
Prasanth
June 17, 2023
Thank you for creating a great course. Its very helpful to start coding with Hilt. One small suggestion, it would be great if you can show how to replace @Inject DatabaseAdapter in MainActivity with my FakeDatabaseAdapter.
Juan
June 11, 2023
It is a good match, I chose it to finish my Hilt journey and start implementing this knowledge on my project.
George
May 17, 2023
It mostly covers the theory and will understand the concepts of Dependency Injection. But i felt the examples show should have been with little more effective usecases.
Strahinja
November 7, 2022
Generally ok, easy to grasp, but very basic. Usually people take courses to understand the topic more deeply, and here a lot of details and practical implementations are omitted. Should be explicitly noted that the course is for beginners.
Alon
November 5, 2022
Express course and covered the basics. Would have been nice to seen or even just heard of some real world examples. Architecture is rough, and would have been nice to hear some guidance from that perspective. I was hoping for a final section to do a practical example to sum up what we have learn - e.g. load an image from an api or hit some end point to show something on the app
Kevin
November 1, 2022
Very cleared and your master in learn is very excellent. Recommended for either person that need to know about dependency injection with Hilt and Android
Filip
October 24, 2022
it's awesome but needs to be updated: - @HiltViewModel is now available - make sure to explain more about "by viewModels" since in your course it's explained as part of viewmodels marked as hilt based and it's not. "by viewModels" can be used in non hilt projects and it's not a hilt functionality
Alin
August 12, 2022
Good course for those who want to explore the Hilt dependency injection framework. But there are some drawbacks to this course. First of all, some lectures are repeated and second thing is that @ViewModellnject is deprecated so modify that lecture to the usage of @HiltViewModel.
Marcelo
May 8, 2022
The course was very useful for me to start and understand Hilt. In general I follow Catalin Stefan's courses because he clearly explains the concepts involved. Mr. Stefan, I would like you to develop a course on Android application testing. Thank you very much.
Kristof
March 28, 2022
Instructor is find mistakes in the video. This course is for begginers with 0 knowledge to Hilt. Just reading the android developer site about hilt gives you the same knowledge about it. And it's free ...
Ygor
October 20, 2021
The course follows the Android documentation with incremental examples. I wish it covered more realistic use cases, but you could easily use the project as a base for that. I was not too fond of the mini Catalin during the slides though.
Anish
June 27, 2021
Without an actual real time example of including hilt to an android application codebase. Course looks utter basic.

Charts

Price

Hilt Dependency Injection in Android with Kotlin - Price chart

Rating

Hilt Dependency Injection in Android with Kotlin - Ratings chart

Enrollment distribution

Hilt Dependency Injection in Android with Kotlin - Distribution chart
3621806
udemy ID
11/8/2020
course created date
11/21/2020
course indexed date
Bot
course submited by