Multiplatform¶
Supported targets¶
android
.jvm
(Desktop
) (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
, theViewModel.viewModelScope
depends onDispatchers.Main
provided by this library on Desktop.If you are using
JetBrains Compose Multiplatform
and targetingDesktop
, you should provideorg.jetbrains.kotlinx:kotlinx-coroutines-swing
.
js
(IR
).
Darwin
targets:iosArm64
,iosX64
,iosSimulatorArm64
.macosX64
,macosArm64
.