Multiplatform¶
Supported targets¶
android
.jvm
(must addkotlinx-coroutines-swing
/kotlinx-coroutines-javafx
to your dependencies to make sureDispatchers.Main
available).
[!NOTE] If you are targeting
Desktop
and: - not usingJetBrains Compose Multiplatform
, you should provide the dependencyorg.jetbrains.kotlinx:kotlinx-coroutines-swing
ororg.jetbrains.kotlinx:kotlinx-coroutines-javafx
. - usingJetBrains Compose Multiplatform
, you should provideorg.jetbrains.kotlinx:kotlinx-coroutines-swing
.Because the
ViewModel.viewModelScope
depends onDispatchers.Main
provided by that libraries on Desktop.
js
(IR
).wasmJs
.Darwin
targets:iosArm64
,iosX64
,iosSimulatorArm64
.watchosArm32
,watchosArm64
,watchosX64
,watchosSimulatorArm64
.tvosX64
,tvosSimulatorArm64
,tvosArm64
.macosX64
,macosArm64
.