Framework-Free Dependency Injection
summary
Claims manual DI replaces heavy frameworks like Dagger for most unit-testing needs and ships a concrete recipe: define an interface, inject via constructor, provide a production implementation and pass a fake in tests. Examples: a Kotlin humanTimeHelper and a credit‑card presenter/viewmodel that moves SharedPreferences behind a LastCardStorage. Result: repeatable, JVM‑only unit tests, no build or runtime penalty, at the cost of extra constructor boilerplate and more interfaces to manage.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 1:50Android unit testing trends
- 7:08Unit testing example
- 14:49Android MVP example
- 15:27Network conditions
- 21:51Real Implementation
- 22:57Test
- 24:15Android
- 25:01View Models
- 26:09ViewModel
- 27:59Strengths
- 32:24Criticisms
- 36:39Not Dry








