I’ve been banging my head on this for a minute and...
# kotlin-native
e
I’ve been banging my head on this for a minute and could use some help: I’m trying to use
ktor
in an MPP iOS/Android project. As far as I can tell, you have to be able to use Coroutines to do this. I can get coroutines importing on gradle 4.10.2 to Android and the core thing, but they don’t work on iOS. I’m seeing some stuff about needing 4.7, but that’s not working either. Anyone got suggestions for how/if I can actually get this to work?
Using Kotlin 1.3, ktor 1.0.0-b3, coroutines 1.0.0, kotlin native 1.0.0
r
You definitely need 4.7 for the iOS side, but there might be something else missing. Do you have
enableFeaturePreview('GRADLE_METADATA')
in your
settings.gradle
file?
e
yeah, definitely
OK going back through it seems like the problem starts when I add an empty
dependencies
block for
iosMain
i know that’s case sensitive…
OK. i think that might have been the problem.
After I changed something I’d set up to be
iOS
to
ios
and then deleted everythign i’d been trying and tried again
it worked 🙂
r
Oh yeah that's pretty subtle. I've seen both versions in various samples so it's easy to get mixed up.