KPM: change detection of single-platform fragments to support WASM
The previous predicate checked only for JVM/Android and JS, now the check is independent of the particular platform
This commit is contained in:
+1
-1
@@ -121,7 +121,7 @@ internal open class KotlinCommonFragmentMetadataCompilationDataImpl(
|
|||||||
get() = !fragment.isNativeShared() &&
|
get() = !fragment.isNativeShared() &&
|
||||||
fragment.containingModule.variantsContainingFragment(fragment).run {
|
fragment.containingModule.variantsContainingFragment(fragment).run {
|
||||||
!all { it.platformType in setOf(KotlinPlatformType.androidJvm, KotlinPlatformType.jvm) } &&
|
!all { it.platformType in setOf(KotlinPlatformType.androidJvm, KotlinPlatformType.jvm) } &&
|
||||||
!all { it.platformType == KotlinPlatformType.js }
|
mapTo(hashSetOf()) { it.platformType }.size > 1
|
||||||
}
|
}
|
||||||
|
|
||||||
override val kotlinOptions: KotlinMultiplatformCommonOptions = KotlinMultiplatformCommonOptionsImpl()
|
override val kotlinOptions: KotlinMultiplatformCommonOptions = KotlinMultiplatformCommonOptionsImpl()
|
||||||
|
|||||||
Reference in New Issue
Block a user