From 2b3cbc816fea3168822dc9c3a670c799de5aba2b Mon Sep 17 00:00:00 2001 From: Juul Mobile Bot Date: Fri, 29 Nov 2024 09:10:25 +0000 Subject: [PATCH 1/4] Update kotlin to v2.1.0 --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 990f21e..ab3a265 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,6 @@ [versions] jacoco = "0.8.7" -kotlin = "2.0.21" +kotlin = "2.1.0" okio = "3.9.1" [libraries] From 20d06c7460e2a0ece29145ce1966ad16dc62b3b4 Mon Sep 17 00:00:00 2001 From: Travis Wyatt Date: Thu, 19 Dec 2024 10:50:07 -0800 Subject: [PATCH 2/4] Replace `toLowerCase` with `lowercase` --- webapp/src/main/kotlin/serialization/Hex.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/main/kotlin/serialization/Hex.kt b/webapp/src/main/kotlin/serialization/Hex.kt index c13ccfe..e499bb9 100644 --- a/webapp/src/main/kotlin/serialization/Hex.kt +++ b/webapp/src/main/kotlin/serialization/Hex.kt @@ -13,5 +13,5 @@ internal fun ByteArray.hex( if (separator.isNotEmpty()) append(separator) } } - return if (lowerCase) hex.toLowerCase() else hex + return if (lowerCase) hex.lowercase() else hex } From be09b75bd7c1e97375efb5614d533fcf5f4fafef Mon Sep 17 00:00:00 2001 From: Travis Wyatt Date: Thu, 19 Dec 2024 10:56:45 -0800 Subject: [PATCH 3/4] Replace `toUpperCase` with `uppercase` --- koap-core/src/commonTest/kotlin/ByteArrayReaderTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koap-core/src/commonTest/kotlin/ByteArrayReaderTest.kt b/koap-core/src/commonTest/kotlin/ByteArrayReaderTest.kt index 12fea0d..bb75275 100644 --- a/koap-core/src/commonTest/kotlin/ByteArrayReaderTest.kt +++ b/koap-core/src/commonTest/kotlin/ByteArrayReaderTest.kt @@ -89,5 +89,5 @@ class ByteArrayReaderTest { private fun String.parseByteArray() = replace(" ", "") .chunked(2) - .map { it.toUpperCase().toInt(16).toByte() } + .map { it.uppercase().toInt(16).toByte() } .toByteArray() From bf48c82321bf9cec5382fd8943ef3691c221c072 Mon Sep 17 00:00:00 2001 From: Travis Wyatt Date: Sat, 1 Feb 2025 13:56:16 -0800 Subject: [PATCH 4/4] Update Kotlin to 2.1.20-Beta2 --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 471cde2..88ac2e9 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,6 @@ [versions] jacoco = "0.8.7" -kotlin = "2.1.0" +kotlin = "2.1.20-Beta2" okio = "3.9.1" [libraries]