Connect with us

Media

The Ultimate Dagger-Hilt Guide (Dependency Injection)

Dependency injection is a core concept of software development. In this video, I’ll show you how you can apply DI in an Android app using Dagger-Hilt.

  • 00:00 – What is dependency injection?
  • 06:45 – Setting up Dagger-Hilt
  • 08:25 – Setting up the structure
  • 10:39 – Creating a module
  • 17:20 – Injecting into ViewModels
  • 20:15 – Injecting the ViewModel in the UI
  • 21:40 – Creating the application class
  • 24:05 – Two dependencies of same type
  • 26:20 – Binding abstractions
  • 29:58 – Field injection
  • 31:28 – Lazy injection

Advertisement

Trending