A question for intellij integration. For various target platforms (ios/macos, linux, androidNative), they’re all distinct with regards to “platform” and Native, but when building a library that publishes to these platforms, you’ll really want a common source set for that platform. For example, ios and macos all have “Foundation”, and they would all use it the same way. I define a source set for “apple” that each target’s source set depends on, and that builds fine, but intellij can’t resolve that. Is there a way to configure that to work as expected? I think it would be more like a hint to the IDE that didn’t really impact the compile build (something like “config as if iosArm64"). I’ve done this in the past by having a commented section in the build.gradle that gets uncommented to refresh gradle in Intellij, then commented out again, but that’s pretty ugly.
Uncommenting the first line and refreshing intellij will get “import platform.Foundation…” to resolve in the ‘appleMain’ source set. However, expect statements with actuals in there get Intellij errors saying they’re not defined (they compile fine). This is version 2019.1 EAP (Build #IU-191.5701.16)