Kotlin/kmp-basic-sample

Example of Kotlin multiplatform project

Kotlin

1,138

82 commits

updated Sep 18, 2026

See the code

README

official project

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.

kmm
kotlin
sample

Kotlin/kmp-basic-sample

Example of Kotlin multiplatform project

Kotlin

1,138

82 commits

updated Sep 18, 2026

See the code

README

official project

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.

kmm
kotlin
sample

Significant stargazers

Roman Podymov

130 followers · starred Apr 2024

LiJianying

614 followers · starred Sep 2025

Sébastien Deleuze

1,383 followers · starred Jul 2018

Alexey Belkov

107 followers · starred Feb 2022