Kotlin Apache-2.0

kmp-basic-sample

Example of Kotlin multiplatform project

K

Kotlin

Dernière activité 18 sept. 2026
Kotlin/kmp-basic-sample

1,1 k

étoiles

203

forks

18

issues ouvertes

kmmkotlinsample

Ce README est souvent en anglais.

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.

Projets similaires

Samples showcasing the Kotlin Multiplatform Jetpack libraries

Kotlinandroidjetpackkmm
Aandroid
1,3 k étoiles138

An awesome list that curates the best Kotlin Multiplatform libraries, tools and more.

androidawesomecompose
Tterrakok
5,9 k étoiles374

This is an open-source, mobile, cross-platform application built with Kotlin Multiplatform Mobile. It's a simple RSS reader, and you can download it from the App Store and Google Play. It's been designed to demonstrate how KMM can be used in real production projects.

Kotlinandroidcomposeios
KKotlin
2,3 k étoiles262