Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Kotlin/kmp-basic-sample
Example of Kotlin multiplatform project
https://github.com/Kotlin/kmp-basic-sample
kmm kotlin sample
Last synced: 11 days ago
JSON representation
Example of Kotlin multiplatform project
- Host: GitHub
- URL: https://github.com/Kotlin/kmp-basic-sample
- Owner: Kotlin
- License: apache-2.0
- Created: 2018-05-28T09:17:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-01T08:15:38.000Z (4 months ago)
- Last Synced: 2024-07-21T08:35:07.114Z (4 months ago)
- Topics: kmm, kotlin, sample
- Language: Kotlin
- Homepage:
- Size: 364 KB
- Stars: 979
- Watchers: 56
- Forks: 182
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-kotlin-multiplatform - kmm-basic-sample
README
[![official project](http://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
# 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 [KMP plugin for Android Studio](https://plugins.jetbrains.com/plugin/14936-kotlin-multiplatform-mobile) 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 [Kotlin Multiplatform Developer Portal](https://kotlinlang.org/lp/mobile/) to learn more about the technology
* Check out the [Networking and data storage with KMP hands-on](https://play.kotlinlang.org/hands-on/Networking%20and%20Data%20Storage%20with%20Kotlin%20Multiplatfrom%20Mobile/) lab to learn how to create a mobile application for Android and iOS with a shared codebase with Ktor and SQLDelight.