Multiplatform¶
Supported targets¶
android.jvm(Desktop) (must addkotlinx-coroutines-swing/kotlinx-coroutines-javafxto your dependencies to make sureDispatchers.Mainavailable).
[!NOTE] If you are targeting
Desktopand not usingJetBrains Compose Multiplatform, you should provide the dependencyorg.jetbrains.kotlinx:kotlinx-coroutines-swingororg.jetbrains.kotlinx:kotlinx-coroutines-javafx, theViewModel.viewModelScopedepends onDispatchers.Mainprovided by this library on Desktop.If you are using
JetBrains Compose Multiplatformand targetingDesktop, you should provideorg.jetbrains.kotlinx:kotlinx-coroutines-swing.
js(IR).
Darwintargets:iosArm64,iosX64,iosSimulatorArm64.macosX64,macosArm64.