-
Notifications
You must be signed in to change notification settings - Fork 33
[MOB-3769] allowed protocols #411
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
Test Fix for PR - Allowed Protocols
Codecov Report
@@ Coverage Diff @@
## master #411 +/- ##
==========================================
- Coverage 67.47% 67.11% -0.37%
==========================================
Files 63 63
Lines 3806 3822 +16
Branches 440 445 +5
==========================================
- Hits 2568 2565 -3
- Misses 977 995 +18
- Partials 261 262 +1
Continue to review full report at Codecov.
|
iterableapi/src/main/java/com/iterable/iterableapi/IterableApi.java
Outdated
Show resolved
Hide resolved
iterableapi/src/main/java/com/iterable/iterableapi/IterableApi.java
Outdated
Show resolved
Hide resolved
iterableapi/src/main/java/com/iterable/iterableapi/IterableDeeplinkManager.java
Outdated
Show resolved
Hide resolved
iterableapi/src/main/java/com/iterable/iterableapi/IterableDeeplinkManager.java
Outdated
Show resolved
Hide resolved
iterableapi/src/main/java/com/iterable/iterableapi/IterableActionRunner.java
Outdated
Show resolved
Hide resolved
davidtruong
left a comment
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.
Added comments
iterableapi/src/main/java/com/iterable/iterableapi/IterableActionRunner.java
Outdated
Show resolved
Hide resolved
1. InAppManager no more holds array of allowedProtocols. Its always accessed from IterableConfig. 2. `isUrlOpenAllowed` is now a common utility method in IterableUtil 3. Modified test methods to accomodate the changes
1. Only place to check if the url is allowed is through the Util method which checks the allowedProtocols list from config. 2. Removed method signatures that were introduced because of this 3. Test methods update 4. Logs if the url was blocked
| * | ||
| * @param context Context | ||
| * @param action The original action object | ||
| * @param allowedProtocols protocols that the SDK is allowed to open in addition to `https` |
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.
Have to remove this
97f21a4 to
4e58592
Compare
davidtruong
left a comment
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.
LFTM
…cols Mob 3850 patch for allowed protocols
4e58592 to
c3d5543
Compare
🔹 Jira Ticket(s) if any
✏️ Description
allowedProtocolsintoIterableConfigand makes sure that links that aren'thttpsor in that list are not opened by the SDK