-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android: upgrading to OkHttp from v3 to v4 #31084
Conversation
Hi @arazabishov! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code analysis results:
google-java-format
found some issues. See https://github.com/google/google-java-format
ReactAndroid/src/test/java/com/facebook/react/devsupport/JSDebuggerWebSocketClientTest.java
Show resolved
Hide resolved
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
Base commit: a15a46c |
Base commit: cbe7c44 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy that this PR would open door to more Kotlin code in RN. |
@dulmandakh any idea if this will end up in the next RN release? Upgrading to v4.x wasn't possible until now because okhttp only works on API level 21+ (Android 5.0+), but since 0.64.0 I believe this is no longer a problem. We are seeing a bunch of stability warning reports on Google Play console. Most of them okhttp3 related. Not sure if this affects ASO in any way, tho. |
@fkgozali has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Extends #30694 to fix tests.
Summary
OkHttp v4 was released almost a year ago. Even though v3 is still receiving security and bug fixes, most of the new improvements and features are landing in v4. This PR bumps OkHttp from v3 to v4 and addresses backward-incompatible changes.
Side effects of this upgrade:
Changelog
[Android] [Changed] - Bumping OkHttp from v3 to v4.
Test Plan
Automated (relying on the test suite) and manual testing.