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

Fix a bug where QR codes aren't detected if the camera is too close. #7762

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

pixlwave
Copy link
Member

@pixlwave pixlwave commented Mar 4, 2024

There were reports about not being able to scan QR codes to verify a device, but it turns out that it does work, just not if you fill the entire frame with the code. Moving back a bit so the code is smaller does work.

My conclusion was that the applyRectOfInterest method isn't really necessary as we don't do that when logging in with a QR code. The removal of that method has no effect on the UI, it simply constrained the area of the capture that ZXing was looking in.

@@ -59,7 +59,7 @@ end
def import_SwiftUI_pods
pod 'Introspect', '~> 0.1'
pod 'DSBottomSheet', '~> 0.3'
pod 'ZXingObjC', '~> 3.6.5'
pod 'ZXingObjC', '~> 3.6.9'
Copy link
Member Author

Choose a reason for hiding this comment

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

I tried this first, and seems worth leaving it pinned to the latest version.

@pixlwave pixlwave requested review from a team and Velin92 and removed request for a team March 4, 2024 11:24
Copy link

codecov bot commented Mar 4, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 12.39%. Comparing base (b39923f) to head (7506fee).

Files Patch % Lines
Riot/Modules/QRCode/Reader/QRCodeReaderView.swift 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #7762   +/-   ##
========================================
  Coverage    12.38%   12.39%           
========================================
  Files         1650     1650           
  Lines       163910   163864   -46     
  Branches     66401    66392    -9     
========================================
+ Hits         20308    20314    +6     
+ Misses      142934   142882   -52     
  Partials       668      668           
Flag Coverage Δ
uitests 55.05% <ø> (+<0.01%) ⬆️
unittests 6.22% <0.00%> (+<0.01%) ⬆️

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

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

@pixlwave pixlwave merged commit adada0e into develop Mar 4, 2024
10 of 11 checks passed
@pixlwave pixlwave deleted the doug/qr-code-accuracy branch March 4, 2024 17:17
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