aboutsummaryrefslogtreecommitdiff
path: root/shared/src/iosMain/kotlin/mx
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2023-09-16 16:13:33 -0600
committerIván Ávalos <avalos@disroot.org>2023-09-16 16:13:33 -0600
commitbe1aa14b94e435488864aa77d895ad8d93865d7c (patch)
tree713cf49fb6e8516788a437a91730d7d56540a384 /shared/src/iosMain/kotlin/mx
parent6c69520fc2a968cb27d1f751f34a123205936567 (diff)
downloadetbsa-trackermap-mobile-be1aa14b94e435488864aa77d895ad8d93865d7c.tar.gz
etbsa-trackermap-mobile-be1aa14b94e435488864aa77d895ad8d93865d7c.tar.bz2
etbsa-trackermap-mobile-be1aa14b94e435488864aa77d895ad8d93865d7c.zip
- [shared] Downgrade Kotlin to 1.8.22 due to Native issues
- [shared] Upgrade Ktor to 2.3.4 and migrate code - [ios] Update view models to use @MainActor and Kotlin migrations
Diffstat (limited to 'shared/src/iosMain/kotlin/mx')
-rw-r--r--shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/HttpClientProvider.kt4
-rw-r--r--shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/utils/NSDataByteArray.kt2
2 files changed, 3 insertions, 3 deletions
diff --git a/shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/HttpClientProvider.kt b/shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/HttpClientProvider.kt
index e95e964..7f72392 100644
--- a/shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/HttpClientProvider.kt
+++ b/shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/HttpClientProvider.kt
@@ -18,11 +18,11 @@
package mx.trackermap.TrackerMap.client.infrastructure
import io.ktor.client.*
-import io.ktor.client.engine.ios.*
+import io.ktor.client.engine.darwin.*
actual class HttpClientProvider {
actual fun getHttpClient(): HttpClient {
- return HttpClient(Ios) {
+ return HttpClient(Darwin) {
engine {
configureSession {
HTTPCookieStorage = null
diff --git a/shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/utils/NSDataByteArray.kt b/shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/utils/NSDataByteArray.kt
index 807c63f..9d23296 100644
--- a/shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/utils/NSDataByteArray.kt
+++ b/shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/utils/NSDataByteArray.kt
@@ -37,4 +37,4 @@ fun NSData.toByteArray(): ByteArray = ByteArray(this@toByteArray.length.toInt())
usePinned {
memcpy(it.addressOf(0), this@toByteArray.bytes, this@toByteArray.length)
}
-} \ No newline at end of file
+}