Live coding development of Kotlin Multiplatform Android/iOS app using Jetpack Compose/SwiftUI
summary
Live codes a minimal Kotlin Multiplatform app that fetches the live "people in space" JSON, uses Ktor + kotlinx.serialization for network parsing, stores results with SQLDelight, and exposes a shared repository called from Android ViewModel (StateFlow) and an iOS ObservableObject. UI uses Jetpack Compose and SwiftUI; images load via Coil. The demo shows the repo building frameworks for iOS, an Android APK, and a Mac app, and reflects a data change when the astronaut count jumps from three to four.
AI-written summary · about
chapters (23)
- 0:00Introduction and overview
- 1:16What is Kotlin Multiplatform
- 3:00Declarative UI frameworks
- 7:41Setting up the project
- 9:03Common module structure
- 10:47Adding API data classes
- 12:10Creating API client with Ktor
- 13:53Implementing repository
- 14:55Android ViewModel setup
- 16:17Jetpack Compose UI implementation
- 19:30Running Android app
- 19:54Switching to iOS development
- 20:15iOS ViewModel and SwiftUI
- 21:17Adding SwiftUI components
- 22:21Building iOS app
- 23:04Enhancing UI with images
- 24:08Loading images in Android
- 25:02Loading images in iOS
- 26:34Current architecture recap
- 27:58Adding SQLDelight persistence
- 30:11Testing database updates
- 30:56Other platform demos
- 33:06Q&A session
