diff --git a/settings.gradle.kts b/settings.gradle.kts index ede34db..8ab52c5 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -18,11 +18,11 @@ dependencyResolutionManagement { create("libs") { version("android-tools-gradle", "7.2.0") version("kotlin", "1.7.10") - version("ktor", "2.1.1") + version("ktor", "2.1.3") library("ktor-client-core", "io.ktor", "ktor-client-core").versionRef("ktor") library("ktor-client-android", "io.ktor", "ktor-client-android").versionRef("ktor") - library("ktor-client-darwin", "io.ktor", "ktor-client-darwin").versionRef("ktor") + library("ktor-client-darwin", "io.ktor", "ktor-client-darwin-legacy").versionRef("ktor") library("ktor-client-jvm", "io.ktor", "ktor-client-java").versionRef("ktor") library("ktor-client-js", "io.ktor", "ktor-client-js").versionRef("ktor") library("kotlinx-coroutines", "org.jetbrains.kotlinx", "kotlinx-coroutines-core").version("1.6.1") diff --git a/src/iosMain/kotlin/com/liftric/cognito/idp/core/Engine.kt b/src/iosMain/kotlin/com/liftric/cognito/idp/core/Engine.kt index 732576a..1a64624 100644 --- a/src/iosMain/kotlin/com/liftric/cognito/idp/core/Engine.kt +++ b/src/iosMain/kotlin/com/liftric/cognito/idp/core/Engine.kt @@ -1,7 +1,7 @@ package com.liftric.cognito.idp.core import io.ktor.client.engine.HttpClientEngine -import io.ktor.client.engine.darwin.Darwin +import io.ktor.client.engine.darwin.DarwinLegacy -internal actual val Engine: HttpClientEngine = Darwin.create() +internal actual val Engine: HttpClientEngine = DarwinLegacy.create()