Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 1.48 KB

README.md

File metadata and controls

57 lines (36 loc) · 1.48 KB

kmPalette Demo

demo

Before running!

  • check your system with KDoctor
  • install JDK 8 on your machine
  • install the Kotlin Multiplatform Mobile plugin
  • add local.properties file to the project root and set a path to Android SDK there
  • run ./gradlew podInstall in the project root

Running

Open the project in Android Studio and let it sync the project. In the configuration dropdown should be the following:

  • demo.android
  • demo.ios
  • demo.desktop
  • demo.browser

You can select a configuration and run it, or follow the steps below.

Android

To run the application on android device/emulator:

  • open project in Android Studio and run imported android run configuration

To build the application bundle:

  • run ./gradlew :composeApp:assembleDebug
  • find .apk file in composeApp/build/outputs/apk/debug/composeApp-debug.apk

Desktop

Run the desktop application: ./gradlew :composeApp:run

iOS

To run the application on iPhone device/simulator:

Browser

You can run the browser application by executing the following command:

./gradlew :demo:composeApp:jsBrowserDevelopmentRun