From 2447ca0dac33fc88ee9f30a363b74f42ec24f817 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Fri, 3 Jan 2025 15:18:56 +0100 Subject: [PATCH] Add new targets now supported by Ktor Resolves: https://github.com/joffrey-bion/chrome-devtools-kotlin/issues/482 Resolves: https://github.com/joffrey-bion/chrome-devtools-kotlin/issues/483 Resolves: https://github.com/joffrey-bion/chrome-devtools-kotlin/issues/484 --- build.gradle.kts | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 76d46273..60bee639 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,4 +1,5 @@ import org.hildan.chrome.devtools.build.* +import org.jetbrains.kotlin.gradle.* import org.jetbrains.kotlin.gradle.targets.jvm.tasks.* plugins { @@ -28,6 +29,7 @@ repositories { private val generatedProtocolSourcesDirPath = "src/commonMain/generated" +@OptIn(ExperimentalWasmDsl::class) kotlin { jvmToolchain(11) @@ -36,6 +38,12 @@ kotlin { browser() nodejs() } + wasmJs { + browser() + nodejs() + d8() + } + mingwX64() linuxX64() linuxArm64() @@ -47,26 +55,22 @@ kotlin { watchosX64() watchosArm32() watchosArm64() + watchosDeviceArm64() watchosSimulatorArm64() tvosX64() tvosArm64() tvosSimulatorArm64() + androidNativeArm32() + androidNativeArm64() + androidNativeX64() + androidNativeX86() + // Not supported yet by Ktor - // wasmJs { - // browser() - // nodejs() - // d8() - // } // wasmWasi { // nodejs() // } - // watchosDeviceArm64() - // androidNativeArm32() - // androidNativeArm64() - // androidNativeX64() - // androidNativeX86() sourceSets { commonMain {