I'm still having trouble getting the ktor ios clie...
# ktor
r
I'm still having trouble getting the ktor ios client to work with the
kotlin-multiplatform
gradle plugin. None of the ktor or coroutine dependencies resolve on the ios side when I build (
./gradlew clean build test
). I pushed a github repo of a minimal demo of what I'm trying to do, based on a fresh project with the IDEA "Kotlin (Mobile Android/iOS)" template. Here's the relevant commit: https://github.com/russhwolf/ktor-demo/commit/dfee772bfdc4fb97e6e84938780bd95b5589e0e6
I can re-ask in #multiplatform if it seems like the problem isn't ktor-specific
Update: I was missing
enableFeaturePreview('GRADLE_METADATA')
in my
settings.gradle
🤦 However, after adding that I still can't resolve
ktor-client-mock
dependencies from my common code during the ios build. So is that only available on JVM after all?
e
Hi @russhwolf. Sorry for the delay 🙂
ktor-client-mock
is jvm only module for now. I'll try to move it to common soon
r
Sounds good. That'd be really helpful to have in common to support shared testing. But I certainly know how much work it can be to migrate those things so I'll be patient 🙂
Is there a ticket I can follow for that?