Declare a Shared Koin Module
Register your dependencies in commonMain.
Why Wire Things Together
Your app is full of objects that need each other: a repository needs a client, a use case needs the repository. Dependency injection hands those pieces over for you.
Meet Koin
Koin is a lightweight DI library written in pure Kotlin, so it runs happily in commonMain and works on both Android and iOS. 🎉
All lessons in this course
- Declare a Shared Koin Module
- single vs factory Scopes
- Start Koin on Android & iOS
- Inject into ViewModels & Repos