<https://youtrack.jetbrains.com/issue/KT-40975> Vo...
# kotlin-native
d
https://youtrack.jetbrains.com/issue/KT-40975 Vote if you're interested. 🙂
s
I’m a bit out of loop on this one. What’s commonizer?
d
You know how, cinterop is defined for each target/platform and you couldn't use the generated klib in common code. The commonizer makes this possible. (Currently only for the included platform libs)
s
d
It can be. Right now it's only specific to native but it could include JVM too if it becomes a thing.
n
So it should be possible already to define an intermediate source set and have the platform libs resolved? I have
androidNative
as the root of all
androidNative*
targets. Yet I can't use any platform lib in this shared set. Am I missing something? • Without kotlin.native.enableDependencyPropagation : IDE fails, compilation works • With kotlin.native.enableDependencyPropagation : IDE fails, compilation fails Not sure if I should open a bug or not
s
https://youtrack.jetbrains.com/issue/KT-40975 I just merged the initial support for this use cases. If somebody has feedback for that, feel free to DM me ☺️
🎉 1
This could be tried with some later Kotlin 1.5.20-dev-* kotlin version from: https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-gradle-plugin?repo=space-kotlin-dev