Repository navigation
Document OkHttp 3 source compatibility in AGENTS.md - #60320
Merged
cortinico merged 1 commit intoNov 26, 2026
Merged
Conversation
cortinico
approved these changes
Nov 26, 2026
cortinico
deleted the
cipolleschi/document-okhttp3-source-compatibility
branch
November 26, 2026 15:25
This was referenced Nov 26, 2026
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
#58971 introduced
okhttp3.HttpUrl.Companion.toHttpUrlOrNull, which is unavailable in OkHttp 3.14.9. Downstream consumers building React Native from source with that version failed to compile, leading to the revert in #60318. Tests using a newer OkHttp version did not cover the compatibility requirement.Add an explicit rule to the OSS root
AGENTS.md: shared Android Java and Kotlin code, including devsupport, must remain source-compatible with OkHttp 3.14.9. The guidance names the incompatible companion extension, givesRequest.Builder().url(...)as a compatible alternative, and explains that theokhttp3package name persists in newer major versions. Contributors changing OkHttp usage must compile affected sources against OkHttp 3, run relevant tests with the repository's configured version, and record the selected versions and validation results in the PR.Changelog
[INTERNAL] [CHANGED] - Document the OkHttp 3 source compatibility requirement for Android contributions
Test Plan
node_modules/.bin/prettier --check AGENTS.mdpassed with the repository configuration.node_modules/.bin/markdownlint-cli2 AGENTS.md '#**/__docs__/*.md'passed with zero issues.git diff --checkpassed.AGENTS.mdchanges. Runtime tests were not run for this documentation change.