Jetpack Focus: Prepare DeepLinkIntent Receiver to launch open web links flow#17523
Merged
Jetpack Focus: Prepare DeepLinkIntent Receiver to launch open web links flow#17523
Conversation
…ning the original receiver
…ame instead of class
Generated by 🚫 dangerJS |
15 tasks
Contributor
|
|||||||||||
| 💡 Scan this QR code with your Android phone to download and install the APK directly on it. | ||
| App | WordPress | |
| Build Flavor | Jalapeno | |
| Build Type | Debug | |
| Commit | 44a5833 | |
Contributor
|
|||||||||||
| 💡 Scan this QR code with your Android phone to download and install the APK directly on it. | ||
| App | Jetpack | |
| Build Flavor | Jalapeno | |
| Build Type | Debug | |
| Commit | 44a5833 | |
3 tasks
… so it is more easily mocked. Removed unused mock in test
develric
approved these changes
Nov 24, 2022
Contributor
develric
left a comment
There was a problem hiding this comment.
Works as described 👍 , also code LGTM ![]()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.


Parent #17494
This PR replaces the multiple "new" deep link handlers with "Alias" activities. In addition, the DeepLinkIntentReceiverActivity and DeepLinkIntentReceiverViewModel were refactored to make it easy to drop in the OpenWebLinkWithJetpack overlay dialog.
There was also a fix to enabling/disabling the components based upon the switch in App settings, as they were reversed in the original commit. There are a few minor refactors (see commit messages). Unused classes were removed.
To test:
NOTE: Testing is tricky, so please read through carefully.
Pre: Download the
links_helper.zipfile from this PRTest: Ensure that deep links are handled as normal
Test: Ensure that web links no longer open in the app when "open web links with jetpack is enabled
open_web_lnks_with_jetpack_flowand restart the appOpen web links with JetpacksettingRegression Notes
Potential unintended areas of impact
Deep links don't work as they once did
What I did to test those areas of impact (or what existing automated tests I relied on)
Manual testing. Ran
DeepLinkingIntentReceiverViewModelTestandDeepLinkOpenWebLinksWithJetpackHelperTestWhat automated tests I added (or what prevented me from doing so)
Update tests in
DeepLinkingIntentReceiverViewModelTestandDeepLinkOpenWebLinksWithJetpackHelperTestPR submission checklist:
RELEASE-NOTES.txtif necessary.