Skip to content
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

Initial skeleton for Universal Link handling. #1638

Merged
merged 2 commits into from
Sep 6, 2023

Conversation

pixlwave
Copy link
Member

@pixlwave pixlwave commented Sep 5, 2023

This PR adds the initial implementation for receiving Universal Links into the App Coordinator. It doesn't implement parsing AppRoutes from the links or do anything with them yet though.

Additionally it removes all use of ServiceLocator.shared.settings in the App Coordinator.

@stefanceriu You're welcome to merge this tomorrow morning if you're happy with it and need to use it.

@pixlwave pixlwave requested a review from a team as a code owner September 5, 2023 16:52
@pixlwave pixlwave requested review from alfogrillo and stefanceriu and removed request for a team and alfogrillo September 5, 2023 16:52
@github-actions
Copy link

github-actions bot commented Sep 5, 2023

Warnings
⚠️ Some of the commits are missing ticket numbers. Please consider squashing all commits that don't have a tracking number.

Generated by 🚫 Danger Swift against bc3d4b8

@pixlwave pixlwave force-pushed the doug/universal-link-handling branch from 4a1bb07 to bc3d4b8 Compare September 5, 2023 16:56
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Sep 5, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.05% ⚠️

Comparison is base (c9962a4) 57.91% compared to head (bc3d4b8) 57.86%.
Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1638      +/-   ##
===========================================
- Coverage    57.91%   57.86%   -0.05%     
===========================================
  Files          411      411              
  Lines        28074    28076       +2     
  Branches     14000    14000              
===========================================
- Hits         16258    16246      -12     
- Misses       11372    11384      +12     
- Partials       444      446       +2     
Flag Coverage Δ
unittests 22.97% <0.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
ElementX/Sources/Application/AppCoordinator.swift 54.99% <0.00%> (-2.82%) ⬇️
ElementX/Sources/Application/Application.swift 96.15% <0.00%> (-3.85%) ⬇️
...ngs/SettingsScreen/SettingsScreenCoordinator.swift 40.17% <0.00%> (+2.86%) ⬆️

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -132,6 +135,15 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationCoordinatorDelegate,
)
}

func handleUniversalLink(_ url: URL) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should rename this to just handleURL as it should probably handle non-universal links too

Copy link
Member

@stefanceriu stefanceriu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

@stefanceriu stefanceriu merged commit f1758b5 into develop Sep 6, 2023
@stefanceriu stefanceriu deleted the doug/universal-link-handling branch September 6, 2023 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants