diff --git a/CHANGELOG.md b/CHANGELOG.md index c12686909..fcf0c5216 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,22 @@ -## 3.2.1 +## 3.3.0 Bugs fixed: +* Fixed bug where onDetect method was being called multiple times * [Android] Fix Gradle 8 compatibility by adding the `namespace` attribute to the build.gradle. +Improvements: +* [Android] Upgraded camera2 dependency +* Added zoomScale value notifier in MobileScannerController for the application to know the zoom scale value set actually. + The value is notified from the native SDK(CameraX/AVFoundation). +* Added resetZoomScale() in MobileScannerController to reset zoom ratio with 1x. + Both Android and iOS, if the device have ultra-wide camera, calling setZoomScale with small value causes to use ultra-wide camera and may be diffcult to detect barcodes. + resetZoomScale() is useful to use standard camera with zoom 1x. + setZoomScale() with the specific value can realize same effect, but added resetZoomScale for avoiding floating point errors. + The application can know what zoom scale value is selected actually by subscribing zoomScale above after calling resetZoomScale. +* [iOS] Call resetZoomScale while starting scan. + Android camera is initialized with a zoom of 1x, whereas iOS is initialized with the minimum zoom value, which causes to select the ultra-wide camera unintentionally ([iOS] Impossible to focus and scan the QR code due to picking the wide back camera #554). + Fixed this issue by calling resetZoomScale +* [iOS] Remove zoom animation with ramp function to match Android behavior. + ## 3.2.0 Improvements: * [iOS] Updated GoogleMLKit/BarcodeScanning to 4.0.0 diff --git a/example/pubspec.yaml b/example/pubspec.yaml index e81df4e60..908cbd6b0 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -3,7 +3,7 @@ description: Demonstrates how to use the mobile_scanner plugin. publish_to: 'none' # Remove this line if you wish to publish to pub.dev environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=2.12.0 <4.0.0" dependencies: flutter: diff --git a/pubspec.yaml b/pubspec.yaml index 084677c0d..e471607c9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,10 +1,10 @@ name: mobile_scanner description: A universal barcode and QR code scanner for Flutter based on MLKit. Uses CameraX on Android, AVFoundation on iOS and Apple Vision & AVFoundation on macOS. -version: 3.2.1 +version: 3.3.0 repository: https://github.com/juliansteenbakker/mobile_scanner environment: - sdk: ">=2.17.0 <3.0.0" + sdk: ">=2.17.0 <4.0.0" flutter: ">=3.0.0" dependencies: @@ -14,7 +14,6 @@ dependencies: sdk: flutter js: ^0.6.3 - dev_dependencies: flutter_test: sdk: flutter