Skip to content

fix(deps): update dependency mobile_scanner to v6

Renovate requested to merge renovate/mobile_scanner-6.x into v2

This MR contains the following updates:

Package Type Update Change
mobile_scanner dependencies major ^4.0.0 -> ^6.0.0

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

juliansteenbakker/mobile_scanner (mobile_scanner)

v6.0.2

Compare Source

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

Compare Source

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 the MobileScanner widget, for use with onDetect.

v6.0.0

Compare Source

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 the MobileScannerState.
  • Fixed a bug in the lifecycle handling sample. Now instead of checking isInitialized, the sample recommends using hasCameraPermission, 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 of returnImage.

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

Compare Source

Deprecations:

  • The EncryptionType.none constant has been deprecated, as its name was misleading. Use EncryptionType.unknown instead.

Bugs fixed:

  • Fixed EncryptionType throwing on invalid SAE 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

Compare Source

Improvements:

  • [MacOS] Adds Swift Package Manager support.
  • [MacOS] Adds support for returnImage.
  • Added a new size property to Barcode, that denotes the bounding box of the barcode.

Bugs fixed:

  • Fixed some documentation errors for the size and image of BarcodeCapture.
  • [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

Compare Source

  • Updates the package:web dependency to use a version range.

v5.2.0

Compare Source

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

Compare Source

  • This release fixes an issue with automatic starts in the examples.

v5.1.0

Compare Source

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 the MobileScanner widget, but is nullable. You can still listen to MobileScannerController.barcodes directly by passing null to this parameter.
  • The autoStart attribute has been reinstated in the MobileScannerController 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 call MobileScannerController.start({CameraFacing? cameraDirection}).
  • The controller is no longer required in the MobileScanner 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

Compare Source

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

Compare Source

Improvements:

  • Adjusted the platform checks to use the defaultTargetPlatform API, so that tests can use the correct platform overrides.

v5.0.0

Compare Source

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

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Edited by Renovate

Merge request reports

Loading