android-di-koin
Installation
SKILL.md
Android / KMP Dependency Injection (Koin)
Principles
- One Koin module per feature layer — create it only if there are dependencies to provide.
- Modules are assembled in
:app, never in feature modules themselves. - In Compose root composables, always inject ViewModels via
koinViewModel().
For DSL fundamentals (scopes, qualifiers, parameters, get()/inject()) see the koin-patterns skill; for shared/commonMain wiring see kmp-di.
Dependencies
Use the BOM so every Koin artifact stays on one version (current stable: 4.2.2):