Fix import of js MPP source sets in both mode

#KT-38706 Fixed
This commit is contained in:
Andrey Uskov
2020-05-26 00:07:53 +03:00
parent 36c9d04cd3
commit a431e20b45

View File

@@ -31,6 +31,8 @@ open class KotlinJsTargetPreset(
override val platformType: KotlinPlatformType
get() = KotlinPlatformType.js
override fun useDisambiguitionClassifierAsSourcesetNamePreffix() = false
override fun instantiateTarget(name: String): KotlinJsTarget {
return project.objects.newInstance(
KotlinJsTarget::class.java,
@@ -95,8 +97,6 @@ class KotlinJsSingleTargetPreset(
override val isMpp: Boolean
get() = false
override fun useDisambiguitionClassifierAsSourcesetNamePreffix() = false
// In a Kotlin/JS single-platform project, we don't need any disambiguation suffixes or prefixes in the names:
override fun provideTargetDisambiguationClassifier(target: KotlinOnlyTarget<KotlinJsCompilation>): String? =
irPreset?.let {