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

Add support for Face ID/Touch ID to app lock. #1966

Merged
merged 7 commits into from
Oct 27, 2023
Merged

Conversation

pixlwave
Copy link
Member

@pixlwave pixlwave commented Oct 26, 2023

Adds biometric unlock support to the AppLock feature. Should be testable now, although there are still some edge cases I need to handle in follow-up PRs.

Enabling with PIN code already setup (for illustration, the grace period is turned off):

RPReplay_Final1698326404.MP4

@pixlwave pixlwave added the Trigger-PR-Build Uses to trigger alpha builds for PRs label Oct 26, 2023
@github-actions
Copy link

github-actions bot commented Oct 26, 2023

Warnings
⚠️ Some of the commits are missing ticket numbers. Please consider squashing all commits that don't have a tracking number.
⚠️ You seem to have made changes to views. Please consider adding screenshots.

Generated by 🚫 Danger Swift against de5b7e7

@github-actions
Copy link

github-actions bot commented Oct 26, 2023

📱 Scan the QR code below to install the build for this PR.
🔒 This build is for internal testing purpose. Only devices listed in the ad-hoc provisioning profile can install Element Alpha.

QR code

If you can't scan the QR code you can install the build via this link: https://i.diawi.com/icugnu

@pixlwave pixlwave force-pushed the doug/biometric-unlock branch 2 times, most recently from 3787508 to 5281685 Compare October 26, 2023 13:22
@pixlwave pixlwave marked this pull request as ready for review October 26, 2023 13:22
@pixlwave pixlwave requested a review from a team as a code owner October 26, 2023 13:22
@pixlwave pixlwave requested review from alfogrillo and removed request for a team October 26, 2023 13:22
@codecov
Copy link

codecov bot commented Oct 26, 2023

Codecov Report

Attention: 95 lines in your changes are missing coverage. Please review.

Comparison is base (2eb8945) 69.05% compared to head (3cbd279) 68.87%.

❗ Current head 3cbd279 differs from pull request most recent head de5b7e7. Consider uploading reports for the commit de5b7e7 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1966      +/-   ##
===========================================
- Coverage    69.05%   68.87%   -0.18%     
===========================================
  Files          516      516              
  Lines        35347    35465     +118     
  Branches     17184    17225      +41     
===========================================
+ Hits         24408    24428      +20     
- Misses       10300    10391      +91     
- Partials       639      646       +7     
Flag Coverage Δ
unittests 54.16% <50.00%> (-0.18%) ⬇️

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

Files Coverage Δ
ElementX/Sources/Application/AppSettings.swift 96.82% <ø> (ø)
...AppLock/AppLockScreen/AppLockScreenViewModel.swift 94.33% <100.00%> (+0.33%) ⬆️
...tingsScreen/AppLockSetupSettingsScreenModels.swift 100.00% <100.00%> (ø)
...ttingsScreen/View/AppLockSetupSettingsScreen.swift 90.69% <100.00%> (ø)
...rces/Services/AppLock/AppLockServiceProtocol.swift 90.00% <ø> (-0.91%) ⬇️
...ementX/Sources/Services/AppLock/AppLockTimer.swift 100.00% <100.00%> (ø)
ElementX/Sources/Application/AppCoordinator.swift 54.75% <0.00%> (-0.08%) ⬇️
...FlowCoordinators/AppLockSetupFlowCoordinator.swift 34.26% <0.00%> (-0.39%) ⬇️
...ources/Screens/AppLock/Common/LABiometryType.swift 81.25% <0.00%> (ø)
...Screen/AppLockSetupBiometricsScreenViewModel.swift 84.61% <73.91%> (-1.75%) ⬇️
... and 4 more

... and 8 files with indirect coverage changes

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

Copy link
Contributor

@alfogrillo alfogrillo left a comment

Choose a reason for hiding this comment

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

LGTM.
Great work! 👍🏻

@sonarcloud
Copy link

sonarcloud bot commented Oct 27, 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

@pixlwave pixlwave merged commit 11563c6 into develop Oct 27, 2023
6 checks passed
@pixlwave pixlwave deleted the doug/biometric-unlock branch October 27, 2023 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Trigger-PR-Build Uses to trigger alpha builds for PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants