Koin и Navigation 3 в Kotlin Multiplatform
★ 7.1 · vibe-coding
Navigation and Dependency Injection is a Claude Code skill that documents the DI and routing architecture using Koin Annotations 4.2.x and JetBrains Navigation 3 1.1.x within the Meshtastic-Android KMP codebase. Reach for it when wiring a new feature module into the shared DI graph and unsure how root assembly works, when multi-tab navigation causes unexpected ViewModelStore destruction, when deep links fail to reconstruct the correct backstack, or when the K2 compiler plugin startup pattern needs clarifying. The skill covers `@Module`, `@ComponentScan`, and `@KoinViewModel` annotation rules in `commonMain`, the canonical K2 plugin bootstrap via `@KoinApplication` and typed `startKoin<T>()`, why `compileSafety` must stay disabled, and how the plugin skips Kotlin default parameter values. On the Navigation 3 side: typed routes as `@Serializable sealed interface` hierarchies in `core:navigation`, feature graphs as extension functions on `EntryProviderScope<NavKey>`, `MultiBackstack` for independent tab backstacks, `NavigationBackHandler` instead of Android-only `BackHandler`, and `DeepLinkRouter.route()` for synthesizing typed backstacks from RESTful paths. Direction is dependency wiring and in-app navigation for KMP, not a general-purpose DI reference.
- #koin-di
- #navigation-3
- #dependency-injection
- #kotlin-multiplatform
- #architecture