An Android Dev start to Kotlin Multiplatform
summary
Builds a simple app that scrapes Empire State Building light data and migrates the network/repository layer into a shared Kotlin module that runs on Android and native iOS. Uses Ktor and Kotlinx.serialization for HTTP and JSON, the KMM plugin to scaffold modules, and platform UIs with Compose and SwiftUI. Keeps Android ViewModel + LiveData, exposes a Loading/Complete/Error sealed state, works end-to-end after Gradle/IDE hiccups and coroutine adapter workarounds for iOS.
AI-written summary · about
chapters (20)
- 0:00Introduction to KMM journey
- 1:16Android dev’s perspective on KMM
- 3:27Empire State Building app demo
- 5:13Sharing business logic with KMM
- 7:21Replacing Retrofit with Ktor
- 9:29Setting up KMM project in Android Studio
- 10:55KMM plugin and project creation
- 13:45Creating shared models
- 16:12JSON serialization setup
- 17:35Implementing shared repository
- 19:19Android view model integration
- 20:25LCE pattern for state handling
- 22:07Debugging common KMM errors
- 23:09Compose UI for Android
- 24:33Switching to iOS development
- 25:17JetBrains Codelab reference
- 26:00Using coroutines on iOS
- 28:47Building iOS UI with SwiftUI
- 29:30Live demo results
- 30:15Q&A session
