louiscad
06/07/2020, 4:31 PMkotlin.native.enableDependencyPropagation
really be false
, or is that a mistake, and I should set it to true
to enable platform-dependent libraries in shared source sets?
Screenshot taken from Kotlin 1.4-M2 blog post (https://blog.jetbrains.com/kotlin/2020/06/kotlin-1-4-m2-released)dsavvinov
06/08/2020, 8:32 AMfalse
. That actually an internal flag, which changes internal algorithm providing support of platform-dependent libraries in shared source-sets.
Actually that’s a tri-state boolean:
• absence of this flag = no platform-dependent libs in shared source-sets
• true
= heuristics-based algorithm (it’s simple from implementation POV but imprecise, so we’ve never announced it I think)
• false
= automatic building of common API by intersecting platform-specific APIs
Yeah, naming and values are a little bit weird, but if everything goes well, we will flip the default for the final release and there will be no need in changing it explicitly.louiscad
06/08/2020, 8:33 AM