From 42a8daaf9ff6b0a82d816803d0d9140b5bb767a1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 27 Nov 2023 22:20:21 +0100 Subject: [PATCH] Update Kotlin core dependencies to v1.9.21 (#244) Co-authored-by: Andrey Kuleshov --- buildSrc/build.gradle.kts | 2 +- buildSrc/src/main/kotlin/com/akuleshov7/Versions.kt | 2 +- .../src/iosMain/kotlin/com/akuleshov7/ktoml/utils/UtilsIos.kt | 3 +++ .../kotlin/com/akuleshov7/ktoml/utils/UtilsSimulator.kt | 3 +++ .../kotlin/com/akuleshov7/ktoml/utils/UtilsLinux.kt | 3 +++ .../kotlin/com/akuleshov7/ktoml/utils/UtilsMacM1.kt | 3 +++ .../macosX64Main/kotlin/com/akuleshov7/ktoml/utils/UtilsMac.kt | 3 +++ .../mingwX64Main/kotlin/com/akuleshov7/ktoml/utils/UtilsWin.kt | 3 +++ 8 files changed, 20 insertions(+), 2 deletions(-) diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index a564822..e9b94b2 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -8,7 +8,7 @@ repositories { dependencies { // this hack prevents the following bug: https://github.com/gradle/gradle/issues/9770 - implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.10") + implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.21") implementation("org.cqfn.diktat:diktat-gradle-plugin:1.2.5") implementation("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.22.0") diff --git a/buildSrc/src/main/kotlin/com/akuleshov7/Versions.kt b/buildSrc/src/main/kotlin/com/akuleshov7/Versions.kt index 4ccaba8..6ed3204 100644 --- a/buildSrc/src/main/kotlin/com/akuleshov7/Versions.kt +++ b/buildSrc/src/main/kotlin/com/akuleshov7/Versions.kt @@ -4,7 +4,7 @@ "PACKAGE_NAME_INCORRECT_PATH") object Versions { - const val KOTLIN = "1.9.10" + const val KOTLIN = "1.9.21" const val JUNIT = "5.7.1" const val OKIO = "3.1.0" const val SERIALIZATION = "1.5.0" diff --git a/ktoml-core/src/iosMain/kotlin/com/akuleshov7/ktoml/utils/UtilsIos.kt b/ktoml-core/src/iosMain/kotlin/com/akuleshov7/ktoml/utils/UtilsIos.kt index a395edf..e8b6200 100644 --- a/ktoml-core/src/iosMain/kotlin/com/akuleshov7/ktoml/utils/UtilsIos.kt +++ b/ktoml-core/src/iosMain/kotlin/com/akuleshov7/ktoml/utils/UtilsIos.kt @@ -4,7 +4,10 @@ package com.akuleshov7.ktoml.utils +import kotlin.experimental.ExperimentalNativeApi + @Suppress("MAGIC_NUMBER") +@OptIn(ExperimentalNativeApi::class) internal actual fun StringBuilder.appendCodePointCompat(codePoint: Int): StringBuilder = when (codePoint) { in 0 until Char.MIN_SUPPLEMENTARY_CODE_POINT -> append(codePoint.toChar()) in Char.MIN_SUPPLEMENTARY_CODE_POINT..Char.MAX_CODE_POINT -> { diff --git a/ktoml-core/src/iosSimulatorArm64Main/kotlin/com/akuleshov7/ktoml/utils/UtilsSimulator.kt b/ktoml-core/src/iosSimulatorArm64Main/kotlin/com/akuleshov7/ktoml/utils/UtilsSimulator.kt index a395edf..e8b6200 100644 --- a/ktoml-core/src/iosSimulatorArm64Main/kotlin/com/akuleshov7/ktoml/utils/UtilsSimulator.kt +++ b/ktoml-core/src/iosSimulatorArm64Main/kotlin/com/akuleshov7/ktoml/utils/UtilsSimulator.kt @@ -4,7 +4,10 @@ package com.akuleshov7.ktoml.utils +import kotlin.experimental.ExperimentalNativeApi + @Suppress("MAGIC_NUMBER") +@OptIn(ExperimentalNativeApi::class) internal actual fun StringBuilder.appendCodePointCompat(codePoint: Int): StringBuilder = when (codePoint) { in 0 until Char.MIN_SUPPLEMENTARY_CODE_POINT -> append(codePoint.toChar()) in Char.MIN_SUPPLEMENTARY_CODE_POINT..Char.MAX_CODE_POINT -> { diff --git a/ktoml-core/src/linuxX64Main/kotlin/com/akuleshov7/ktoml/utils/UtilsLinux.kt b/ktoml-core/src/linuxX64Main/kotlin/com/akuleshov7/ktoml/utils/UtilsLinux.kt index 268797c..9c5422b 100644 --- a/ktoml-core/src/linuxX64Main/kotlin/com/akuleshov7/ktoml/utils/UtilsLinux.kt +++ b/ktoml-core/src/linuxX64Main/kotlin/com/akuleshov7/ktoml/utils/UtilsLinux.kt @@ -4,7 +4,10 @@ package com.akuleshov7.ktoml.utils +import kotlin.experimental.ExperimentalNativeApi + @Suppress("MAGIC_NUMBER") +@OptIn(ExperimentalNativeApi::class) internal actual fun StringBuilder.appendCodePointCompat(codePoint: Int): StringBuilder = when (codePoint) { in 0 until Char.MIN_SUPPLEMENTARY_CODE_POINT -> append(codePoint.toChar()) in Char.MIN_SUPPLEMENTARY_CODE_POINT..Char.MAX_CODE_POINT -> { diff --git a/ktoml-core/src/macosArm64Main/kotlin/com/akuleshov7/ktoml/utils/UtilsMacM1.kt b/ktoml-core/src/macosArm64Main/kotlin/com/akuleshov7/ktoml/utils/UtilsMacM1.kt index 9f3fd2f..ea8002f 100644 --- a/ktoml-core/src/macosArm64Main/kotlin/com/akuleshov7/ktoml/utils/UtilsMacM1.kt +++ b/ktoml-core/src/macosArm64Main/kotlin/com/akuleshov7/ktoml/utils/UtilsMacM1.kt @@ -6,7 +6,10 @@ package com.akuleshov7.ktoml.utils +import kotlin.experimental.ExperimentalNativeApi + @Suppress("MAGIC_NUMBER") +@OptIn(ExperimentalNativeApi::class) internal actual fun StringBuilder.appendCodePointCompat(codePoint: Int): StringBuilder = when (codePoint) { in 0 until Char.MIN_SUPPLEMENTARY_CODE_POINT -> append(codePoint.toChar()) in Char.MIN_SUPPLEMENTARY_CODE_POINT..Char.MAX_CODE_POINT -> { diff --git a/ktoml-core/src/macosX64Main/kotlin/com/akuleshov7/ktoml/utils/UtilsMac.kt b/ktoml-core/src/macosX64Main/kotlin/com/akuleshov7/ktoml/utils/UtilsMac.kt index 268797c..9c5422b 100644 --- a/ktoml-core/src/macosX64Main/kotlin/com/akuleshov7/ktoml/utils/UtilsMac.kt +++ b/ktoml-core/src/macosX64Main/kotlin/com/akuleshov7/ktoml/utils/UtilsMac.kt @@ -4,7 +4,10 @@ package com.akuleshov7.ktoml.utils +import kotlin.experimental.ExperimentalNativeApi + @Suppress("MAGIC_NUMBER") +@OptIn(ExperimentalNativeApi::class) internal actual fun StringBuilder.appendCodePointCompat(codePoint: Int): StringBuilder = when (codePoint) { in 0 until Char.MIN_SUPPLEMENTARY_CODE_POINT -> append(codePoint.toChar()) in Char.MIN_SUPPLEMENTARY_CODE_POINT..Char.MAX_CODE_POINT -> { diff --git a/ktoml-core/src/mingwX64Main/kotlin/com/akuleshov7/ktoml/utils/UtilsWin.kt b/ktoml-core/src/mingwX64Main/kotlin/com/akuleshov7/ktoml/utils/UtilsWin.kt index 268797c..9c5422b 100644 --- a/ktoml-core/src/mingwX64Main/kotlin/com/akuleshov7/ktoml/utils/UtilsWin.kt +++ b/ktoml-core/src/mingwX64Main/kotlin/com/akuleshov7/ktoml/utils/UtilsWin.kt @@ -4,7 +4,10 @@ package com.akuleshov7.ktoml.utils +import kotlin.experimental.ExperimentalNativeApi + @Suppress("MAGIC_NUMBER") +@OptIn(ExperimentalNativeApi::class) internal actual fun StringBuilder.appendCodePointCompat(codePoint: Int): StringBuilder = when (codePoint) { in 0 until Char.MIN_SUPPLEMENTARY_CODE_POINT -> append(codePoint.toChar()) in Char.MIN_SUPPLEMENTARY_CODE_POINT..Char.MAX_CODE_POINT -> {