https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
m

Marc Knaup

05/31/2019, 4:53 PM
I have a shared source set for objc code but it doesn't seem to work because it doesn't pick up dependencies on IntelliJ:
Copy code
objcMain <- iosArm64Main
         <- iosX64Main
         <- macosX64Main
IntelliJ can't even resolve
platform.darwin.*
. Gradle builds work fine though. How can I have shared code for all objc-based platforms with dependencies intact in IntelliJ? EDIT: As a workaround I'll use the shared source set
objcMain
only for managing dependencies and without source files and instead symlink each platform-specific sources folder to the shared sources folder.
not nice but works 😕 in this case with only iOS sources, no macOS sources
d

Dominaezzz

05/31/2019, 7:31 PM
IntelliJ can't handle platform specific shared source sets yet. This is actively being worked on.
🎉 1
To solve this, you can have gradle adjust the source set config for the IDE then use your normal config when publishing.
m

Marc Knaup

05/31/2019, 8:15 PM
Thanks for the info, looking forward to it! 🙏
s

svyatoslav.scherbina

06/03/2019, 8:05 AM