Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.78 KB

SetUpGuide.md

File metadata and controls

48 lines (30 loc) · 1.78 KB

Guide to setup for various platforms

I have made the project in Android Studio Ladybug Feature Drop | 2024.2.2 Canary 2

If you are facing build issues and have older version then check Android Gradle plugin and Android Studio compatibility

Before running!

  • check your system with KDoctor
  • install JDK 17 or higher on your machine(Mine has 22)

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 Run android UI tests on the connected device: ./gradlew :composeApp:connectedDebugAndroidTest

Desktop

Run the desktop application: ./gradlew :composeApp:run Run desktop UI tests: ./gradlew :composeApp:jvmTest

iOS (I am yet to try this, if it is working fine please let me know)

To run the application on iPhone device/simulator:

  • Open iosApp/iosApp.xcproject in Xcode and run standard configuration
  • Or use Kotlin Multiplatform Mobile plugin for Android Studio Run iOS simulator UI tests: ./gradlew :composeApp:iosSimulatorArm64Test

JS Browser (Experimental)

Run the browser application: ./gradlew :sample:composeApp:jsBrowserDevelopmentRun --continue Run browser UI tests: ./gradlew :composeApp:jsBrowserTest

Wasm Browser (Alpha)

Run the browser application: ./gradlew :sample:composeApp:wasmJsBrowserDevelopmentRun --continue Run browser UI tests: ./gradlew :composeApp:wasmJsBrowserTest