diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-01-26 16:30:51 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-01-26 16:30:51 -0600 |
commit | e369918a12347884898d7c3e9bebf92731db55d5 (patch) | |
tree | 89fde7b7db1692c4c0b04d3df0593374710ca1bd /shared/src/iosMain/kotlin/mx/trackermap/TrackerMap | |
parent | b4785c42aa026a561674257955a7c59b8c964e6f (diff) | |
download | etbsa-trackermap-mobile-e369918a12347884898d7c3e9bebf92731db55d5.tar.gz etbsa-trackermap-mobile-e369918a12347884898d7c3e9bebf92731db55d5.tar.bz2 etbsa-trackermap-mobile-e369918a12347884898d7c3e9bebf92731db55d5.zip |
Disabled automatic storage of cookies in iOS engine (https://youtrack.jetbrains.com/issue/KTOR-3748), so we can handle them manually.
Diffstat (limited to 'shared/src/iosMain/kotlin/mx/trackermap/TrackerMap')
-rw-r--r-- | shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/HttpClientProvider.kt | 16 |
1 files changed, 16 insertions, 0 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 new file mode 100644 index 0000000..1ccb2e6 --- /dev/null +++ b/shared/src/iosMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/HttpClientProvider.kt @@ -0,0 +1,16 @@ +package mx.trackermap.TrackerMap.client.infrastructure + +import io.ktor.client.* +import io.ktor.client.engine.ios.* + +actual class HttpClientProvider { + actual fun getHttpClient(): HttpClient { + return HttpClient(Ios) { + engine { + configureSession { + HTTPCookieStorage = null + } + } + } + } +}
\ No newline at end of file |