Skip to content

Releases: juliansteenbakker/mobile_scanner

v5.0.2

Choose a tag to compare

@juliansteenbakker juliansteenbakker released this 03 May 12:16
a71d9ff

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

Choose a tag to compare

@juliansteenbakker juliansteenbakker released this 23 Apr 13:45
c113dff

Improvements:

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

v5.0.0

Choose a tag to compare

@juliansteenbakker juliansteenbakker released this 23 Apr 13:45
8c87026

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+

v5.0.0-beta.3

v5.0.0-beta.3 Pre-release
Pre-release

Choose a tag to compare

@juliansteenbakker juliansteenbakker released this 23 Apr 13:45
72b0335

BREAKING CHANGES:

  • Flutter 3.19.0 is now required.
  • [iOS] iOS 12.0 is now the minimum supported iOS version.
  • [iOS] Adds a Privacy Manifest.

Bugs fixed:

  • Fixed an issue where the camera preview and barcode scanner did not work the second time on web.

Improvements:

  • [web] Migrates to extension types. (thanks @koji-1009 !)

v5.0.0-beta.2

v5.0.0-beta.2 Pre-release
Pre-release

Choose a tag to compare

@juliansteenbakker juliansteenbakker released this 23 Apr 13:44
269bc95

Bugs fixed:

  • Fixed an issue where the scan window was not updated when its size was changed. (thanks @navaronbracke !)

v5.0.0-beta.1

v5.0.0-beta.1 Pre-release
Pre-release

Choose a tag to compare

@juliansteenbakker juliansteenbakker released this 23 Apr 13:44
ad68fda

BREAKING CHANGES:

  • The width and height of BarcodeCapture have been removed, in favor of size.
  • The raw attribute is now Object? instead of dynamic, so that it participates in type promotion.
  • The MobileScannerArguments class has been removed from the public API, as it is an internal type.
  • The cameraFacingOverride named argument for the start() method has been renamed to cameraDirection.
  • The analyzeImage function now correctly returns a BarcodeCapture? instead of a boolean.
  • The formats attribute of the MobileScannerController is now non-null.
  • The MobileScannerState enum has been renamed to MobileScannerAuthorizationState.
  • The various ValueNotifiers for the camera state have been removed. Use the value of the MobileScannerController instead.
  • The hasTorch getter has been removed. Instead, use the torch state of the controller's value.
    The TorchState enum now provides a new value for unavailable flashlights.
  • The autoStart attribute has been removed from the MobileScannerController. The controller should be manually started on-demand.
  • A controller is now required for the MobileScanner widget.
  • The onPermissionSet, onStart and onScannerStarted methods have been removed from the MobileScanner widget. Instead, await MobileScannerController.start().
  • The startDelay has been removed from the MobileScanner widget. Instead, use a delay between manual starts of one or more controllers.
  • The onDetect method has been removed from the MobileScanner widget. Instead, listen to MobileScannerController.barcodes directly.
  • The overlay widget of the MobileScanner has been replaced by a new property, overlayBuilder, which provides the constraints for the overlay.
  • The torch can no longer be toggled on the web, as this is only available for image tracks and not video tracks. As a result the torch state for the web will always be TorchState.unavailable.
  • The zoom scale can no longer be modified on the web, as this is only available for image tracks and not video tracks. As a result, the zoom scale will always be 1.0.

Improvements:

  • The MobileScannerController is now a ChangeNotifier, with MobileScannerState as its model.
  • The web implementation now supports alternate URLs for loading the barcode library.

v4.0.1

Choose a tag to compare

@juliansteenbakker juliansteenbakker released this 23 Apr 13:43
c039011

Bugs fixed:

[iOS] Fixed a crash with a nil capture session when starting the camera. (thanks @navaronbracke !)

v4.0.0

Choose a tag to compare

@juliansteenbakker juliansteenbakker released this 29 Jan 09:42
176ac97

BREAKING CHANGES:

  • [Android] compileSdk has been upgraded to version 34.
  • [Android] Java version has been upgraded to version 17.

v3.5.7

Choose a tag to compare

@juliansteenbakker juliansteenbakker released this 29 Jan 09:26
1cfad10

Improvements:

  • Updated js dependency together with other dependencies.
  • Reverted compileSdk version to 33 on Android. This update will be released under version 4.0.0.

v3.5.6

Choose a tag to compare

@juliansteenbakker juliansteenbakker released this 29 Jan 09:03
2c15657

Bugs fixed:

  • [web] Fixed a crash with the ZXing barcode format (thanks @hazzo!)
  • [web] Fixed stream controller not being closed on web.
  • [iOS] Fixed a crash with unsupported torch modes. (thanks @navaronbracke !)
  • [iOS] Fixed a crash with the camera discovery session. (thanks @navaronbracke !)

Improvements:

  • Upgrade camera dependencies on Android.
  • Upgrade compileSdk version to 34 on Android.
  • Add numberOfCameras parameter in MobileScannerArguments callback, which shows how many cameras there are available on Android.
  • [Android] Migrated to ResolutionSelector with ResolutionStrategy. You can opt in into the new selector by setting [useNewCameraSelector] in the [MobileScannerController] to true.