From e4982c3d054c314e30a0df9e4804eea0480bba8e Mon Sep 17 00:00:00 2001 From: Osip Fatkullin Date: Mon, 20 Jan 2025 11:10:03 +0100 Subject: [PATCH] KTOR-8091 Fix ktor-client-curl publishing --- buildSrc/src/main/kotlin/TargetsConfig.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/buildSrc/src/main/kotlin/TargetsConfig.kt b/buildSrc/src/main/kotlin/TargetsConfig.kt index 05faf1e8ad..62c4b031c4 100644 --- a/buildSrc/src/main/kotlin/TargetsConfig.kt +++ b/buildSrc/src/main/kotlin/TargetsConfig.kt @@ -13,11 +13,12 @@ val Project.hasCommon: Boolean get() = files.any { it.name == "common" } val Project.hasNonJvm: Boolean get() = files.any { it.name == "nonJvm" } val Project.hasJvmAndPosix: Boolean get() = hasCommon || files.any { it.name == "jvmAndPosix" } val Project.hasPosix: Boolean get() = hasCommon || hasNonJvm || hasJvmAndPosix || files.any { it.name == "posix" } +val Project.hasDesktop: Boolean get() = hasPosix || files.any { it.name == "desktop" } val Project.hasNix: Boolean get() = hasPosix || files.any { it.name == "nix" } -val Project.hasLinux: Boolean get() = hasNix || files.any { it.name == "linux" } -val Project.hasDarwin: Boolean get() = hasNix || files.any { it.name == "darwin" } +val Project.hasLinux: Boolean get() = hasNix || hasDesktop || files.any { it.name == "linux" } +val Project.hasDarwin: Boolean get() = hasNix || hasDesktop || files.any { it.name == "darwin" } val Project.hasAndroidNative: Boolean get() = hasPosix || files.any { it.name == "androidNative" } -val Project.hasWindows: Boolean get() = hasPosix || files.any { it.name == "windows" } +val Project.hasWindows: Boolean get() = hasPosix || hasDesktop || files.any { it.name == "windows" } val Project.hasJsAndWasmShared: Boolean get() = hasCommon || hasNonJvm || files.any { it.name == "jsAndWasmShared" } val Project.hasJs: Boolean get() = hasJsAndWasmShared || files.any { it.name == "js" } val Project.hasWasmJs: Boolean get() = hasJsAndWasmShared || files.any { it.name == "wasmJs" }