diff --git a/examples/imageviewer/shared/build.gradle.kts b/examples/imageviewer/shared/build.gradle.kts index 04a434c4fb..df9bdf1a3f 100755 --- a/examples/imageviewer/shared/build.gradle.kts +++ b/examples/imageviewer/shared/build.gradle.kts @@ -41,6 +41,9 @@ kotlin { implementation(compose.components.resources) implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0") implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.0") + + // Kotlin Coroutines 1.7.0 contains Dispatchers.IO for iOS + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.0-RC") } } val androidMain by getting { @@ -58,10 +61,6 @@ kotlin { } } val iosMain by getting { - dependencies { - // Kotlin Coroutines 1.7.0 contains Dispatchers.IO - implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.0-RC") - } } val iosSimulatorArm64Main by getting { dependsOn(iosMain)