Dependency injection from zero to hero with Koin
summary
Koin claims a small, Kotlin-first DI with a tiny DSL using keywords like single and factory and a viewModel helper; a 2.0 internal rewrite targets performance so lookup for large graphs drops from ~146 ms to near-Dagger levels and Android lookups can be ~12 ms. The demo builds a coffee-maker app with constructor injection, Android lifecycle scopes and an isolated-instance option; module verification and test helpers run definitions in CI. The new scope API supports lifecycle-tied boxes that are created and destroyed and migration bridges from Dagger exist.
AI-written summary · about
chapters (10)
- 0:00Start
- 8:20Write a Module
- 10:31Coin Component
- 16:00Android Extensions
- 17:12Inject the Android Context
- 20:18Reuse a Shared Instance of Your Activity
- 29:55Scope Api
- 32:35Extensions for Android
- 35:33Takeaway
- 36:28Getting Started Project
related talks
43mDependency injection from zero to hero with Koin
31mKoin in Action - Dependency Injection for Kotlin
40mSimplify your Android development with Koin
28mInsert Koin
36mInvesting in Koin
42mAndroid Architecture Design with Koin
35mDIY Dependency Injection with Kotlin
37mAdvanced multi-platform dependency injection
