This is a Kotlin Multiplatform project targeting Android, iOS, Web, Desktop (JVM), Server.
/app/iosApp contains an iOS application. Even if you’re sharing your UI with Compose Multiplatform, you need this entry point for your iOS app. This is also where you should add SwiftUI code for your project.
/core is for the code that will be shared between all targets in the project. The most important subfolder is commonMain. If preferred, you can add code to the platform-specific folders here too.
Use the run configurations provided by the run widget in your IDE’s toolbar. You can also use these commands and options:
./gradlew :app:androidApp:assembleDebug./gradlew :app:desktopApp:hotRun --auto./gradlew :app:desktopApp:run./gradlew :server:run./gradlew :app:webApp:wasmJsBrowserDevelopmentRun./gradlew :app:webApp:jsBrowserDevelopmentRunUse the run button in your IDE’s editor gutter, or run tests using Gradle tasks:
./gradlew :app:shared:testAndroidHostTest./gradlew :app:shared:jvmTest./gradlew :server:test./gradlew :app:shared:wasmJsTest./gradlew :app:shared:jsTest./gradlew :app:shared:iosSimulatorArm64TestLearn more about Kotlin Multiplatform, Compose Multiplatform, Kotlin/Wasm…
We would appreciate your feedback on Compose/Web and Kotlin/Wasm in the public Slack channel #compose-web. If you face any issues, please report them on YouTrack.