Closed september669 closed 3 years ago
hi! please call ./gradlew dependencies
and show version of coroutines that required for 1.5.0 and that used in result
allSourceSetsCompileDependenciesMetadata
+--- dev.icerock.moko:mvvm-core:0.9.0
| +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.21
| \--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2
| \--- org.jetbrains.kotlinx:kotlinx-coroutines-core-metadata:1.4.2
| +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.0 -> 1.4.21
| \--- org.jetbrains.kotlinx:atomicfu:0.14.4
| \--- org.jetbrains.kotlinx:atomicfu-common:0.14.4
| \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.0 -> 1.4.21
+--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.21
+--- io.ktor:ktor-client-core:1.5.0
| +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.20 -> 1.4.21
| +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2-native-mt -> 1.4.2 (*)
| +--- io.ktor:ktor-http:1.5.0
| | +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.20 -> 1.4.21
| | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2-native-mt -> 1.4.2 (*)
| | +--- io.ktor:ktor-utils:1.5.0
| | | +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.20 -> 1.4.21
| | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2-native-mt -> 1.4.2 (*)
| | | +--- io.ktor:ktor-io:1.5.0
| | | | +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.20 -> 1.4.21
| | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2-native-mt -> 1.4.2 (*)
| | | | \--- org.jetbrains.kotlinx:atomicfu:0.14.4 (*)
| | | \--- org.jetbrains.kotlinx:atomicfu:0.14.4 (*)
| | \--- org.jetbrains.kotlinx:atomicfu:0.14.4 (*)
| +--- io.ktor:ktor-http-cio:1.5.0
| | +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.20 -> 1.4.21
| | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2-native-mt -> 1.4.2 (*)
| | +--- io.ktor:ktor-http:1.5.0 (*)
| | \--- org.jetbrains.kotlinx:atomicfu:0.14.4 (*)
| \--- org.jetbrains.kotlinx:atomicfu:0.14.4 (*)
\--- io.ktor:ktor-client-cio:1.5.0
+--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.20 -> 1.4.21
+--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2-native-mt -> 1.4.2 (*)
+--- io.ktor:ktor-client-core:1.5.0 (*)
+--- io.ktor:ktor-http-cio:1.5.0 (*)
+--- io.ktor:ktor-network-tls:1.5.0
| +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.20 -> 1.4.21
| +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2-native-mt -> 1.4.2 (*)
| +--- io.ktor:ktor-network:1.5.0
| | +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.20 -> 1.4.21
| | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2-native-mt -> 1.4.2 (*)
| | +--- io.ktor:ktor-utils:1.5.0 (*)
| | \--- org.jetbrains.kotlinx:atomicfu:0.14.4 (*)
| +--- io.ktor:ktor-utils:1.5.0 (*)
| \--- org.jetbrains.kotlinx:atomicfu:0.14.4 (*)
\--- org.jetbrains.kotlinx:atomicfu:0.14.4 (*)
Adding this one - fixed the problem
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core"){
version { strictly("1.4.2-native-mt") }
}
Maybe is this good idea - add another one lib version with depending on "1.4.2-native-mt" coroutines version?
@september669 no, i think consumer app/lib should strict version to native-mt if it required for usecase
I apologize for the premature report about fixing, but if i add strict version "1.4.2-native-mt" this broke android target compilation. On the other side if i use "1.4.2" its broke ios compilation.
strange, we use at our projects 1.4.2-native-mt stricted for all targets (see moko-template for example). and android works fine. but we use ktor-client-android and ktor-client-ios, not cio. i think this problem is ktor related
but without
implementation("io.ktor:ktor-client-cio:1.5.0")
compiled successfully