https://kotlinlang.org logo
#ktor
Title
# ktor
e

e5l

06/11/2020, 8:41 AM
📣 Ktor
1.3.2-1.4-M2
has been released with Kotlin 1.4-M2 support
🍾 3
👍 12
j

John O'Reilly

06/11/2020, 10:16 AM
@e5l does that now contain "native-mt" support?
e

e5l

06/11/2020, 10:21 AM
Hi @John O'Reilly, we can’t release kotlinx.coroutines
native-mt
with
M2
due to kotlin-native issues. I hope we will publish it with
M3
. Sorry for bad news, we’re also waiting for that 😞
j

John O'Reilly

06/11/2020, 10:22 AM
ok, thanks
z

zalewski.se

06/11/2020, 11:24 AM
@e5l Hi, I’m a little bit confused what
native-mt
support means here ☝️. Could you explain a little bit? 😓 Can we use Ktor
1.3.2-1.4-M2
with iOS for example or it’s not gonna work?
l

louiscad

06/11/2020, 11:56 AM
@zalewski.se mt stands for multi-thread. It allows switching dispatchers and ready to use
Dispatchers.Main
implementation on Apple OSes.
🙏 2
👌 2
a

aleksey.tomin

06/11/2020, 12:06 PM
@e5l I’ve changed versions in my project to 1.4-M2 and 1.3.2-1.4-M2 and have error:
Could not find io.ktor:ktor-client-core-native:1.3.2-1.4-M2
I’ve use Curl as ktor-client and will use CIO in new version. How I have to change my project?
e

e5l

06/11/2020, 12:06 PM
Could you list the dependencies section? You should be able to use artifacts without
-native
from kotlin
1.4
z

zalewski.se

06/11/2020, 12:33 PM
@louiscad Thanks a lot! That part I was missing.
r

rudolf.hladik

06/11/2020, 1:01 PM
@e5l so the new ktor release wont work for example even with coroutines 1.3.5-native-mt-1.4-M1 ? https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core-native/1.3.5-native-mt-1.4-M1
e

e5l

06/11/2020, 1:04 PM
Yes, and I'm not sure if
native-mt
coroutines for kotlin
1.4-M1
will work with kotlin
1.4-M2
r

rudolf.hladik

06/11/2020, 1:06 PM
ok, thx for the update. Looking forward to
1.4-M3
a

aleksey.tomin

06/11/2020, 3:43 PM
@e5l I’ve reduced file to
Copy code
kotlin {
    macosX64("macos")
    val kotlinVersion = "1.4-M2"
    val ktorVersion = "1.3.2-1.4-M2"
    sourceSets {
        commonMain {
            dependencies {
                implementation(kotlin("stdlib-common"))
                implementation("io.ktor:ktor-client-core:${ktorVersion}")
            }
        }
    }
}
Error:
e: Could not find "io.ktor:ktor-io-cinterop-bits" in ...
j

John O'Reilly

07/06/2020, 3:25 PM
Hi @e5l , I see 1.4-M3 was released today....do you know if release of ktor with kotlinx coroutnes
native-mt
support will be released corresponding to this? (sorry to keep hassling you about this but will be really nice to have this in place 🙂 )
e

e5l

07/06/2020, 4:13 PM
No problem! It will be with a small delay
👍 3
3 Views