-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[FDL] Refactoring and fixing url validation #8672
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
Conversation
Coverage ReportAffected SDKs
Test Logs
|
Binary Size ReportAffected SDKsTest Logs
|
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.
Also, since we don't yet have Xcode 13 in CI pending #8665, please confirm that the PR builds and tests with Xcode 13.
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.
thanks!
Corrected TYPO added more test inputs.
|
Checked on xCode 13 and it is working. |
[FDL] Refactoring and fixing url validation
Refactored the existing code to use Regex to validate FDL URL formats.
Added checks to make sure the 'link' query param is having an http/https prefix input.
== This is going to be breaking the existing SDK's unintended behavior to support links with non http/https content. The existing SDK was constructing the Dynamic link eventhough the backend response to resolve the link is not successfull.
Added support for URL(s) with Query string starting with '?' alone. Previously it was supporting '/?' formats only. This fixes 177469304: Firebase dynamic links with custom domain will only work if the custom domai has a trailing '/' #7087
Added more test cases to be in sync with FDL backend validation.
Removed invalid test inputs and corrected few test cases to make the input in proper format.