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

ribesg

01/29/2019, 8:59 AM
Is
ktor-client-cio
pure Kotlin or not? Can I use it in the common part of a MPP?
Looks like I can’t, when I put in in my common dependencies I don’t even see
HttpClient
e

e5l

01/29/2019, 9:23 AM
Hi @ribesg,
ktor-client-cio
is pure kotlin but jvm only
You could use
HttpClient()
wo engine and include separate engine dependency for each platform.
So you need only
ktor-client-core
dependency in common.
r

ribesg

01/29/2019, 9:38 AM
Yes that’s what I did, I was just thinking that the idea was to be multiplatform, but it’s not.
4 Views