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 9, 2024
1 parent 6fbc888 commit 3ab7a9c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions csi/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/csi/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 @@ -35,7 +35,7 @@ actual object CSIHttpClient {
certificate: String?,
pinnedEndpoint: Pair<String, String>?
): Pair<HttpClient?, CSIRequestError.CSIException?> {
return Pair(HttpClient(Ios) {
return Pair(HttpClient(Darwin) {
expectSuccess = false
install(HttpTimeout) {
requestTimeoutMillis = CSI.REQUEST_TIMEOUT_MS
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 3ab7a9c

Please sign in to comment.