Inject your Jetpack Compose Application with Koin
summary
Shows a concrete migration of the Now in Android sample from Dagger Hilt to Koin, using Koin AndroidX Compose 3.4.5 and Koin Compose multiplatform 1.0.3. Demonstrates that koinInject caches per-composable and drops instances when the composable is removed, that coinViewModel binds to activity/navigation and is usable in composables, and that rememberKoinModules can load and unload feature modules on the fly. Includes WorkManager integration and a testing API where verify covers about 80% of DI configuration checks.
AI-written summary · about
chapters (10)
- 0:00Introduction and setup
- 3:22Jetpack Compose paradigm shift
- 7:19Compose basics and recomposition
- 11:29Koin Compose API introduction
- 16:47ViewModel vs state holders
- 20:59Migrating Now in Android to Koin
- 24:34DSL configuration for data layer
- 31:19Use cases and feature modules
- 34:14WorkManager integration
- 35:37Testing and resources
related talks
41mAndroid, Compose, MP & Server - Inject them all with Coin
47mAndroid Architecture Design with Koin
42mAndroid Architecture Design with Koin
40mSimplify your Android development with Koin
31mKoin in Action - Dependency Injection for Kotlin
36mInvesting in Koin
49mDependency injection from zero to hero with Koin
45mDependency Injection from Zero to Hero
