From a1eab49856878588b2b196944ee5391126f6118a Mon Sep 17 00:00:00 2001 From: Oleg Yukhnevich Date: Tue, 12 Nov 2024 00:29:11 +0200 Subject: [PATCH] Support wasm-js target in ktor-client modules --- .../main/kotlin/rsocketbuild.multiplatform-base.gradle.kts | 5 +---- ktor-plugins/ktor-client-rsocket/build.gradle.kts | 1 + ktor-plugins/rsocket-ktor-client/build.gradle.kts | 1 + rsocket-transports/ktor-websocket-client/build.gradle.kts | 1 + rsocket-transports/ktor-websocket-internal/build.gradle.kts | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build-logic/src/main/kotlin/rsocketbuild.multiplatform-base.gradle.kts b/build-logic/src/main/kotlin/rsocketbuild.multiplatform-base.gradle.kts index 70140f29..5bf4bd64 100644 --- a/build-logic/src/main/kotlin/rsocketbuild.multiplatform-base.gradle.kts +++ b/build-logic/src/main/kotlin/rsocketbuild.multiplatform-base.gradle.kts @@ -32,10 +32,7 @@ plugins { @OptIn(ExperimentalKotlinGradlePluginApi::class) kotlin { compilerOptions { - // because of INVISIBLE_REFERENCE suppression - will be removed after migration to kotlinx.io - if (project.name != "rsocket-test") { - allWarningsAsErrors.set(true) - } + allWarningsAsErrors.set(true) progressiveMode.set(true) freeCompilerArgs.add("-Xrender-internal-diagnostic-names") optIn.addAll(OptIns.ExperimentalSubclassOptIn) diff --git a/ktor-plugins/ktor-client-rsocket/build.gradle.kts b/ktor-plugins/ktor-client-rsocket/build.gradle.kts index 9d9b43f8..2122bd12 100644 --- a/ktor-plugins/ktor-client-rsocket/build.gradle.kts +++ b/ktor-plugins/ktor-client-rsocket/build.gradle.kts @@ -25,6 +25,7 @@ description = "rsocket-kotlin ktor client plugin" kotlin { jvmTarget() jsTarget() + wasmJsTarget() nativeTargets() sourceSets { diff --git a/ktor-plugins/rsocket-ktor-client/build.gradle.kts b/ktor-plugins/rsocket-ktor-client/build.gradle.kts index 3312f542..5bbe92fe 100644 --- a/ktor-plugins/rsocket-ktor-client/build.gradle.kts +++ b/ktor-plugins/rsocket-ktor-client/build.gradle.kts @@ -25,6 +25,7 @@ description = "OLD ARTIFACT - migrate to ktor-client-rsocket" kotlin { jvmTarget() jsTarget() + wasmJsTarget() nativeTargets() sourceSets { diff --git a/rsocket-transports/ktor-websocket-client/build.gradle.kts b/rsocket-transports/ktor-websocket-client/build.gradle.kts index f9bcbf6a..7aae725b 100644 --- a/rsocket-transports/ktor-websocket-client/build.gradle.kts +++ b/rsocket-transports/ktor-websocket-client/build.gradle.kts @@ -25,6 +25,7 @@ description = "rsocket-kotlin ktor WebSocket client transport implementation" kotlin { jvmTarget() jsTarget() + wasmJsTarget() nativeTargets() sourceSets { diff --git a/rsocket-transports/ktor-websocket-internal/build.gradle.kts b/rsocket-transports/ktor-websocket-internal/build.gradle.kts index c3583f62..42aeb76d 100644 --- a/rsocket-transports/ktor-websocket-internal/build.gradle.kts +++ b/rsocket-transports/ktor-websocket-internal/build.gradle.kts @@ -25,6 +25,7 @@ description = "rsocket-kotlin ktor WebSocket transport utilities" kotlin { jvmTarget() jsTarget() + wasmJsTarget() nativeTargets() sourceSets {