Should the value of `kotlin.native.enableDependenc...
# eap
l
Should the value of
kotlin.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)
d
It should be
false
. 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.
l
Alright, thanks for clarification!