louiscad
07/20/2021, 3:18 PMStuff.kt
that'd default to commonMain
, Stuff.js.kt
in the main
directory that'd be part of the jsMain
sourceSet, TestWhatever.js.kt
in the test
directory would be part of the jsTest
sourceSet, and Stuff.darwin.kt
in the main
directory would be part of the custom darwinMain
sourceSet.
That also makes me think about how .main.kts
, .gradle.kts
and .whatever.kts
files all resolve different symbols based on their extension.ephemient
07/20/2021, 3:48 PMephemient
07/20/2021, 3:51 PMIn pure Kotlin projects, the recommended directory structure follows the package structure with the common root package omitted.
if you're following that, there shouldn't be that many levels of deep directories anyway
louiscad
07/20/2021, 4:12 PMlouiscad
07/20/2021, 4:35 PMephemient
07/20/2021, 10:49 PMephemient
07/20/2021, 10:50 PM#[cfg(...)]
, but I'm not sure that's compelling enough eitherlouiscad
07/21/2021, 5:32 AMephemient
07/21/2021, 6:25 AMSebastian Sellmair [JB]
07/21/2021, 1:39 PMlouiscad
07/21/2021, 1:49 PMuli
07/23/2021, 3:09 PMdany
07/28/2021, 2:36 AMlouiscad
07/28/2021, 7:04 PMephemient
07/29/2021, 3:55 AM#[cfg]
I mentioned before. I think that makes more sense than file extensions.