-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Support TLS connection for Android to RN DevServer #47952
base: main
Are you sure you want to change the base?
Conversation
Hi @unamed000! 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! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
@robhogan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
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.
This LGTM, thanks @unamed000!
...actAndroid/src/main/java/com/facebook/react/packagerconnection/PackagerConnectionSettings.kt
Outdated
Show resolved
Hide resolved
...actAndroid/src/main/java/com/facebook/react/packagerconnection/PackagerConnectionSettings.kt
Outdated
Show resolved
Hide resolved
...actAndroid/src/main/java/com/facebook/react/packagerconnection/PackagerConnectionSettings.kt
Outdated
Show resolved
Hide resolved
...actAndroid/src/main/java/com/facebook/react/packagerconnection/PackagerConnectionSettings.kt
Outdated
Show resolved
Hide resolved
@robhogan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
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.
Looks like there are compilation errors unfortunately - see the build_android CI results. Back to you for now, but this looks good if you can fix it up.
Thanks @robhogan!! It was my mistake when copying the code from the test project over this fork/PR. Also, above is the picture that i successfully integrate with my local environment via ngrok (https). |
@robhogan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
# Conflicts: # packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java
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.
LGTM
Summary:
Following this proposal: react-native-community/discussions-and-proposals#832
This PR will enable Android to be able to connect to a RN web server through TLS by setting "debug_http_tls"" as true
Currently, we're hardcoding the entire connection not having TLS. Which is different from iOS..
Changelog:
[ANDROID] [ADDED] - Add TLS connection in Android layer for Dev server.
Test Plan: