Skip to content

Commit

Permalink
PIA-1161: Add iOS 12 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
kp-laura-sempere committed Jan 8, 2024
1 parent 59a6e82 commit 9435db3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions kpi/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ kotlin {
tvosSimulatorArm64(),
tvosArm64()
).forEach {
val main by it.compilations.getting {
val fixUndefinedSymbols by cinterops.creating {
defFile(project.file("src/iosMain/kotlin/com/privateinternetaccess/kpi/internals/cinterop/fix_undefined_symbols.def"))
}
}
it.binaries.framework {
xcf.add(this)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ internal actual object KPIHttpClient {
certificate: String?,
pinnedEndpoint: Pair<String, String>?,
requestTimeoutMs: Long
) = HttpClient(Ios) {
) = HttpClient(Darwin) {
expectSuccess = false
install(HttpTimeout) {
requestTimeoutMillis = requestTimeoutMs
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package = fix_undefined_symbols
---
void * OBJC_CLASS_$_NSURLSessionWebSocketMessage = 0;

0 comments on commit 9435db3

Please sign in to comment.