Skip to content

Commit

Permalink
Upgrade ktorfit to the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
lihenggui committed Dec 10, 2024
1 parent a87dcda commit e5cd8e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
16 changes: 3 additions & 13 deletions core/network/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ plugins {
alias(libs.plugins.nowinandroid.kmp.library)
alias(libs.plugins.nowinandroid.android.library.jacoco)
alias(libs.plugins.nowinandroid.di.koin)
alias(libs.plugins.ksp)
alias(libs.plugins.ktrofit)
alias(libs.plugins.buildkonfig)
id("kotlinx-serialization")
alias(libs.plugins.kotlin.serialization)
id("com.google.android.libraries.mapsplatform.secrets-gradle-plugin")
}

Expand Down Expand Up @@ -62,6 +63,7 @@ kotlin {
implementation(libs.ktorfit.lib)
implementation(libs.ktorfit.converters.call)
implementation(libs.ktorfit.converters.flow)
implementation(libs.ktorfit.converters.response)
}
androidMain.dependencies {
implementation(libs.ktor.client.android)
Expand All @@ -80,15 +82,3 @@ kotlin {
}
}
}

dependencies {
add("kspCommonMainMetadata", libs.ktorfit.ksp)
add("kspAndroid", libs.ktorfit.ksp)
// add("kspWasmJs", libs.ktorfit.ksp)
add("kspJvm", libs.ktorfit.ksp)
add("kspIosX64", libs.ktorfit.ksp)
add("kspIosArm64", libs.ktorfit.ksp)
add("kspIosSimulatorArm64", libs.ktorfit.ksp)
add("kspMacosX64", libs.ktorfit.ksp)
add("kspMacosArm64", libs.ktorfit.ksp)
}
8 changes: 4 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ androidxWork = "2.10.1"
coil = "3.0.3"
dependencyGuard = "0.5.0"
jacoco = "0.8.7"
kotlin = "2.0.21"
kotlin = "2.1.0"
kotlinxCoroutines = "1.9.0"
kotlinxDatetime = "0.6.1"
kotlinxSerializationJson = "1.7.3"
ksp = "2.0.21-1.0.28"
ksp = "2.1.0-1.0.29"
logback = "1.5.12"
material3adaptive = "1.0.1"
moduleGraph = "2.7.1"
Expand All @@ -54,7 +54,7 @@ kermit = "2.0.4"
koin = "4.0.0"
koin-annotations = "1.4.0-RC4"
ktor = "3.0.1"
ktrofit = "2.1.0"
ktrofit = "2.2.0"
buildKonfig = "0.15.2"
lifecycle-viewmodel-compose = "2.8.4"
navigation-compose = "2.8.0-alpha10"
Expand Down Expand Up @@ -163,10 +163,10 @@ ktor-client-java = { group = "io.ktor", name = "ktor-client-java", version.ref =
ktor-client-js = { group = "io.ktor", name = "ktor-client-js", version.ref = "ktor" }
ktor-client-winhttp = { group = "io.ktor", name = "ktor-client-winhttp", version.ref = "ktor" }
ktor-serialization-kotlinx-json = { group = "io.ktor", name = "ktor-serialization-kotlinx-json", version.ref = "ktor" }
ktorfit-ksp = { group = "de.jensklingenberg.ktorfit", name = "ktorfit-ksp", version.ref = "ktrofit" }
ktorfit-lib = { group = "de.jensklingenberg.ktorfit", name = "ktorfit-lib", version.ref = "ktrofit" }
ktorfit-converters-flow = { group = "de.jensklingenberg.ktorfit", name = "ktorfit-converters-flow", version.ref = "ktrofit" }
ktorfit-converters-call = { group = "de.jensklingenberg.ktorfit", name = "ktorfit-converters-call", version.ref = "ktrofit" }
ktorfit-converters-response = { group = "de.jensklingenberg.ktorfit", name = "ktorfit-converters-response", version.ref = "ktrofit" }
buildkonfig-gradlePlugin = { group = "com.codingfeline.buildkonfig", name = "buildkonfig-gradle-plugin", version.ref = "buildKonfig" }
jetbrains-compose-viewmodel = { group = "org.jetbrains.androidx.lifecycle", name = "lifecycle-viewmodel-compose", version.ref = "lifecycle-viewmodel-compose" }
jetbrains-compose-navigation = { group = "org.jetbrains.androidx.navigation", name = "navigation-compose", version.ref = "navigation-compose" }
Expand Down

0 comments on commit e5cd8e3

Please sign in to comment.