Skip to content

Commit b55f136

Browse files
committed
chore: trying native build
1 parent 2e14f3a commit b55f136

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@ maven.snapshot.repo.enabled=false
7070
# Other projects
7171
module.compose.enabled=true
7272
module.boot.enabled=false
73-
kotlin.target.native.enabled=false
73+
kotlin.target.native.enabled=true
7474
kotlin.target.win.enabled=false
7575
debug=false

shared/src/nativeMain/kotlin/dev/suresh/http/HttpClient.native.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ actual fun httpClient(
1515
config(this)
1616
engine {
1717
// https://youtrack.jetbrains.com/issue/KTOR-8339
18+
val cacertPath = "/etc/ssl/certs"
1819
if (Platform.osFamily == OsFamily.LINUX) {
19-
caPath = "/etc/ssl/certs"
20+
caPath = cacertPath
21+
kLogger.warn { "Setting CA path to $caPath" }
2022
}
2123
sslVerify = true
2224
}

0 commit comments

Comments
 (0)