Using Hilt in a Multi-Module Project
summary
An overview of using Hilt for dependency injection in Android multi-module projects, comparing Hilt to Dagger and showing why Hilt’s opinionated configuration scales better. Covers applying Hilt in layered and Clean Architecture setups (including Dependency Inversion) to improve build speed and testability, with guidance like creating single-feature sample apps to simplify modules.
AI-written summary · about
chapters (9)
- 0:00Hilt in multi-module
- 3:49Dependency injection
- 8:03Setting up Hilt
- 13:51Hilt components
- 18:15Testing with Hilt
- 24:14Single vs multi-module
- 27:10Clean architecture with Hilt
- 30:21Hilt best practices
- 31:51Resources
related talks
44mHilt: Dependency Injection for the mere mortals
25mFully Understanding Dagger Hilt Migration from First Principles
45mDagger Hilt: Live Code Tutorial, Pros and Cons
22mRex - From Dagger to Dagger Hilt
42m(Unofficial) Guide to App Architecture Guide Vol. 2
28mElevated Dependency Injection: Going Beyond the Basics with Custom Hilt Components
28mThe Lazy (Meta)programmer's Guide to Hilt Extensions
43mDI for Dummies
