Skip to content

Normalize scheme for URL on Android#21561

Closed
radeno wants to merge 1 commit into
react:masterfrom
radeno:fix-android-resolve-protocol
Closed

Normalize scheme for URL on Android#21561
radeno wants to merge 1 commit into
react:masterfrom
radeno:fix-android-resolve-protocol

Conversation

@radeno

@radeno radeno commented Oct 8, 2018

Copy link
Copy Markdown
Contributor

Android requires lowercase for URL scheme. This commit d00bdb9 fixed it but on React Native side.
Because it is Android specific, it should be fixed on Android side.

Android has method to normalize url scheme: https://developer.android.com/reference/android/net/Uri.html#normalizeScheme()

Test Plan:

> import android.net.Uri;
> 
> Uri.parse("Http://google.com").normalizeScheme();

Result: http://google.com
> import android.net.Uri;
> 
> Uri.parse("HtTps://google.com").normalizeScheme();

Result: https://google.com

Release Notes:

[ANDROID] [BUGFIX] [Component] - Normalize Android URI scheme

@facebook-github-bot

Copy link
Copy Markdown
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up 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 the corporate CLA signed.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@pull-bot

pull-bot commented Oct 8, 2018

Copy link
Copy Markdown
Warnings
⚠️

📋 Test Plan - This PR appears to be missing a Test Plan.

Generated by 🚫 dangerJS

@radeno radeno changed the title Normalize scheme for URL on Android side Normalize scheme for URL on Android Oct 8, 2018
@dulmandakh

Copy link
Copy Markdown
Contributor

@facebook-github-bot shipit

@facebook-github-bot

Copy link
Copy Markdown
Contributor

I cannot do that @dulmandakh, because @radeno does not have an active CLA on file.

@dulmandakh

Copy link
Copy Markdown
Contributor

@radeno thank you for the PR. Could you please sign CLA so we can land your PR.

@radeno

radeno commented Oct 10, 2018

Copy link
Copy Markdown
Contributor Author

@dulmandakh done

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 10, 2018
@facebook-github-bot

Copy link
Copy Markdown
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@dulmandakh

Copy link
Copy Markdown
Contributor

@facebook-github-bot shipit

@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Oct 10, 2018

@facebook-github-bot facebook-github-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dulmandakh is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@react-native-bot

Copy link
Copy Markdown
Collaborator

@radeno merged commit 4b6f02e into facebook:master.

@react react locked as resolved and limited conversation to collaborators Oct 10, 2018
@react-native-bot react-native-bot added the Merged This PR has been merged. label Oct 10, 2018
kelset pushed a commit that referenced this pull request Oct 12, 2018
Summary:
Android requires lowercase for URL scheme. This commit d00bdb9 fixed it but on React Native side.
Because it is Android specific, it should be fixed on Android side.

Android has method to normalize url scheme: https://developer.android.com/reference/android/net/Uri.html#normalizeScheme()
Pull Request resolved: #21561

Differential Revision: D10287868

Pulled By: hramos

fbshipit-source-id: f5e474164fdb2cfd49bd8ee51da17de3f1341a9c
@hramos hramos removed Import Started This pull request has been imported. This does not imply the PR has been approved. labels Feb 6, 2019
t-nanava pushed a commit to microsoft/react-native-macos that referenced this pull request Jun 17, 2019
Summary:
Android requires lowercase for URL scheme. This commit react@d00bdb9 fixed it but on React Native side.
Because it is Android specific, it should be fixed on Android side.

Android has method to normalize url scheme: https://developer.android.com/reference/android/net/Uri.html#normalizeScheme()
Pull Request resolved: react#21561

Differential Revision: D10287868

Pulled By: hramos

fbshipit-source-id: f5e474164fdb2cfd49bd8ee51da17de3f1341a9c
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Platform: Android Android applications.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants