From 3c39ff6d858218a21833615ff497f6673c957885 Mon Sep 17 00:00:00 2001 From: pm47 Date: Thu, 21 Mar 2024 14:13:57 +0100 Subject: [PATCH] add os filtering on source sets --- build.gradle.kts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 41316d5..8a93109 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -136,14 +136,18 @@ kotlin { implementation("app.cash.sqldelight:native-driver:${Versions.sqlDelight}") } } - linuxMain { - dependencies { - implementation(ktor("client-curl")) + if (currentOs.isLinux) { + linuxMain { + dependencies { + implementation(ktor("client-curl")) + } } } - macosMain { - dependencies { - implementation(ktor("client-darwin")) + if (currentOs.isMacOsX) { + macosMain { + dependencies { + implementation(ktor("client-darwin")) + } } } }