Skip to content

Commit d8927d7

Browse files
committed
Kotlin 2.2.21-RC2
TODOs: - recheck opt-ins - migrate to `webMain` (maybe commonize impls)
1 parent c63d6e8 commit d8927d7

File tree

11 files changed

+20
-6
lines changed

11 files changed

+20
-6
lines changed

.github/actions/setup-environment/action.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,3 @@ runs:
5555
cache-read-only: ${{ inputs.cache-read-only }}
5656

5757
dependency-graph: ${{ (inputs.submit-dependency-graph == 'true') && 'generate-and-submit' || 'disabled' }}
58-
- run: ./gradlew commonizeNativeDistribution
59-
shell: bash

cryptography-bigint/src/wasmJsMain/kotlin/JsBigInt.wasmJs.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
/*
2-
* Copyright (c) 2024 Oleg Yukhnevich. Use of this source code is governed by the Apache 2.0 license.
2+
* Copyright (c) 2024-2025 Oleg Yukhnevich. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

5+
@file:OptIn(kotlin.js.ExperimentalWasmJsInterop::class)
6+
57
package dev.whyoleg.cryptography.bigint
68

79
@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING")

cryptography-providers/tests/src/wasmJsMain/kotlin/TestPlatform.wasmJs.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* Copyright (c) 2023-2025 Oleg Yukhnevich. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

5+
@file:OptIn(kotlin.js.ExperimentalWasmJsInterop::class)
6+
57
package dev.whyoleg.cryptography.providers.tests
68

79
internal actual val currentTestPlatform: TestPlatform = jsPlatform().run {

cryptography-providers/webcrypto/src/wasmJsMain/kotlin/internal/Algorithms.wasmJs.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Copyright (c) 2024-2025 Oleg Yukhnevich. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

5+
@file:OptIn(kotlin.js.ExperimentalWasmJsInterop::class)
56
@file:Suppress("FunctionName")
67

78
package dev.whyoleg.cryptography.providers.webcrypto.internal

cryptography-providers/webcrypto/src/wasmJsMain/kotlin/internal/Keys.wasmJs.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
/*
2-
* Copyright (c) 2024 Oleg Yukhnevich. Use of this source code is governed by the Apache 2.0 license.
2+
* Copyright (c) 2024-2025 Oleg Yukhnevich. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

5+
@file:OptIn(kotlin.js.ExperimentalWasmJsInterop::class)
6+
57
package dev.whyoleg.cryptography.providers.webcrypto.internal
68

79
@Suppress("ACTUAL_CLASSIFIER_MUST_HAVE_THE_SAME_SUPERTYPES_AS_NON_FINAL_EXPECT_CLASSIFIER_WARNING")

cryptography-providers/webcrypto/src/wasmJsMain/kotlin/internal/SubtleCrypto.wasmJs.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* Copyright (c) 2023-2025 Oleg Yukhnevich. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

5+
@file:OptIn(kotlin.js.ExperimentalWasmJsInterop::class)
6+
57
package dev.whyoleg.cryptography.providers.webcrypto.internal
68

79
import kotlin.js.Promise

cryptography-providers/webcrypto/src/wasmJsMain/kotlin/internal/WebCrypto.wasmJs.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* Copyright (c) 2024-2025 Oleg Yukhnevich. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

5+
@file:OptIn(kotlin.js.ExperimentalWasmJsInterop::class)
6+
57
package dev.whyoleg.cryptography.providers.webcrypto.internal
68

79
internal actual object WebCrypto {

cryptography-providers/webcrypto/src/wasmJsMain/kotlin/internal/interop.wasmJs.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* Copyright (c) 2024-2025 Oleg Yukhnevich. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

5+
@file:OptIn(kotlin.js.ExperimentalWasmJsInterop::class)
6+
57
package dev.whyoleg.cryptography.providers.webcrypto.internal
68

79
import kotlin.coroutines.*

cryptography-random/src/wasmJsMain/kotlin/CryptographyRandom.wasmJs.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* Copyright (c) 2023-2025 Oleg Yukhnevich. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

5+
@file:OptIn(kotlin.js.ExperimentalWasmJsInterop::class)
6+
57
package dev.whyoleg.cryptography.random
68

79
internal actual fun defaultCryptographyRandom(): CryptographyRandom = WebCryptoCryptographyRandom

cryptography-random/src/wasmWasiMain/kotlin/CryptographyRandom.wasmWasi.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023-2024 Oleg Yukhnevich. Use of this source code is governed by the Apache 2.0 license.
2+
* Copyright (c) 2023-2025 Oleg Yukhnevich. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

55
package dev.whyoleg.cryptography.random
@@ -25,5 +25,6 @@ private object WasiPreview1CryptographyRandom : AbstractRandom() {
2525
}
2626
}
2727

28+
@OptIn(kotlin.wasm.ExperimentalWasmInterop::class)
2829
@WasmImport("wasi_snapshot_preview1", "random_get")
2930
private external fun wasiRandomGet(address: Int, size: Int): Int

0 commit comments

Comments
 (0)