A Kotlink between worlds
summary
Kotlin Multiplatform (Kotlin 1.2) is used to share the model and controller of a 10×10 game across JVM and JavaScript: common Kotlin compiles to platform outputs, Kotlin/JS transpiles to ECMAScript 5.1, and Gradle organizes JVM and JS submodules producing UMD or CommonJS bundles. Platform-specific views and hooks are implemented with expect/actual; tests run with JUnit on the JVM and Jest on JS, which uncovered nullability and an out-of-bounds array bug that crashes on Android but only misbehaves in JS, showing the multiplatform approach is experimental but viable.
AI-written summary · about
chapters (10)
- 0:00Start
- 1:11Some key dates
- 7:15Limitations
- 8:42GUESS WHAT
- 10:57Kotlin multiplatform - modules
- 14:32Kotlin multiplatform - Structure
- 15:58Kotlin multiplatform - Common module
- 16:12Kotlin multiplatform - Javascript module
- 17:31Kotlin multiplatform - Android module
- 22:41Testing common module
related talks
39mAn Overview of Multiplatform Kotlin
34mKotlin Multiplatform: code sharing without compromise
33mUsing Kotlin for JS Client and JVM Server
35mIntro to Kotlin Multiplatform
01h 07mDevelop Multiplatform Projects in Kotlin
36mEntering the World of Other Platforms Through KMP Gate
48mEffective Multiplatform Kotlin Development
38mMultiplatfom projects with Kotlin
