Minor: Rename "Default" platform to "Common"
Original commit: a84275b057
This commit is contained in:
@@ -37,10 +37,10 @@ sealed class TargetPlatformKind<out Version : DescriptionAware>(
|
||||
|
||||
object JavaScript : TargetPlatformKind<NoVersion>(NoVersion, "JavaScript")
|
||||
|
||||
object Default : TargetPlatformKind<NoVersion>(NoVersion, "Default (experimental)")
|
||||
object Common : TargetPlatformKind<NoVersion>(NoVersion, "Common (experimental)")
|
||||
|
||||
companion object {
|
||||
val ALL_PLATFORMS: List<TargetPlatformKind<*>> by lazy { listOf(Jvm.JVM_1_6, JavaScript, Default) }
|
||||
val ALL_PLATFORMS: List<TargetPlatformKind<*>> by lazy { listOf(Jvm.JVM_1_6, JavaScript, Common) }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -64,8 +64,8 @@ class JpsKotlinCompilerSettings : JpsElementBase<JpsKotlinCompilerSettings>() {
|
||||
|
||||
private val JpsModule.targetPlatform: TargetPlatformKind<*>?
|
||||
get() {
|
||||
val facetSettings = kotlinFacetExtension?.settings ?: return TargetPlatformKind.Default
|
||||
if (facetSettings.useProjectSettings) return TargetPlatformKind.Default
|
||||
val facetSettings = kotlinFacetExtension?.settings ?: return TargetPlatformKind.Common
|
||||
if (facetSettings.useProjectSettings) return TargetPlatformKind.Common
|
||||
return facetSettings.versionInfo.targetPlatformKind
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ class JpsKotlinCompilerSettings : JpsElementBase<JpsKotlinCompilerSettings>() {
|
||||
multiPlatform = module
|
||||
.dependenciesList
|
||||
.dependencies
|
||||
.any { (it as? JpsModuleDependency)?.module?.targetPlatform == TargetPlatformKind.Default }
|
||||
.any { (it as? JpsModuleDependency)?.module?.targetPlatform == TargetPlatformKind.Common }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user