Skip to content

uicore/kotlin-mpp-example

 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 60.3%
  • Swift 34.3%
  • Objective-C 5.4%