fix(deps): update dependency com.squareup.okhttp3:okhttp to v5#38
fix(deps): update dependency com.squareup.okhttp3:okhttp to v5#38renovate[bot] wants to merge 1 commit intomainfrom
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe OkHttp library version was updated from 4.12.0 to 5.0.0 in the project's version catalog file, affecting dependency management for builds that rely on this library. Changes
Poem
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
gradle/libs.versions.toml (1)
12-12: OkHttp 5 artifact split – verify that:okhttpis still the right coordinateStarting with 5.0, OkHttp ships separate artifacts (
okhttp-jvm/okhttp-android).
Gradle module metadata should rewrite:okhttp→:okhttp-androidautomatically, but this only works when:• Gradle ≥ 7.6 and metadata resolution isn’t disabled
• No custom dependency substitution rules intercept the module idIf either prerequisite is missing you’ll silently pick the JVM artifact, losing Android-specific TLS/Conscrypt optimisations and increasing APK size with duplicate resources.
Action items
- Run a
./gradlew :app:dependencies --configuration releaseRuntimeClasspathto confirm thatcom.squareup.okhttp3:okhttp-android:5.0.0is ultimately brought in.- If the JVM variant is resolved, swap the coordinate manually:
-okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" } +okhttp = { module = "com.squareup.okhttp3:okhttp-android", version.ref = "okhttp" }
- Re-compile & run unit / instrumentation tests – OkHttp 5 contains breaking API changes (e.g.
HandshakeCertificates,Cacheconstructor, immutableRequest/Response). Fix call-sites where needed.Also applies to: 32-32
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
gradle/libs.versions.toml(1 hunks)
🧰 Additional context used
🧠 Learnings (1)
gradle/libs.versions.toml (10)
Learnt from: CR
PR: testpress/TPStreamsAndroidPlayer#0
File: .cursor/rules/general-best-practices.mdc:0-0
Timestamp: 2025-07-03T12:33:42.617Z
Learning: Applies to app/src/main/java/com/package/**/*.kt : Follow Material Design 3 guidelines and components.
Learnt from: CR
PR: testpress/TPStreamsAndroidPlayer#0
File: .cursor/rules/ui-guidelines.mdc:0-0
Timestamp: 2025-07-03T12:34:10.879Z
Learning: Applies to app/src/main/java/com/package/presentation/**/*.kt : Use proper theming with MaterialTheme
Learnt from: CR
PR: testpress/TPStreamsAndroidPlayer#0
File: .cursor/rules/general-best-practices.mdc:0-0
Timestamp: 2025-07-03T12:33:42.617Z
Learning: Applies to app/src/main/java/com/package/**/*.kt : Use Compose navigation for screen management.
Learnt from: CR
PR: testpress/TPStreamsAndroidPlayer#0
File: .cursor/rules/ui-guidelines.mdc:0-0
Timestamp: 2025-07-03T12:34:10.879Z
Learning: Applies to app/src/main/java/com/package/presentation/**/*.kt : Use proper Compose modifiers ordering
Learnt from: CR
PR: testpress/TPStreamsAndroidPlayer#0
File: .cursor/rules/general-best-practices.mdc:0-0
Timestamp: 2025-07-03T12:33:42.617Z
Learning: Applies to app/src/main/java/com/package/**/*.kt : Implement dependency injection using Hilt.
Learnt from: CR
PR: testpress/TPStreamsAndroidPlayer#0
File: .cursor/rules/performance-guidelines.mdc:0-0
Timestamp: 2025-07-03T12:33:50.349Z
Learning: Applies to app/src/main/java/com/package/**/*.kt : Minimize recomposition using proper keys in Jetpack Compose
Learnt from: CR
PR: testpress/TPStreamsAndroidPlayer#0
File: .cursor/rules/general-best-practices.mdc:0-0
Timestamp: 2025-07-03T12:33:42.617Z
Learning: Applies to app/src/main/java/com/package/**/*.kt : Use Kotlin coroutines and Flow for asynchronous operations.
Learnt from: CR
PR: testpress/TPStreamsAndroidPlayer#0
File: .cursor/rules/performance-guidelines.mdc:0-0
Timestamp: 2025-07-03T12:33:50.349Z
Learning: Applies to app/src/main/java/com/package/**/*.kt : Use proper lazy loading with LazyColumn and LazyRow in Jetpack Compose
Learnt from: CR
PR: testpress/TPStreamsAndroidPlayer#0
File: .cursor/rules/performance-guidelines.mdc:0-0
Timestamp: 2025-07-03T12:33:50.349Z
Learning: Applies to app/src/main/java/com/package/**/*.kt : Use proper background processing in Jetpack Compose
Learnt from: CR
PR: testpress/TPStreamsAndroidPlayer#0
File: .cursor/rules/ui-guidelines.mdc:0-0
Timestamp: 2025-07-03T12:34:10.879Z
Learning: Applies to app/src/main/java/com/package/presentation/**/*.kt : Implement proper animation patterns
57bf63f to
5abffb4
Compare
5abffb4 to
6214c99
Compare
f1bf95e to
fdda9b0
Compare
fdda9b0 to
a154104
Compare
f569df0 to
e2c38f0
Compare
fd165c3 to
140690c
Compare
140690c to
42909b7
Compare
42909b7 to
7462579
Compare
7462579 to
fa5a2a0
Compare
fa5a2a0 to
29fe191
Compare
This PR contains the following updates:
4.12.0→5.3.2Release Notes
square/okhttp (com.squareup.okhttp3:okhttp)
v5.3.22025-11-18
Fix: Don't delay triggering timeouts. In Okio 3.16.0 we introduced a regression that caused
timeouts to fire later than they were supposed to.
Upgrade: [Okio 3.16.4][okio_3_16_4].
v5.3.12025-11-16
This release is the same as 5.3.0. Okio 3.16.3 didn't have a necessary fix!
v5.3.02025-10-30
New: Add tags to
Call, including computable tags. Use this to attach application-specificmetadata to a
Callin anEventListenerorInterceptor. The tag can be read in any otherEventListenerorInterceptor.New: Support request bodies on HTTP/1.1 connection upgrades.
New:
EventListener.plus()makes it easier to observe events in multiple listeners.Fix: Don't spam logs with ‘Method isLoggable in android.util.Log not mocked.’ when using
OkHttp in Robolectric and Paparazzi tests.
Upgrade: [Kotlin 2.2.21][kotlin_2_2_21].
Upgrade: [Okio 3.16.2][okio_3_16_2].
Upgrade: [ZSTD-KMP 0.4.0][zstd_kmp_0_4_0]. This update fixes a bug that caused APKs to fail
[16 KB ELF alignment checks][elf_alignment].
v5.2.32025-11-18
Fix: Don't delay triggering timeouts. In Okio 3.16.0 we introduced a regression that caused
timeouts to fire later than they were supposed to.
Upgrade: [Okio 3.16.4][okio_3_16_4].
v5.2.22025-11-16
This release is the same as 5.2.1. Okio 3.16.3 didn't have a necessary fix!
v5.2.12025-10-09
Fix: Don't crash when calling
Socket.shutdownOutput()orshutdownInput()on anSSLSocketon Android API 21 through 23. This method throws an
UnsupportedOperationException, so we nowcatch that and close the underlying stream instead.
Upgrade: [Okio 3.16.1][okio_3_16_1].
v5.2.02025-10-07
New: Support [HTTP 101] responses with
Response.socket. This mechanism is only supported onHTTP/1.1. We also reimplemented our websocket client to use this new mechanism.
New: The
okhttp-zstdmodule negotiates [Zstandard (zstd)][zstd] compression with servers thatsupport it. It integrates a new (unstable) [ZSTD-KMP] library, also from Square. Enable it like
this:
New: Support the
QUERYHTTP method. You will need to set theRequest.cacheUrlOverrideproperty to cache calls made with this method. The
RequestBody.sha256()may be helpful here;use it to compose a cache URL from the query body.
New: Publish events when calls must wait to execute.
EventListener.dispatcherQueueStart()is invoked when a call starts waiting, and
dispatcherQueueEnd()is invoked when it's done.New:
Request.toCurl()returns a copy-pasteable [curl] command consistent with Chrome’s andFirefox’s ‘copy as cURL’ features.
New: Support [JPMS]. We replaced our
Automatic-Module-Namemetadata with propermodule-info.javafiles.Fix: Recover gracefully when worker threads are interrupted. When we introduced fast fallback in
OkHttp 5.0, we started using background threads while connecting. Sadly that code didn't handle
interruptions well. This is now fixed.
Upgrade: [Kotlin 2.2.20][kotlin_2_2_20].
Upgrade: [Okio 3.16.0][okio_3_16_0].
v5.1.02025-07-07
New:
Response.peekTrailers(). When we changedResponse.trailers()to block instead ofthrowing in 5.0.0, we inadvertently removed the ability for callers to peek the trailers
(by catching the
IllegalStateExceptionif they weren't available). This new API restores thatcapability.
Fix: Don't crash on
trailers()if the response doesn't have a body. We broke [Retrofit] userswho read the trailers on the
raw()OkHttp response, after its body was decoded.v5.0.02025-07-02
This is our first stable release of OkHttp since 2023. Here's the highlights if you're upgrading
from OkHttp 4.x:
OkHttp is now packaged as separate JVM and Android artifacts. This allows us to offer
platform-specific features and optimizations. If your build system handles [Gradle module metadata],
this change should be automatic.
MockWebServer has a new coordinate and package name. We didn’t like that our old artifact
depends on JUnit 4 so the new one doesn’t. It also has a better API built on immutable values. (We
intend to continue publishing the old
okhttp3.mockwebserverartifact so there’s no urgency tomigrate.)
OkHttp now supports Happy Eyeballs ([RFC 8305][rfc_8305]) for IPv4+IPv6 networks. It attempts
both IPv6 and IPv4 connections concurrently, keeping whichever connects first.
We’ve improved our Kotlin APIs. You can skip the builder:
OkHttp now supports [GraalVM].
Here’s what has changed since 5.0.0-alpha.17:
NoSuchMethodErrorwhen using OkHttp with the Sentry SDK.okhttp3.mockwebserver.RecordedRequest.pathproperty. Weinadvertently changed this behavior when we introduced the
mockwebserver3API.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.