[PM-34124] refactor: Generalize CameraPreview analyzer parameter#6719
[PM-34124] refactor: Generalize CameraPreview analyzer parameter#6719SaintPatrck wants to merge 1 commit intomainfrom
Conversation
Widen CameraPreview parameter from QrCodeAnalyzer to ImageAnalysis.Analyzer to support reuse by card scanning. Adapt both QrCodeScanScreen call sites accordingly.
|
Claude finished @SaintPatrck's task in 1m 26s —— View job Code Review: PR #6719
SummaryThis PR cleanly generalizes the Files reviewed (3):
Verdict: The type widening is safe since |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6719 +/- ##
==========================================
+ Coverage 85.63% 85.72% +0.08%
==========================================
Files 926 944 +18
Lines 60201 60660 +459
Branches 8519 8566 +47
==========================================
+ Hits 51555 51998 +443
+ Misses 5683 5682 -1
- Partials 2963 2980 +17
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Great job! No new security vulnerabilities introduced in this pull request |

🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-34124
📔 Objective
Generalizes the
CameraPreviewcomposable to accept anyImageAnalysis.Analyzerinstead of the QR-code-specificQrCodeAnalyzer. This prepares the component for reuse by the upcoming card scanner feature while maintaining full backward compatibility with existing QR code scanning call sites.