-
-
Notifications
You must be signed in to change notification settings - Fork 638
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
Implement deep link functionality and enable it for android. #4775
base: main
Are you sure you want to change the base?
Commits on Jun 3, 2021
-
deeplink [nfc]: Move type
LinkingEvent
tosrc/types.js
.LinkingEvent is going to be used in multiple files in the following commits and hence it is better to export it from a common file.
Configuration menu - View commit details
-
Copy full SHA for 24e7629 - Browse repository at this point
Copy the full SHA 24e7629View commit details -
auth [nfc]: Move global
otp
fromAuthScreen
towebAuth
.This will help us in moving `webAuthBegin`, `webAuthEnd` from `AuthScreen` to `webAuth.js` which is a better place to put them from a reusability point of view. This commit also involves modifying the associated code in `AuthScreen`, `webAuth.js` and `webAuth-test.js`. Specifically, these changes are being made to implement deep link functionality in the following commits.
Configuration menu - View commit details
-
Copy full SHA for 80fb6cd - Browse repository at this point
Copy the full SHA 80fb6cdView commit details -
auth [nfc]: Move
beginWebAuth
andendWebAuth
towebAuth.js
This change is done to centralise the handling of urls received by our app which will be required to implement deep linking. With this modification webAuth can be initiated from any component with appropriate parameters. Note that this commit also stops exporting some functions from `webAuth.js` as this is no longer needed, and updates the jsdocs of `beginWebAuth` and `endWebAuth`.
Configuration menu - View commit details
-
Copy full SHA for 7cd1211 - Browse repository at this point
Copy the full SHA 7cd1211View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1051742 - Browse repository at this point
Copy the full SHA 1051742View commit details -
deeplink: Use
urlListener
to handleendWebAuth
.This commit shifts the logic that handles auth urls; from `AuthScreen` to `AppEventHandlers`.
Configuration menu - View commit details
-
Copy full SHA for ce6fc47 - Browse repository at this point
Copy the full SHA ce6fc47View commit details -
utils: Update
internalLink.js
to support deeplink urls.`internalLink.js` provides us many function that can also be utilised to process deep links. Doing this however required few simple modifications. This commit adds `isDeepLink` function, modifies getLinkType in order to be compatible with deep links and renames `internalLink.js` to `linkProcessors.js`.
Configuration menu - View commit details
-
Copy full SHA for f4658f0 - Browse repository at this point
Copy the full SHA f4658f0View commit details -
deeplink: implement
navigateViaDeepLink
action.This action will be responsible to generate a narrow from a valid navigation deep link url, and then navigate to it. Limitation of current Implementation: - if the link points to a different account, we only switch the account and don't actually navigate to it. (similar to zulip#4630)
Configuration menu - View commit details
-
Copy full SHA for 24a93b2 - Browse repository at this point
Copy the full SHA 24a93b2View commit details -
deeplink: Handle deep links that navigate to particular screens.
This involves creating a `handleUrl` function that checks if deep link url is a login url or a navigation url and forwards the execution accordingly.
Configuration menu - View commit details
-
Copy full SHA for def383f - Browse repository at this point
Copy the full SHA def383fView commit details -
deeplink: Enable deeplink navigation in android.
Caveats: - current navigation does not work across accounts. Fixes-part-of: zulip#4751
Configuration menu - View commit details
-
Copy full SHA for e1df57d - Browse repository at this point
Copy the full SHA e1df57dView commit details -
deeplink [nfc]: Add documentation to manually test deep link.
- In this commit, instructions are only provided for android.
Configuration menu - View commit details
-
Copy full SHA for dc71cfb - Browse repository at this point
Copy the full SHA dc71cfbView commit details