mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 12:57:04 +05:30
feat: upgrade to OkHttp 4.10.0
This commit is contained in:
parent
8392841554
commit
cb798cf011
7 changed files with 10 additions and 15 deletions
2
.github/renovate.json5
vendored
2
.github/renovate.json5
vendored
|
@ -37,8 +37,6 @@
|
||||||
"gradle"
|
"gradle"
|
||||||
],
|
],
|
||||||
"packagePatterns": [
|
"packagePatterns": [
|
||||||
// We want to stay in sync with Retrofit
|
|
||||||
"^com.squareup.okhttp3",
|
|
||||||
// Renovate refuses to stop resolving this from the snapshots repo
|
// Renovate refuses to stop resolving this from the snapshots repo
|
||||||
"^app.cash.sqldelight",
|
"^app.cash.sqldelight",
|
||||||
],
|
],
|
||||||
|
|
|
@ -45,6 +45,7 @@ android {
|
||||||
dependencies {
|
dependencies {
|
||||||
kapt(libs.dagger.compiler)
|
kapt(libs.dagger.compiler)
|
||||||
implementation(platform(libs.androidx.compose.bom))
|
implementation(platform(libs.androidx.compose.bom))
|
||||||
|
implementation(platform(libs.okhttp.bom))
|
||||||
implementation(libs.dagger)
|
implementation(libs.dagger)
|
||||||
implementation(projects.api)
|
implementation(projects.api)
|
||||||
implementation(projects.common)
|
implementation(projects.common)
|
||||||
|
|
|
@ -22,13 +22,7 @@ class DependencyUpdatesPlugin : Plugin<Project> {
|
||||||
project.pluginManager.apply(VersionsPlugin::class)
|
project.pluginManager.apply(VersionsPlugin::class)
|
||||||
project.pluginManager.apply(VersionCatalogUpdatePlugin::class)
|
project.pluginManager.apply(VersionCatalogUpdatePlugin::class)
|
||||||
project.tasks.withType<DependencyUpdatesTask>().configureEach {
|
project.tasks.withType<DependencyUpdatesTask>().configureEach {
|
||||||
rejectVersionIf {
|
rejectVersionIf { isNonStable(candidate.version) && !isNonStable(currentVersion) }
|
||||||
when (candidate.group) {
|
|
||||||
"com.squareup.okhttp3",
|
|
||||||
"org.jetbrains.kotlin" -> true
|
|
||||||
else -> isNonStable(candidate.version) && !isNonStable(currentVersion)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
checkConstraints = true
|
checkConstraints = true
|
||||||
checkBuildEnvironmentConstraints = true
|
checkBuildEnvironmentConstraints = true
|
||||||
checkForGradleUpdate = true
|
checkForGradleUpdate = true
|
||||||
|
|
|
@ -18,6 +18,7 @@ anvil { generateDaggerFactories.set(true) }
|
||||||
android { namespace = "dev.msfjarvis.claw.core" }
|
android { namespace = "dev.msfjarvis.claw.core" }
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
implementation(platform(libs.okhttp.bom))
|
||||||
api(libs.kotlinx.serialization.json)
|
api(libs.kotlinx.serialization.json)
|
||||||
api(libs.okhttp.loggingInterceptor)
|
api(libs.okhttp.loggingInterceptor)
|
||||||
implementation(libs.dagger)
|
implementation(libs.dagger)
|
||||||
|
|
|
@ -15,7 +15,7 @@ import dagger.multibindings.IntoSet
|
||||||
import kotlinx.serialization.ExperimentalSerializationApi
|
import kotlinx.serialization.ExperimentalSerializationApi
|
||||||
import kotlinx.serialization.json.Json
|
import kotlinx.serialization.json.Json
|
||||||
import kotlinx.serialization.json.JsonNamingStrategy
|
import kotlinx.serialization.json.JsonNamingStrategy
|
||||||
import okhttp3.MediaType
|
import okhttp3.MediaType.Companion.toMediaType
|
||||||
import retrofit2.Converter
|
import retrofit2.Converter
|
||||||
|
|
||||||
@Module
|
@Module
|
||||||
|
@ -26,7 +26,7 @@ object RetrofitModule {
|
||||||
@Provides
|
@Provides
|
||||||
@IntoSet
|
@IntoSet
|
||||||
fun provideJsonConverterFactory(json: Json): Converter.Factory {
|
fun provideJsonConverterFactory(json: Json): Converter.Factory {
|
||||||
val contentType = MediaType.get("application/json")
|
val contentType = "application/json".toMediaType()
|
||||||
return json.asConverterFactory(contentType)
|
return json.asConverterFactory(contentType)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,7 @@ coroutines = "1.6.4"
|
||||||
dagger = "2.45"
|
dagger = "2.45"
|
||||||
kotest = "5.5.5"
|
kotest = "5.5.5"
|
||||||
kotlin = "1.8.10"
|
kotlin = "1.8.10"
|
||||||
# @pin Needs to be aligned with Retrofit
|
okhttp = "4.10.0"
|
||||||
okhttp = "3.14.9"
|
|
||||||
retrofit = "2.9.0"
|
retrofit = "2.9.0"
|
||||||
richtext = "0.16.0"
|
richtext = "0.16.0"
|
||||||
sentry-sdk = "6.15.0"
|
sentry-sdk = "6.15.0"
|
||||||
|
@ -75,8 +74,9 @@ kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-c
|
||||||
kotlinx-serialization-core = { module = "org.jetbrains.kotlinx:kotlinx-serialization-core", version.ref = "serialization" }
|
kotlinx-serialization-core = { module = "org.jetbrains.kotlinx:kotlinx-serialization-core", version.ref = "serialization" }
|
||||||
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "serialization" }
|
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "serialization" }
|
||||||
napier = "io.github.aakira:napier:2.6.1"
|
napier = "io.github.aakira:napier:2.6.1"
|
||||||
okhttp-core = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }
|
okhttp-bom = "com.squareup.okhttp3:okhttp-bom:4.10.0"
|
||||||
okhttp-loggingInterceptor = { module = "com.squareup.okhttp3:logging-interceptor", version.ref = "okhttp" }
|
okhttp-core = { module = "com.squareup.okhttp3:okhttp" }
|
||||||
|
okhttp-loggingInterceptor = { module = "com.squareup.okhttp3:logging-interceptor" }
|
||||||
retrofit = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" }
|
retrofit = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" }
|
||||||
retrofit-kotlinxSerializationConverter = "com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:0.8.0"
|
retrofit-kotlinxSerializationConverter = "com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:0.8.0"
|
||||||
sentry-bom = { module = "io.sentry:sentry-bom", version.ref = "sentry-sdk" }
|
sentry-bom = { module = "io.sentry:sentry-bom", version.ref = "sentry-sdk" }
|
||||||
|
|
|
@ -10,6 +10,7 @@ plugins { id("dev.msfjarvis.claw.kotlin-jvm") }
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api(libs.crux)
|
api(libs.crux)
|
||||||
|
implementation(platform(libs.okhttp.bom))
|
||||||
implementation(projects.model)
|
implementation(projects.model)
|
||||||
implementation(libs.javax.inject)
|
implementation(libs.javax.inject)
|
||||||
implementation(libs.jsoup)
|
implementation(libs.jsoup)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue