Repository navigation
Add OkHttp 3 compatibility CI for ReactAndroid - #60342
Merged
Merged
Conversation
cortinico
marked this pull request as ready for review
November 27, 2026 17:14
Contributor
Author
|
cc @vonovak as this will prevent your PR from failing internally again 👍 |
javache
approved these changes
Nov 27, 2026
cortinico
enabled auto-merge (squash)
November 27, 2026 17:28
cortinico
disabled auto-merge
November 27, 2026 17:28
Contributor
here's the new PR to re-land it @cortinico #60403 Thanks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Add a dedicated Android CI job that compiles ReactAndroid and runs its JVM tests against OkHttp 3.14.9. A job-scoped Gradle init script pins the OkHttp artifacts and verifies the resolved compile, runtime, and test classpaths. Normal Android builds continue using the version in the catalog. This guards against OkHttp 4-only APIs reaching shared Android sources, as happened before #60318.
Changelog:
[INTERNAL] - Add OkHttp 3 source-compatibility validation to Android CI.
Test Plan:
git diff --cached --check— passed before commit..github/workflows/test-all.ymlwith Ruby YAML and verified the job exists — passed../gradlew --init-script .github/workflow-scripts/okhttp3-compat.gradle :packages:react-native:ReactAndroid:verifyOkHttp3Compatibility --dry-run --no-daemon— blocked locally because the hermes-compiler placeholder needs the CI yarn-install hook../gradlew -Preact.internal.useHermesNightly=false --init-script .github/workflow-scripts/okhttp3-compat.gradle :packages:react-native:ReactAndroid:verifyOkHttp3Compatibility --dry-run --no-daemon— reached test dependency resolution but could not fetch a missing Gradle artifact from Maven Central (Operation not permitted in this environment).