diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 3e5ced4eb..db2e71c30 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -13,15 +13,15 @@ androidx-test-junit = "1.1.5" compose-plugin = "1.7.0-rc01" faceDetection = "16.1.6" junit = "4.13.2" -kotlin = "2.0.0" +kotlin = "2.0.21" kotlinx-coroutines = "1.8.1" kotlinx-io = "0.4.0" kotlinx-datetime = "0.6.0" kotlinx-serialization = "1.7.0" bouncy-castle = "1.78.1" tink = "1.13.0" -jetbrainsKotlinJvm = "2.0.0" -ksp = "2.0.0-1.0.22" +jetbrainsKotlinJvm = "2.0.21" +ksp = "2.0.21-1.0.26" androidx-biometrics = "1.2.0-alpha05" volley = "1.2.1" cbor = "0.9" diff --git a/identity/build.gradle.kts b/identity/build.gradle.kts index 01e9299ac..16364b444 100644 --- a/identity/build.gradle.kts +++ b/identity/build.gradle.kts @@ -58,10 +58,6 @@ kotlin { implementation(libs.kotlinx.coroutines.core) implementation(libs.kotlinx.serialization.json) } - languageSettings { - languageVersion = "1.9" - apiVersion = "1.9" - } } val commonTest by getting { @@ -70,10 +66,6 @@ kotlin { implementation(libs.kotlin.test) implementation(libs.kotlinx.coroutine.test) } - languageSettings { - languageVersion = "1.9" - apiVersion = "1.9" - } } val jvmMain by getting { @@ -82,10 +74,6 @@ kotlin { implementation(libs.bouncy.castle.bcpkix) implementation(libs.tink) } - languageSettings { - languageVersion = "1.9" - apiVersion = "1.9" - } } } } diff --git a/identity/src/commonMain/kotlin/com/android/identity/util/Base64Util.kt b/identity/src/commonMain/kotlin/com/android/identity/util/Base64Util.kt index 65f6b09a1..0e5695234 100644 --- a/identity/src/commonMain/kotlin/com/android/identity/util/Base64Util.kt +++ b/identity/src/commonMain/kotlin/com/android/identity/util/Base64Util.kt @@ -1,6 +1,7 @@ package com.android.identity.util import kotlin.io.encoding.Base64 +import kotlin.io.encoding.Base64.PaddingOption import kotlin.io.encoding.ExperimentalEncodingApi /** @@ -17,4 +18,6 @@ fun ByteArray.toBase64Url(): String = Base64.UrlSafe.encode(this).trimEnd('=') * This works for both strings with or without padding. */ @OptIn(ExperimentalEncodingApi::class) -fun String.fromBase64Url(): ByteArray = Base64.UrlSafe.decode(this) +fun String.fromBase64Url(): ByteArray { + return Base64.UrlSafe.withPadding(PaddingOption.ABSENT_OPTIONAL).decode(this) +}