Kotlin-Native for Android developers
summary
Compares Kotlin/JVM and Kotlin/Native with concrete build steps: source-to-object compilation, linker producing executables, and runtime dynamic loader behavior; explains triplets, XCFrameworks vs fat binaries, and why Kotlin/Native vs JVM matters for build size and debugging. Demonstrates a real ABI pitfall — adding a default parameter can be API-safe but break binaries at runtime (ABI breaks from default params). Gives actionable fixes: prefer CocoaPods/SwiftPM/XCFramework, publish stable libs to Maven, only build needed architectures, and minimize exported symbols to cut size and compile time.
AI-written summary · about
chapters (10)
- 0:00Introduction and context
- 3:35Compilation differences
- 6:06Build configurations
- 8:58Build targets and triplets
- 14:00Linking static vs dynamic
- 18:20Distribution formats
- 21:35API vs ABI explained
- 28:23Execution and runtime
- 34:47Best practices for KMP
- 40:45Closing and Q&A
related talks
40mKMP with non-Kotlin languages
40mEffective Debugging Kotlin Native in Xcode
40mBetter Android Development with Kotlin & Gradle
42mBlurring the Line between Native and Web
49mKotlin on Android (en)
01h 03mKotlin on Android
42mKotlin Multiplatform In Production
36mEntering the World of Other Platforms Through KMP Gate
