-
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
Replace deprecated stringByReplacingPercentEscapesUsingEncoding:
with stringByAddingPercentEncodingWithAllowedCharacters:
#19792
Conversation
Generated by 🚫 dangerJS |
Looks good! Thanks for the fixes :) @facebook-github-bot shipit |
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.
@janicduplessis is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
I tried to merge this pull request into the Facebook internal repo but some checks failed. To unblock yourself please check the following: Does this pull request pass all open source tests on GitHub? If not please fix those. Does the code still apply cleanly on top of GitHub master? If not can please rebase. In all other cases this means some internal test failed, for example a part of a fb app won't work with this pull request. I've added the Import Failed label to this pull request so it is easy for someone at fb to find the pull request and check what failed. If you don't see anyone comment in a few days feel free to comment mentioning one of the core contributors to the project so they get a notification. |
hmm.. tests here pass. would be nice to see what the problematic internal test is. if it's not sensitive, maybe we could open source it? any ideas what could it be @janicduplessis ? |
Sorry about the delay, it failed to import into the internal fb repo, I'll try landing again and if it doesn't work I'll ping someone at fb. |
@facebook-github-bot shipit |
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.
@janicduplessis is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Let's try this again! |
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.
@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Just getting back to this. Thanks for submitting this PR. Unfortunately it seems that unit tests are failing:
This is the file specifically: https://github.com/facebook/react-native/blob/master/RNTester/RNTesterUnitTests/RCTConvert_NSURLTests.m Would you mind doing another pass and fixing those issues, then we can finally land it? Again, sorry for the long wait on this :( |
I'll try it now and get back to you. |
…th `stringByAddingPercentEncodingWithAllowedCharacters:`
761f762
to
5cab758
Compare
This was a good catch actually. I changed the allowed characters to be the ones they should be for each case, ran all the tests and now all is well here. I was thinking of putting the character set into a category of |
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.
@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
…th `stringByAddingPercentEncodingWithAllowedCharacters:` (facebook#19792) Summary: Replace some NSString deprecated methods. motivation for these prs is less warnings reported on xcode everytime we compile a rn app. N/A [INTERNAL] [DEPRECATIONS] [NSString] - Replace NSString deprecation methods. Pull Request resolved: facebook#19792 Differential Revision: D8515136 Pulled By: cpojer fbshipit-source-id: 4379ef4e229ef201685b87e54ac859ba3d30a833
Replace some NSString deprecated methods.
motivation for these prs is less warnings reported on xcode everytime we compile a rn app.
Test Plan
N/A
Release Notes
[INTERNAL] [DEPRECATIONS] [NSString] - Replace NSString deprecation methods.