Kotlin/Native
summary
Kotlin multiplatform compiles shared Kotlin to a native iOS framework and a JVM Android library, used here with Ktor for networking, kotlinx.serialization for JSON, and a Raspberry Pi + servo prototype for a remote-locking porch box. Builds require Gradle 5.3.1 with Gradle metadata enabled; expect frequent Gradle/Kotlin-native version conflicts. Coroutines on native default to main-thread and frozen object graphs force creation-over-mutation patterns or platform-side mutation workarounds. Server and both apps talk to each other; Raspberry Pi motor integration is still unfinished.
AI-written summary · about
chapters (11)
- 0:00The quest for code sharing
- 1:22Beyond the JVM with Kotlin
- 3:10Kotlin Native experiments
- 6:37Project porch pirate protector
- 10:43Setup and tooling challenges
- 14:04Integrating shared code
- 17:15Interoperability hurdles
- 20:26Networking and co-routines
- 26:15Architecting for multi-platform
- 31:26Testing common code
- 33:42Lessons and takeaways
related talks
43mThe Triumphs and Tribulations of Kotlin-Native in Practice
31mKotlin/Native for Multiplatform Development
26mKotlin/Native for Multiplatform Development
48mKotlin for Android, iOS & the mobile web
41mKotlin Multiplatform In Production
31mKotlin Multiplatform
01h 07mDevelop Multiplatform Projects in Kotlin
34mKotlin Multiplatform: code sharing without compromise
