KamiSempai / kotlin-mpp-example

Example of Kotlin multiplatform project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiplatform sample

This example shows how to use Kotlin/Native in the multiplatform world.

This sample based on the multiplatform documentation. If you have questions about the structure or how it works take a look at the documenation there.

Greeting

The generated Greeting classes will be used in unit tests.

See here for Android and here for iOS.

iOS

To compile application and run tests from the command line

  > cd iosApp
  > ../gradlew -p ../greeting/ios build
  > ../gradlew -p ../greeting/ios test

and for Xcode just open iosApp/iosApp.xcodeproj and run application.

Android

To compile application and run tests from the command line

   > cd androidApp
   > ../gradlew build
   > ../gradlew test
   > cd ../greeting/android
   > ../../gradlew test

About

Example of Kotlin multiplatform project

License:Apache License 2.0


Languages

Language:Kotlin 62.6%Language:Swift 32.3%Language:Objective-C 5.1%