also, can anyone explain why i was able to build w...
# kotlin-native
e
also, can anyone explain why i was able to build with coroutines by setting gradle to 4.10.1 and using
enableFeaturePreview('GRADLE_METADATA')
, but not using gradle 5.1, which theoretically has that built in? (I will accept “gremlins” as an answer at this point)
prior to doing that I was not able to get the
kotlinx.coroutines
package to show up on iOS, and I couldn’t create a
CoroutineDispatcher
.
(this was literally all I changed in order to go from fu in
iosMain
to 👍)
d
You need metadata in 5.1 too.
Which versions of Kotlin and coroutines are you using?
e
I thought 5.1 had metadata baked in
@Dominaezzz Kotlin 1.3.21, coroutines 1.1.1
(I also recall trying the
enableFeaturePreview
bit with 5.1 and it doing precisely nothing)
d
Metadata is still in preview in 5.1 and it has to be enabled.
🤔 1
Usage you tried 5.0, I heard there some issues with 5.1 or something.
Does your project not build with the import, or is the IDE just complaining?
You may need to explicitly specify the artifact as a workaround.
e
It would not recognize any of the
kotlinx.coroutines
imports, so I couldn’t override the CoroutineDispatcher to get things working on iOS