MIN-6670: iOS reports every QR code in view with its corners #50
All Vouch review confidence checks passed
Residual risk 0.32 = Change Risk (0.39) × (1 − Review Confidence (0.18)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 255 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 20% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.332
Real PR Conversation Timeline
1 comments
"Review active on #50"
general
weight: 0.35
claude[bot]
Native half of MIN-6670: the app now outlines QR codes in the camera and acts only on the one held still, like retail barcodes (app PR linked below once open).
What was wrong
On iOS the hardware
AVCaptureMetadataOutputreader sent a QR code to Dart only as its barestringValue(the MIN-3077 contract), so the app had no geometry to outline a QR with and, with several in view, could only act on whichever string came first.What changed
SingleCameraPreview.m: each metadata callback's QR codes also go out, with corners normalised to the preview layer (samebarcodePayloadspath as retail barcodes, formatqr), under a newqrCodeskey of the map event. BothbarcodesandqrCodesare present only while their kind is in view, plus one empty list on the callback that loses them (new_qrCodesVisibleflag, mirroring_barcodesVisible).listenQrCodes()(the app's QR field scanner) sees exactly what it did before.camerawesome_plugin.dart: newlistenQrCodeOutlines()(Stream<List<NativeBarcode>>of theqrCodeskey).listenBarcodes()now only emits for events that carrybarcodes, so a QR-only event is not turned into an empty barcode list. Both go through the newNativeBarcode.listFromEvent(event, key).Tests
test/native_barcode_test.dart(new): string events carry no geometry, an event splits intobarcodes/qrCodesby key, QR-only events aren't barcode events, empty lists pass through and malformed entries are skipped.flutter test test/native_barcode_test.dart: 4/4 pass.flutter analyze lib/camerawesome_plugin.dart test/native_barcode_test.dart: only the 2 pre-existingunawaited_return_in_try_blockwarnings (lines 636/655, untouched).🤖 Generated with Claude Code
https://claude.ai/code/session_01ULTHELCnQYErX2Coboy92N