24

Github GitHub - Kotlin/kmm-sample: Example of Kotlin multiplatform project

 3 years ago
source link: https://github.com/Kotlin/kmm-sample
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Kotlin Multiplatform Mobile Sample

This is a Kotlin Multiplatform Mobile (KMM) 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 KMM 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 KMM plugin for Android Studio 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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK