From 2ab77fa7a4e31ff0cf2466146c7d54d566614641 Mon Sep 17 00:00:00 2001 From: Connor Wyatt Date: Sun, 17 Mar 2024 21:24:33 +0000 Subject: [PATCH] Remove CIO as client engine --- http/build.gradle.kts | 1 - .../connorwyatt/common/http/HttpDependenciesModule.kt | 6 +++--- settings.gradle.kts | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/http/build.gradle.kts b/http/build.gradle.kts index 39a704d..35a359e 100644 --- a/http/build.gradle.kts +++ b/http/build.gradle.kts @@ -5,5 +5,4 @@ dependencies { implementation(libraries.kodein.di) implementation(libraries.kotlinx.serialization.json) - implementation(libraries.ktor.client.cio) } diff --git a/http/src/main/kotlin/com/github/connorwyatt/common/http/HttpDependenciesModule.kt b/http/src/main/kotlin/com/github/connorwyatt/common/http/HttpDependenciesModule.kt index a13f85f..cb74afd 100644 --- a/http/src/main/kotlin/com/github/connorwyatt/common/http/HttpDependenciesModule.kt +++ b/http/src/main/kotlin/com/github/connorwyatt/common/http/HttpDependenciesModule.kt @@ -1,10 +1,10 @@ package com.github.connorwyatt.common.http import io.ktor.client.* -import io.ktor.client.engine.cio.* -import org.kodein.di.* +import org.kodein.di.DI +import org.kodein.di.bindProvider const val DEFAULT_JSON_HTTP_CLIENT_TAG = "DEFAULT_JSON_HTTP_CLIENT" val httpDependenciesModule by - DI.Module { bindProvider(tag = DEFAULT_JSON_HTTP_CLIENT_TAG) { HttpClient(CIO) } } + DI.Module { bindProvider(tag = DEFAULT_JSON_HTTP_CLIENT_TAG) { HttpClient() } } diff --git a/settings.gradle.kts b/settings.gradle.kts index eed9680..b2b114c 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -74,7 +74,6 @@ dependencyResolutionManagement { library("kotlinx-serialization-json", "org.jetbrains.kotlinx", "kotlinx-serialization-json").version( kotlinxSerializationVersion ) - library("ktor-client-cio", "io.ktor", "ktor-client-cio").version(ktorVersion) library("ktor-client-core", "io.ktor", "ktor-client-core").version(ktorVersion) library("ktor-serialization-kotlinx-json", "io.ktor", "ktor-serialization-kotlinx-json").version( ktorVersion