iOS Integration Validator Bugfix (for client<>server URI scheme check) #1311
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reference
No ticket - this was confusing clients, so I wanted to fix this.
Summary
Currently, our iOS integration validator would check for the Branch URI scheme as the first URI scheme in the list (apart from a few like facebook, etc... that are hardcoded for it to skip when checking). The new code fixes this issue by looping through each of the URI schemes so that Branch doesn't have to be the first URI scheme in the list for the integration validator to pass.
Motivation
This was confusing clients.
To see an example of this issue, please view the Master ProServe iOS Branch
example-of-uri-scheme-bug
(Link: https://github.com/BranchMetrics/Master-Proserve-iOS/tree/example-of-uri-scheme-bug)I added
psmaster0
, an incorrect URI scheme, at index 0.This caused the integration validator check for the URI scheme to fail, even though the correct URI scheme of
psmaster
was in the list right below it.With the changes in this PR, the issue is fixed by checking if the correct URI scheme is present anywhere in the list
Type Of Change
Testing Instructions
To test this, do one of the following:
cc @BranchMetrics/saas-sdk-devs for visibility.