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:
+2
-2
@@ -120,8 +120,8 @@ internal open class KotlinCommonFragmentMetadataCompilationDataImpl(
|
|||||||
override val isActive: Boolean
|
override val isActive: Boolean
|
||||||
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