Develop Multiplatform Projects in Kotlin
summary
Kotlin 1.2 adds concrete multiplatform support: Gradle plugins compile common modules with platform modules, using expect/actual declarations to link platform APIs. Demonstrated libraries include kotlinx.html for isomorphic HTML rendering reused on server and client, and kotlinx.serialization generating JSON without reflection. Coroutines run on all targets. Kotlin/Native uses LLVM, per-thread heaps with reference counting and frozen objects for cross-thread data, and cinterop generates Objective‑C bindings. Demos run end-to-end: server + client rendering, JVM and JS tests, and shared logic on Android and iOS.
AI-written summary · about
chapters (24)
- 0:00Introduction
- 0:39Why Kotlin
- 2:25Code reuse
- 4:00Multiplatform project structure
- 4:47Compilation
- 6:17Platform Specific Code
- 8:00External Class
- 9:25Platform Specific Module
- 13:07Gradle
- 14:53Compile
- 16:32Cotton Native
- 17:29ConstantTest
- 18:36CottonXHTML
- 20:51Refactoring
- 23:06Serialization
- 24:11Coroutines
- 26:46Application Self
- 29:14GS
- 30:55Tests
- 32:31Backend
- 41:50Tools
- 44:47Kotlin Js
- 49:55Realworld example
- 52:10Other usages
related talks
39mAn Overview of Multiplatform Kotlin
38mMultiplatfom projects with Kotlin
35mIntro to Kotlin Multiplatform
41mKotlin Multiplatform In Production
48mEffective Multiplatform Kotlin Development
34mKotlin Multiplatform: code sharing without compromise
52mKotlin Multiplatform, a language to rule them all
27mKotlin: Multi-Platform
