Skip to content

Commit

Permalink
Fix compiler errors on xcode15 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
kp-said-rehouni authored Nov 9, 2023
1 parent 79c72d7 commit 5e88632
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import platform.Security.*
import platform.posix.memcpy

@OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)
actual object MessageVerificator {
internal actual object MessageVerificator {

actual fun verifyMessage(message: String, key: String): Boolean {
val publicKeyData = NSData.create(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package com.privateinternetaccess.regions.internals
*/


actual class PingPerformer {
internal actual class PingPerformer {

companion object {
private const val REGIONS_PING_PORT = 443
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ package com.privateinternetaccess.regions.internals
import com.privateinternetaccess.regions.internals.Regions.Companion.REQUEST_TIMEOUT_MS
import io.ktor.client.HttpClient
import io.ktor.client.engine.darwin.*
import io.ktor.client.engine.ios.Ios
import io.ktor.client.plugins.*
import io.ktor.client.engine.ios.*
import io.ktor.client.plugins.*
import kotlinx.cinterop.*
import platform.CoreFoundation.*
import platform.Foundation.*
Expand All @@ -36,7 +35,7 @@ internal actual object RegionHttpClient {
certificate: String?,
pinnedEndpoint: Pair<String, String>?
): Pair<HttpClient?, Exception?> {
return Pair(HttpClient(Ios) {
return Pair(HttpClient(Darwin) {
expectSuccess = false
install(HttpTimeout) {
requestTimeoutMillis = REQUEST_TIMEOUT_MS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import platform.Security.*
import platform.posix.memcpy

@OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)
actual object MessageVerificator {
internal actual object MessageVerificator {

actual fun verifyMessage(message: String, key: String): Boolean {
val publicKeyData = NSData.create(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package com.privateinternetaccess.regions.internals
*/


actual class PingPerformer {
internal actual class PingPerformer {

companion object {
private const val REGIONS_PING_PORT = 443
Expand Down

0 comments on commit 5e88632

Please sign in to comment.