[Gradle] Replace toLowerCase/toUpperCase with ASCII-only variants
^KT-38712 Verification Pending
This commit is contained in:
committed by
Space Team
parent
afb2bfe492
commit
36591ab8a0
+1
-1
@@ -27,7 +27,7 @@ enum class KotlinJsCompilerType {
|
||||
}
|
||||
|
||||
val KotlinJsCompilerType.lowerName
|
||||
get() = name.toLowerCase()
|
||||
get() = name.toLowerCase(Locale.ENGLISH)
|
||||
|
||||
fun String.removeJsCompilerSuffix(compilerType: KotlinJsCompilerType): String {
|
||||
val truncatedString = removeSuffix(compilerType.lowerName)
|
||||
|
||||
+2
-1
@@ -10,6 +10,7 @@ import org.gradle.api.Named
|
||||
import org.jetbrains.kotlin.konan.target.CompilerOutputKind
|
||||
import org.jetbrains.kotlin.konan.target.Family.*
|
||||
import org.jetbrains.kotlin.konan.target.KonanTarget
|
||||
import java.util.*
|
||||
|
||||
enum class NativeBuildType(
|
||||
val optimized: Boolean,
|
||||
@@ -18,7 +19,7 @@ enum class NativeBuildType(
|
||||
RELEASE(true, false),
|
||||
DEBUG(false, true);
|
||||
|
||||
override fun getName(): String = name.toLowerCase()
|
||||
override fun getName(): String = name.toLowerCase(Locale.ENGLISH)
|
||||
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
@Deprecated(
|
||||
|
||||
Reference in New Issue
Block a user