add os filtering on source sets

This commit is contained in:
pm47 2024-03-21 14:13:57 +01:00
parent a3840717ea
commit 3c39ff6d85
No known key found for this signature in database
GPG Key ID: E434ED292E85643A

View File

@ -136,14 +136,18 @@ kotlin {
implementation("app.cash.sqldelight:native-driver:${Versions.sqlDelight}") implementation("app.cash.sqldelight:native-driver:${Versions.sqlDelight}")
} }
} }
linuxMain { if (currentOs.isLinux) {
dependencies { linuxMain {
implementation(ktor("client-curl")) dependencies {
implementation(ktor("client-curl"))
}
} }
} }
macosMain { if (currentOs.isMacOsX) {
dependencies { macosMain {
implementation(ktor("client-darwin")) dependencies {
implementation(ktor("client-darwin"))
}
} }
} }
} }