Example of Kotlin multiplatform project
Last updated Jun 25, 2026
1.1k
Stars
202
Forks
17
Issues
0
Stars/day
Attention Score
89
Language breakdown
No language data available.
โธ Files
click to expand
README
Kotlin Multiplatform Sample
This is a Kotlin Multiplatform (KMP) Project. It includes iOS and Android applications with a native UI and a module with code shared on iOS and Android.
Features
This sample demonstrates basic KMP features:
- Using platform-specific APIs with the expect/actual mechanism (see
Platform.kt) - Tests for Shared Module (see
CalculatorTest.kt,iosTest.kt,androidTest.kt)
How to use
With the Kotlin Multiplatform plugin you can run, test, and debug shared code on both platforms without switching IDEs. Run and debug the application by selecting the corresponding configuration in the Run configuration menu. Run and debug shared module tests by pressing the gutter icon on a test class or method.
Related links
- Visit the Kotlin Multiplatform landing page to learn more about the technology
- Get started with Kotlin Multiplatform on developer portal
- Check out the Networking and data storage with KMP hands-on lab to learn how to create a mobile application for Android and iOS with a shared codebase with Ktor and SQLDelight.
๐ More in this category