Overview
The Encore KMP SDK is a thin bridge to the native iOS and Android SDKs. Add one dependency in your shared module — the native SDKs are resolved automatically per platform.
Step 1: Add the Gradle Dependency
In your shared module’s build.gradle.kts:
kotlin {
sourceSets {
commonMain.dependencies {
implementation("com.encorekit:encore-kmp:0.1.0")
}
}
}
mavenCentral() is included by default in Kotlin Multiplatform projects. No additional repository setup is needed.
Step 2: iOS — Install CocoaPods Dependencies
If your KMP project targets iOS, run:
./gradlew :shared:podInstall
This resolves the native EncoreKit pod via the KMP CocoaPods plugin. No manual Podfile changes required.
Step 3: Verify
Sync your project, then verify the SDK is available in shared code:
import com.encorekit.kmp.Encore
Requirements
| Platform | Minimum |
|---|
| Android | minSdk 26 (Android 8.0+) |
| iOS | 16.0+ |
| Kotlin | 1.9+ |
| JDK | 17+ |
Next Steps