Using now kmp-web-client instead of importing Ktor manually
This commit is contained in:
parent
1f9d35a5f6
commit
5a49c6c465
|
@ -41,6 +41,10 @@ allprojects {
|
|||
mavenLocal()
|
||||
mavenCentral()
|
||||
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'
|
||||
|
|
|
@ -69,7 +69,8 @@ kotlin {
|
|||
|
||||
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 {
|
||||
dependencies {
|
||||
implementation "io.ktor:ktor-client-okhttp:$ktorVersion"
|
||||
|
||||
implementation "org.slf4j:slf4j-api:$slf4jVersion"
|
||||
}
|
||||
}
|
||||
|
@ -120,7 +119,7 @@ kotlin {
|
|||
|
||||
jsMain {
|
||||
dependencies {
|
||||
implementation "io.ktor:ktor-client-js:$ktorVersion"
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -129,18 +128,8 @@ kotlin {
|
|||
}
|
||||
|
||||
|
||||
iosMain {
|
||||
dependencies {
|
||||
implementation "io.ktor:ktor-client-ios:$ktorVersion"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
nativeMain {
|
||||
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"
|
||||
|
||||
// only needed for writing files to output
|
||||
|
|
|
@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx3072m
|
|||
kotlinVersion=1.8.20
|
||||
|
||||
coroutinesVersion=1.7.2
|
||||
ktorVersion=2.3.2
|
||||
ktorVersion=2.3.1
|
||||
kotlinxDateTimeVersion=0.4.0
|
||||
|
||||
android.useAndroidX=true
|
||||
|
|
Loading…
Reference in New Issue