Using now kmp-web-client instead of importing Ktor manually

This commit is contained in:
dankito 2023-07-06 16:37:23 +02:00
parent 1f9d35a5f6
commit 5a49c6c465
3 changed files with 8 additions and 15 deletions

View File

@ -41,6 +41,10 @@ allprojects {
mavenLocal() mavenLocal()
mavenCentral() mavenCentral()
google() google()
// TODO: remove again as soon as kmp-web-client is released
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
} }
group 'net.codinux.banking' group 'net.codinux.banking'

View File

@ -69,7 +69,8 @@ kotlin {
implementation "co.touchlab:stately-concurrency:1.2.0" implementation "co.touchlab:stately-concurrency:1.2.0"
implementation "io.ktor:ktor-client-core:$ktorVersion" implementation "io.ktor:ktor-client-core:$ktorVersion" // only left here cause kmp-web-client doesn't expose ktor as api
implementation("net.dankito.web.client:kmp-web-client:1.0.0-SNAPSHOT")
} }
} }
@ -83,8 +84,6 @@ kotlin {
jvmMain { jvmMain {
dependencies { dependencies {
implementation "io.ktor:ktor-client-okhttp:$ktorVersion"
implementation "org.slf4j:slf4j-api:$slf4jVersion" implementation "org.slf4j:slf4j-api:$slf4jVersion"
} }
} }
@ -120,7 +119,7 @@ kotlin {
jsMain { jsMain {
dependencies { dependencies {
implementation "io.ktor:ktor-client-js:$ktorVersion"
} }
} }
@ -129,18 +128,8 @@ kotlin {
} }
iosMain {
dependencies {
implementation "io.ktor:ktor-client-ios:$ktorVersion"
}
}
nativeMain { nativeMain {
dependencies { dependencies {
// requires cURL to be installed on your system
implementation "io.ktor:ktor-client-curl:$ktorVersion"
implementation "com.github.ajalt.clikt:clikt:3.4.0" implementation "com.github.ajalt.clikt:clikt:3.4.0"
// only needed for writing files to output // only needed for writing files to output

View File

@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx3072m
kotlinVersion=1.8.20 kotlinVersion=1.8.20
coroutinesVersion=1.7.2 coroutinesVersion=1.7.2
ktorVersion=2.3.2 ktorVersion=2.3.1
kotlinxDateTimeVersion=0.4.0 kotlinxDateTimeVersion=0.4.0
android.useAndroidX=true android.useAndroidX=true