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,17 +136,21 @@ kotlin {
implementation("app.cash.sqldelight:native-driver:${Versions.sqlDelight}")
}
}
if (currentOs.isLinux) {
linuxMain {
dependencies {
implementation(ktor("client-curl"))
}
}
}
if (currentOs.isMacOsX) {
macosMain {
dependencies {
implementation(ktor("client-darwin"))
}
}
}
}
fun Zip.configureZip(dir: String, classifier: String) {
group = "package"