Loading lesson…
Level 1 · Apprentice0 XP
Share business logic between Android, iOS, server and web, and keep UI native where it matters.
Step 1 / 5
ProblemPricing, validation and sync logic exist in Kotlin for Android and Swift for iOS. They drift, and the same bug is fixed twice, differently.
← → step
Before this: kotlinx.serialization and JSON
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Create a KMP project (Android and iOS targets) with a shared module containing a data class, a Ktor client call and a pricing rule with tests in commonTest. Call it from both apps.