Skip to content

Commit

Permalink
Use ktor darwin for mac to avoid curl issue in macOS 14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ncipollo committed Oct 2, 2023
1 parent ada6776 commit f0879aa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
13 changes: 10 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,22 @@ kotlin {

val desktopMain by creating {
dependsOn(nativeMain)
}
val desktopTest by creating { dependsOn(nativeTest) }
val linuxX64Main by getting {
dependsOn(desktopMain)
dependencies {
implementation(libs.ktor.curl)
}
}
val desktopTest by creating { dependsOn(nativeTest) }
val linuxX64Main by getting { dependsOn(desktopMain) }
val linuxX64Test by getting { dependsOn(desktopTest) }

val macosMain by creating { dependsOn(desktopMain) }
val macosMain by creating {
dependsOn(desktopMain)
dependencies {
implementation(libs.ktor.darwin)
}
}
val macosTest by creating { dependsOn(desktopTest) }

val macosArm64Main by getting { dependsOn(macosMain) }
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ktor-client-mock = { module = "io.ktor:ktor-client-mock", version.ref = "ktor" }
ktor-content-negotation = { module = "io.ktor:ktor-client-content-negotiation", version.ref = "ktor" }
ktor-core = { module = "io.ktor:ktor-client-core", version.ref = "ktor" }
ktor-curl = { module = "io.ktor:ktor-client-curl", version.ref = "ktor" }
ktor-darwin = { module = "io.ktor:ktor-client-darwin", version.ref = "ktor" }
ktor-ios = { module = "io.ktor:ktor-client-ios", version.ref = "ktor" }
ktor-js = { module = "io.ktor:ktor-client-js", version.ref = "ktor" }
ktor-jvm = { module = "io.ktor:ktor-client-java", version.ref = "ktor" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ package org.tix.integrations.jira.field

import org.tix.fixture.integrations.jiraApi
import org.tix.test.runTestWorkaround
import kotlin.test.Ignore
import kotlin.test.Test
import kotlin.test.expect

@Ignore
class FieldApiTest {
private val api = jiraApi().field

Expand Down

0 comments on commit f0879aa

Please sign in to comment.