File tree Expand file tree Collapse file tree 5 files changed +23
-1
lines changed
commonMain/kotlin/com/mr3y/podcastindex/extensions
iosMain/kotlin/com/mr3y/podcastindex Expand file tree Collapse file tree 5 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ concurrency:
14
14
15
15
jobs :
16
16
build :
17
- runs-on : ubuntu -latest
17
+ runs-on : macos -latest
18
18
19
19
steps :
20
20
- name : Checkout
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ vanniktech-maven = "0.29.0"
15
15
[libraries ]
16
16
ktor-core = { module = " io.ktor:ktor-client-core" , version.ref = " ktor" }
17
17
ktor-okhttp = { module = " io.ktor:ktor-client-okhttp" , version.ref = " ktor" }
18
+ ktor-darwin = { module = " io.ktor:ktor-client-darwin" , version.ref = " ktor" }
18
19
ktor-content-negotiation = { module = " io.ktor:ktor-client-content-negotiation" , version.ref = " ktor" }
19
20
ktor-kotlinx-serialization = { module = " io.ktor:ktor-serialization-kotlinx-json" , version.ref = " ktor" }
20
21
ktor-logging = { module = " io.ktor:ktor-client-logging" , version.ref = " ktor" }
Original file line number Diff line number Diff line change @@ -25,6 +25,16 @@ kotlin {
25
25
coreLibrariesVersion = libs.versions.kotlinTarget.get()
26
26
27
27
jvm()
28
+ listOf (
29
+ iosX64(),
30
+ iosArm64(),
31
+ iosSimulatorArm64(),
32
+ ).forEach {
33
+ it.binaries.framework {
34
+ baseName = " podcastindex-sdk"
35
+ isStatic = true
36
+ }
37
+ }
28
38
29
39
sourceSets {
30
40
commonMain.dependencies {
@@ -41,6 +51,10 @@ kotlin {
41
51
implementation(libs.ktor.okhttp)
42
52
}
43
53
54
+ iosMain.dependencies {
55
+ implementation(libs.ktor.darwin)
56
+ }
57
+
44
58
commonTest.dependencies {
45
59
implementation(kotlin(" test" ))
46
60
}
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import io.ktor.client.request.headers
12
12
import io.ktor.http.HttpStatusCode
13
13
import io.ktor.serialization.kotlinx.json.json
14
14
import io.ktor.util.sha1
15
+ import io.ktor.utils.io.core.toByteArray
15
16
import kotlinx.datetime.Clock
16
17
import kotlinx.serialization.json.Json
17
18
import co.touchlab.kermit.Logger as KermitLogger
Original file line number Diff line number Diff line change
1
+ package com.mr3y.podcastindex
2
+
3
+ import io.ktor.client.engine.HttpClientEngineFactory
4
+ import io.ktor.client.engine.darwin.Darwin
5
+
6
+ internal actual fun defaultHttpClientEngineFactory (): HttpClientEngineFactory <* > = Darwin
You can’t perform that action at this time.
0 commit comments