Hi, In my kn project I have android/ios/jvm source...
# kotlin-native
v
Hi, In my kn project I have android/ios/jvm sourceSets if I want my some class/function in commonMain don’t compile by ios how to setting?? Thank you very much
a
Hi! Maybe adding custom source sets can help here? Like, making an
android_jvmMain
with things you want to hide, and depend on it. There is an example of this approach in documentation, see here(https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#connecting-source-sets).
r
Note that the IDE integration is not all-the-way there yet when you do this (but they’re working on it!) so you may see things red-line in the IDE but actually work fine when you build from Gradle.