Browse Source

Add coroutines dependency in commonMain instead of iosMain (#3080)

* Add coroutines dependency in commonMain instead of iosMain

* Update examples/imageviewer/shared/build.gradle.kts

Co-authored-by: dima.avdeev <99798741+dima-avdeev-jb@users.noreply.github.com>

---------

Co-authored-by: dima.avdeev <99798741+dima-avdeev-jb@users.noreply.github.com>
pull/3083/head
Oleksandr Karpovich 2 years ago committed by GitHub
parent
commit
047f2e15aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      examples/imageviewer/shared/build.gradle.kts

7
examples/imageviewer/shared/build.gradle.kts

@ -41,6 +41,9 @@ kotlin {
implementation(compose.components.resources) implementation(compose.components.resources)
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0") implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.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 { val androidMain by getting {
@ -58,10 +61,6 @@ kotlin {
} }
} }
val iosMain by getting { 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 { val iosSimulatorArm64Main by getting {
dependsOn(iosMain) dependsOn(iosMain)

Loading…
Cancel
Save