fix(deps): update dependency mobile_scanner to v6
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
mobile_scanner | dependencies | major |
^4.0.0 -> ^6.0.0
|
⚠ ️ WarningSome dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
juliansteenbakker/mobile_scanner (mobile_scanner)
v6.0.2
Bugs fixed:
- Fixed a bug that prevented
analyzeImage
from actually accepting the configured formats.
Improvements:
- [iOS] Excluded the
arm64
architecture for Simulators, which is unsupported by MLKit 7.0.0.
v6.0.1
Bugs fixed:
- Fixed a bug that would cause onDetect to not handle errors.
Improvements:
- [iOS] Excluded the
armv7
architecture, which is unsupported by MLKit 7.0.0. - Added a new
onDetectError
error handler to theMobileScanner
widget, for use withonDetect
.
v6.0.0
BREAKING CHANGES:
- [iOS] iOS 15.5.0 is now the minimum supported iOS version.
- [iOS] Updates MLKit to version 7.0.0.
- [iOS] Updates the minimum supported XCode version to 15.3.0.
Improvements:
- [MacOS] Added the corners and size information to barcode results.
- [MacOS] Added support for
analyzeImage
. - [MacOS] Added a Privacy Manifest.
- [web] Added the size information to barcode results.
- [web] Added the video output size information to barcode capture.
- Added support for barcode formats to image analysis.
- Updated the scanner to report any scanning errors that were encountered during processing.
- Introduced a new getter
hasCameraPermission
for theMobileScannerState
. - Fixed a bug in the lifecycle handling sample. Now instead of checking
isInitialized
, the sample recommends usinghasCameraPermission
, which also guards against camera permission errors. - Updated the behavior of
returnImage
to only determine if the camera output bytes should be sent. - Updated the behavior of
BarcodeCapture.size
to always be provided when available, regardless ofreturnImage
.
Bugs fixed:
- Fixed a bug that would cause the scanner to emit an error when it was already started. Now it ignores any calls to start while it is starting.
- [MacOS] Fixed a bug that prevented the
anaylzeImage()
sample from working properly.
v5.2.3
Deprecations:
- The
EncryptionType.none
constant has been deprecated, as its name was misleading. UseEncryptionType.unknown
instead.
Bugs fixed:
- Fixed
EncryptionType
throwing on invalidSAE
encryption type. - [web] Removed the
controls
attribute on the video preview.
Improvements:
- All enum types for barcode data (i.e. Wifi type or email type) now return
unknown
for unrecognized values.
v5.2.2
Improvements:
- [MacOS] Adds Swift Package Manager support.
- [MacOS] Adds support for
returnImage
. - Added a new
size
property toBarcode
, that denotes the bounding box of the barcode.
Bugs fixed:
- Fixed some documentation errors for the
size
andimage
ofBarcodeCapture
. - [iOS] Fixed a bug with
returnImage
. - [Android/iOS] Adjusted the raw barcode scan value to pass the raw event data, like on MacOS.
v5.2.1
- Updates the
package:web
dependency to use a version range.
v5.2.0
This release requires Flutter 3.22.0 and Dart 3.4.
- [Android] Fixed a leak of the barcode scanner.
- [Android] Fixed a crash when encountering invalid numbers for the scan window.
- [Web] Migrates
package:web
to 1.0.0.
v5.1.1
- This release fixes an issue with automatic starts in the examples.
v5.1.0
This updates reverts a few breaking changes made in v5.0.0 in order to keep things simple.
- The
onDetect
method has been reinstated in theMobileScanner
widget, but is nullable. You can still listen toMobileScannerController.barcodes
directly by passing null to this parameter. - The
autoStart
attribute has been reinstated in theMobileScannerController
and defaults to true. However, if you want to control which camera is used on start, or you want to manage the lifecycle yourself, you should set autoStart to false and manually callMobileScannerController.start({CameraFacing? cameraDirection})
. - The
controller
is no longer required in theMobileScanner
widget. However if provided, the user should take care of disposing it. - [Android] Revert Gradle 8 back to Gradle 7, to be inline with most Flutter plugins and prevent build issues.
- [Android] Revert Kotlin back from 1.9 to 1.7 to be inline with most Flutter plugins. Special 1.9 functionality has been refactored to be compatible with 1.7.
v5.0.2
Bugs fixed:
- Fixed a crash when the controller is disposed while it is still starting. #1036 (thanks @EArminjon !)
- Fixed an issue that causes the initial torch state to be out of sync.
Improvements:
- Updated the lifeycle code sample to handle not-initialized controllers.
v5.0.1
Improvements:
- Adjusted the platform checks to use the defaultTargetPlatform API, so that tests can use the correct platform overrides.
v5.0.0
This major release contains all the changes from the 5.0.0 beta releases, along with the following changes:
Improvements:
- [Android] Remove the Kotlin Standard Library from the dependencies, as it is automatically included in Kotlin 1.4+
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.