v7.2.0
·
183 commits
to develop
since this release
Highlights
- Added support for switching between lens types (normal, wide, zoom) using the
switchCamera()method withToggleLensTypeorSelectCameraoptions. - Added
rawDecodedBytesfield toBarcodewhich replacesBarcode.rawBytes. On Apple platforms, this returns aDecodedVisionBarcodeBytescontainingbytes(decoded payload, without header/padding) andrawBytes(full raw payload, available on iOS 17.0+ / macOS 14.0+). On Android and web, this returns aDecodedBarcodeBytescontainingbytes.
Improvements
- [Android] Migrated barcode bounding box from
boundingBoxtocornerPointsfor more accurate scan window detection. - Added support for
ITF-Two-of-Five. - Added constants for testing the method channel methods in
MobileScannerMethodsandMobileScannerEvents. - The global method
calculateBoxFitRatio()is now deprecated.
Bug Fixes
- [Android] Fixed incorrect texture size on orientation change.
- [Android] Fixed a bug where the
isPausedflag was not reset whenstart()was called. - [Android] Fixed
imageAnalysisnot being unbound on dispose. - [Android] Fixed an issue where the app orientation handling was not respecting auto-rotate settings
- [Apple] Fixed
rawBytesreturning incorrect data for barcodes containing non-ASCII characters (e.g.ø). For QR codes, bytes are now extracted directly from the error-corrected bit stream viaCIQRCodeDescriptor, bypassing the Vision string API entirely. For Aztec, DataMatrix, PDF417 and linear formats, the ISO-Latin-1 round-trip is used to recover the original bytes frompayloadStringValue. - [Apple] Fixed
displayValuereturning a garbled Latin-1 string (e.g.hellø) for barcodes with non-ASCII UTF-8 content. It is now correctly decoded to UTF-8 (e.g.hellø). - [Apple] Fixed a bug where the barcode type results did not have a value.
- [Apple] Fixed camera rotating, even when rotation is locked.
- [macOS] Fixed barcode overlay text displaying upside down.
- Fixed barcode overlay rendering at wrong position after orientation change.
- Fixed a bug where taps were ignored on the scanner widget.
- Fixed a bug where a controller that was only disposed would throw an incorrect error code.