I am trying learn Kotlin by developing a command line application that will be used exclusively on macos and linux, and it is comparatively primitive so 100% of source code will be shared. But I cannot figure out how to make commonMain depend on posix.
Common can’t depend on posix since posix is actual only for kotlin-native. It does not make any sense for JVM and JS. What you are probably trying to do is not a multiplatform application, but native application with multiple targets.
Hm that makes sense, and it is true that I was going for kotlin-native first, but looks like it is not supported by IDEA, unlike kotlin-multiplatform, right?
The former solution works really nice from the command line, thank you!
Unfortunately it is quite tricky in the IDEA, somehow it finds the single source folder as linux sources and marks imports as Unresolved reference, then if I comment linux section it becomes regognized again, then when I uncomment it everything becomes fine till the next restart.
Do you by any chance know if 1.3.20 way will be fully supported by IDEA plugin? Or if pure kotlin-native will be supported?