Dependency Injection You Can Start Today
summary
Explains dependency injection (DI) for Android apps: why DI removes hard-coded dependencies to make large apps easier to test and customize, and how to apply DI in Android projects. Compares and shows implementations with two DI containers—Dagger (Google’s popular solution) and Koin (a Kotlin-based alternative)—and covers how DI affects writing unit and UI tests.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 1:26What is DI
- 2:32Basic DI patterns
- 4:22Android dependencies
- 6:40Managing lifetimes
- 8:51DI containers role
- 9:38Dagger2 overview
- 10:43Dagger2 modules & components
- 14:22Dagger Android injection
- 16:30Dagger2 tips
- 16:51Koin overview
- 17:57Koin modules & DI
- 19:27Koin ViewModel support
- 20:54Testing after DI
- 21:15Unit testing with DI
- 23:53Integration testing with DI
- 26:53Summary








