How to specify Kotlin/Native stdlib as dependency ...
# kotlin-native
d
How to specify Kotlin/Native stdlib as dependency in "commonNative" sourceSet?
I think I'm asking the wrong question. It seems the IntelliJ just doesn't give static analysis in common native sourceSets.
d
Kotlin/Native stdlib cant be used as a dependency in common sourceset
Specify
implementation("org.jetbrains.kotlin:kotlin-stdlib-common")
If you want to use functions from native stdlib, declare an expect function in common sourceset
Or
optional expect
d
I forgot to mention. The native stdlib is available in the common source set because it builds fine. IntelliJ just doesn't support it.
d
Oh... that's... new for me