📄️ Kotlin Multiplatform Overview
Anchor DI is multiplatform by design. It runs on Android, iOS, Desktop (JVM), and Web (Wasm). Generated code lives in commonMain; platform-specific dependencies use expect / actual. This page explains how Anchor DI fits into a KMP project and what you need to know about source sets and KSP targets.
📄️ expect / actual and Platform Modules
Anchor DI works with expect / actual for platform-specific dependencies. When you need types that exist only on one platform (e.g. Context on Android, UIApplication on iOS), you define an expect type in commonMain and provide actual implementations in each platform source set. This page explains the pattern and how to use it with Anchor DI.