Embracing commonMain for Android Development
summary
Claims a one-line switch lets a Kotlin JVM or Android module become multiplatform by mapping main to commonMain and JVM/implementation to common configurations via a KMP for free Gradle plugin; demo converts modules, replaces java.util.Date with kotlinx-datetime, and produces an iOS framework link. Build-time caveat: configuration caching reduces builds from ~40s to 6s. Plugin is snapshot, works for experimentation with zero-risk rollback, but multiplatform remains under active development.
AI-written summary · about
chapters (6)
- 0:00Introduction and background
- 5:18Why Kotlin multi-platform
- 10:11Gradle plugins and source sets
- 17:29KMP for free plugin demo
- 21:43Migrating to common main
- 31:24Conclusion and future outlook
related talks
36mEntering the World of Other Platforms Through KMP Gate
39mKMP4FREE in 2023
38mMultiplatfom projects with Kotlin
29mKMP for Mobile Developers
48mEffective Multiplatform Kotlin Development
27mAn Android Dev start to Kotlin Multiplatform
35mIntro to Kotlin Multiplatform
46mGoing Multiplatform with Your Android App
