DIY Dependency Injection with Kotlin
summary
Builds a DIY dependency injection system in Kotlin that avoids libraries by using constructor injection, named and default parameters, by lazy and simple lambdas; evaluates and rejects Dagger and Koin for codegen and singletons; creates app-level network and session graphs with swappable implementations (live, mock, in‑memory) to support testing and SDK constraints; manages Android lifecycle hacks for activities/fragments; applied to a multi‑module codebase of over sixty modules and successfully replaces heavier DI frameworks.
AI-written summary · about
chapters (7)
- 0:00Start
- 1:43Product Requirements
- 2:23Technical Requirements
- 3:53Kotlin Language Features
- 8:13Avoid Static Instances
- 9:48Setter Injection
- 10:47Why Constructor Injec class
related talks
29mDIY Dependency Injection with Kotlin
37mAdvanced multi-platform dependency injection
49mDependency injection from zero to hero with Koin
21mMinimalist Dependency Injection in Kotlin
43mDependency injection from zero to hero with Koin
31mKoin in Action - Dependency Injection for Kotlin
47mSimple Dependency Management in Kotlin
28mInsert Koin
