
Explore how Hilt enables dependency injection in Android with Kotlin, previewing the course from basics to modules, components, ViewModel, and unit testing.
Annotate classes with AndroidEntryPoint to declare where dependencies are injected and let Hilt generate components, while ensuring dependents are also annotated and avoiding retained fragments.
Learn how Hilt modules define instantiation for types not easily constructor-injected, including interfaces and third-party types, and bind them in the activity scope via a network module.
Explore Hilt components, their lifetimes, and scopes to understand how bindings are created and where they are available across application, activity, and fragment scopes, including singletons.
Explore how Hilt scopes control object creation, from unscoped bindings to singleton and activity scoped instances, and learn to apply activity or application scope for shared network services.
Apply Hilt dependency injection in your Android apps, practice as much as you can, and note how Hilt is replacing Dagger and shaping future implementations.
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.