Creating SDKs for Multiple Platforms with KMP
summary
Step‑by‑step recipe for shipping a multi‑platform SDK: share business logic in a common Kotlin module, implement platform specifics with expect/actual bridging, publish an AAR for Android, an XCFramework or SPM/CocoaPods artifact for iOS and an npm package or minified JS for web. Practical fixes covered: using the uuid npm v9 and OkHttp/Darwin, Touchlab tools for Swift interoperability, a single shared version across platforms, and shrinking a reported “1 GB” JS bundle via dead code elimination so the JS artifact becomes production‑usable.
AI-written summary · about
chapters (12)
- 0:00Introduction and speaker background
- 1:06What is an SDK and its rules
- 6:17Why use KMP for SDKs
- 11:48Understanding Kotlin Multiplatform
- 16:24Platform-specific code with expect/actual
- 18:14Adding dependencies in KMP
- 19:21Exporting SDKs for platforms
- 21:11Interoperability challenges
- 23:20Versioning and release management
- 24:27Reducing JS bundle size
- 26:16Tools for KMP development
- 27:02Q&A session
