Why are these files not named `World.android.kt`, ...
# kotlin-toolchain
t
Why are these files not named
World.android.kt
,
World.ios.kt
, and
World.jvm.kt
like Gradle does? source: github.com/JetBrains/kotlin-toolchain/…/compose-multiplatform
j
There is no constraint here. It's not a Gradle vs Kotlin Toolchain thing, it's just a choice each project can make. We could indeed do the same in our own examples. Did you face issues with this? Or was it just out of curiosity?
t
no isues, got it
j
That's a good point though. Better align our examples with other templates/examples from JetBrains.
👍 2
in progress 1
s
While there is no technical constraint, I do feel like there's a convention, probably driven by IntelliJ's “Create missing actuals” doing just that.
👍🏼 1
1
🙏 1
j
Thanks for sharing
🫶 1
z
The reason why we have those is 1. Having the same source file name in different source sets used to clash when compiling for JVM or Android, failing the build 2. It's kind of nice to have them for IDE navigation to distinguish the files quickly I wonder if (1) is simply not the case with Kotlin Toolchain somehow, but it's possibly still worth keeping the convention for (2).
🙏 4
progress good quality 1
1