Skip to content

Commit

Permalink
Remove CIO as client engine
Browse files Browse the repository at this point in the history
  • Loading branch information
connorwyatt committed Mar 17, 2024
1 parent 6e0901f commit 2ab77fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion http/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ dependencies {

implementation(libraries.kodein.di)
implementation(libraries.kotlinx.serialization.json)
implementation(libraries.ktor.client.cio)
}
Original file line number Diff line number Diff line change
@@ -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() } }
1 change: 0 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ab77fa

Please sign in to comment.