russhwolf / multiplatform-settings

A Kotlin Multiplatform library for saving simple key-value data
Apache License 2.0
1.69k stars 67 forks source link

Only 'linkNativeSourceSets' when at least one native target is config… #97

Closed sellmair closed 3 years ago

sellmair commented 3 years ago

…ured

This will mitigate KT-46273 until Kotlin 1.6.0

russhwolf commented 3 years ago

Thanks! There's potential edge cases since linkNativeSourceSets() actually handles some jvm stuff too, but it would only cause an issue if there were a module with android/jvm/js and no native, and I don't really see that happening any time soon (and also this whole file is due for a refactor anyway to get away from this awful buildSrc setup)