[Gradle, JS] Remove K/JS legacy support from Gradle plugin
This commit is contained in:
committed by
Space Team
parent
61dbe7fb75
commit
54debac4c5
@@ -980,18 +980,18 @@ public final class org/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerType$Compa
|
||||
}
|
||||
|
||||
public abstract interface class org/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerTypeHolder {
|
||||
public abstract fun getBOTH ()Lorg/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerType;
|
||||
public abstract synthetic fun getBOTH ()Lorg/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerType;
|
||||
public abstract fun getCompilerTypeFromProperties ()Lorg/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerType;
|
||||
public abstract fun getDefaultJsCompilerType ()Lorg/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerType;
|
||||
public abstract fun getIR ()Lorg/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerType;
|
||||
public abstract fun getLEGACY ()Lorg/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerType;
|
||||
public abstract synthetic fun getLEGACY ()Lorg/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerType;
|
||||
}
|
||||
|
||||
public final class org/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerTypeHolder$DefaultImpls {
|
||||
public static fun getBOTH (Lorg/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerTypeHolder;)Lorg/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerType;
|
||||
public static synthetic fun getBOTH (Lorg/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerTypeHolder;)Lorg/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerType;
|
||||
public static fun getDefaultJsCompilerType (Lorg/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerTypeHolder;)Lorg/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerType;
|
||||
public static fun getIR (Lorg/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerTypeHolder;)Lorg/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerType;
|
||||
public static fun getLEGACY (Lorg/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerTypeHolder;)Lorg/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerType;
|
||||
public static synthetic fun getLEGACY (Lorg/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerTypeHolder;)Lorg/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerType;
|
||||
}
|
||||
|
||||
public final class org/jetbrains/kotlin/gradle/plugin/KotlinJsCompilerTypeKt {
|
||||
|
||||
+3
@@ -30,9 +30,12 @@ enum class KotlinJsCompilerType {
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated("This method is planned to be removed")
|
||||
val KotlinJsCompilerType.lowerName
|
||||
get() = name.toLowerCase(Locale.ENGLISH)
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
@Deprecated("This method is planned to be removed")
|
||||
fun String.removeJsCompilerSuffix(compilerType: KotlinJsCompilerType): String {
|
||||
val truncatedString = removeSuffix(compilerType.lowerName)
|
||||
if (this != truncatedString) {
|
||||
|
||||
+4
-3
@@ -8,20 +8,21 @@
|
||||
package org.jetbrains.kotlin.gradle.plugin
|
||||
|
||||
interface KotlinJsCompilerTypeHolder {
|
||||
@Deprecated("Because only IR compiler is left, no more necessary to know about compiler type in properties")
|
||||
val compilerTypeFromProperties: KotlinJsCompilerType?
|
||||
|
||||
val defaultJsCompilerType: KotlinJsCompilerType
|
||||
get() = compilerTypeFromProperties ?: KotlinJsCompilerType.IR
|
||||
get() = KotlinJsCompilerType.IR
|
||||
|
||||
// Necessary to get rid of KotlinJsCompilerType import in build script
|
||||
@Deprecated("Legacy compiler is deprecated. Migrate your project to the new IR-based compiler")
|
||||
@Deprecated("Legacy compiler is deprecated. Migrate your project to the new IR-based compiler", level = DeprecationLevel.HIDDEN)
|
||||
val LEGACY: KotlinJsCompilerType
|
||||
get() = KotlinJsCompilerType.LEGACY
|
||||
|
||||
val IR: KotlinJsCompilerType
|
||||
get() = KotlinJsCompilerType.IR
|
||||
|
||||
@Deprecated("Legacy compiler is deprecated. Migrate your project to the new IR-based compiler")
|
||||
@Deprecated("Legacy compiler is deprecated. Migrate your project to the new IR-based compiler", level = DeprecationLevel.HIDDEN)
|
||||
val BOTH: KotlinJsCompilerType
|
||||
get() = KotlinJsCompilerType.BOTH
|
||||
}
|
||||
Reference in New Issue
Block a user