Releases: juliansteenbakker/mobile_scanner
v4.0.0
BREAKING CHANGES:
- [Android] compileSdk has been upgraded to version 34.
- [Android] Java version has been upgraded to version 17.
v3.5.7
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
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.
v3.5.5
Bugs fixed:
- Fixed a bug where the scanner would get stuck after denying permissions on Android. (thanks @navaronbracke !)
v3.5.4
Bugs fixed:
- Fixed a bug with an implicit conversion to integer for the scan timeout for iOS. (thanks @EArminjon !)
v3.5.2
Improvements:
- Updated to
play-services-mlkit-barcode-scanningversion 18.3.0
Bugs fixed:
- Fixed the
updateScanWindow()function not completing on Android and MacOS. (thanks @navaronbracke !) - Fixed some camera access issues, when the camera could have been null on Android. (thanks @navaronbracke !)
- Fixed a crash on Android when there is no camera. (thanks @navaronbracke !)
- Fixed a bug with the
noDuplicatesdetection speed. (thanks @pgeof !) - Fixed a synchronization issue for the torch state. (thanks @navaronbracke !)
v3.5.1
Improvements:
- The
typeof anAddressis now non-null. - The
typeof anEmailis now non-null. - The
phoneNumberof anSMSis now non-null. - The
latitudeandlongitudeof aGeoPointare now non-null. - The
phonesandurlsofContactInfoare now non-null. - The
urlof aUrlBookmarkis now non-null. - The
typeofPhoneis now non-null. - The
widthandheightofBarcodeCaptureare now non-null. - The
BarcodeCaptureclass now exposes asize. - The list of
cornersof aBarcodeis now non-null.
Bugs fixed:
- Fixed the default values for the
formatandtypearguments of the Barcode constructor.
These now useBarcodeFormat.unknownandBarcodeType.unknown, rather thanBarcodeFormat.ean13andBarcodeType.text.
(thanks @navaronbracke !) - Fixed messages not being sent on the main thread for Android, iOS and MacOS. (thanks @navaronbracke !)
v3.5.0
New Features:
- Added the option to switch between bundled and unbundled MLKit for Android. (thanks @woolfred !)
- Added the option to specify the camera resolution for Android. (thanks @EArminjon !)
- Added a sample with a scanner overlay. (thanks @Spyy004 !)
Bugs fixed:
- Fixed the scan window calculation taking into account the widget coordinates, instead of the screen coordinates. (thanks @jlin5 !)
- Fixed the scan window calculation returning wrong results. (thanks @MBulli !)
- Fixed the BarcodeCapture format on MacOS. (thanks @ryanduffyne !)
- Fixed the timeout for scanning on MacOS. (thanks @ryanduffyne !)
- Fixed Android builds failing by downgrading from Kotlin 1.9.10 to 1.7.22. (thanks @vbuberen !)
- Fixed images on iOS being rotated, resulting in bad detection rates. (thanks @EArminjon !)
- Fixed scan timeout not working on iOS. (thanks @navaronbracke !)
- Fixed a crash on iOS when the device is nil. (thanks @navaronbracke !)
- Fixed a case of an unhandled exception when starting the scanner. (thanks @navaronbracke !)
Improvements:
- Improved MacOS memory footprint by using a background queue. (thanks @ryanduffyne !)
v3.4.1
Change MediaQuery.sizeOf(context) to of(context).size for backwards compatibility
v3.4.0
New Features:
- This PR adds an option to add an overlay to the scanner which is only visible when the scanner has started. (thanks @svenopdehipt !)
Improvements:
-
fix a bug in the static interop binding of PhotoCapabilities (thanks @navaronbracke !)
-
[Web] add the corners from the ZXing result to the barcode on web (thanks @navaronbracke !)
-
update the example app web entrypoint to the latest template by running flutter create . --platforms=web (thanks @navaronbracke !)
-
add better handling for the case where scanning barcodes is unsupported (for example a desktop running the browser sample) (thanks @navaronbracke !)
-
[Web] fix the permission denied handling on the web, by using the NotAllowedError error message as defined by MDN (thanks @navaronbracke !)
-
add app bars with back buttons to the example app (so that you can go back easily) (thanks @navaronbracke !)
-
[iOS] Implements a fix from issue iOS After first QR Code Scan, When Scanning again, First Image stays on Camera buffer (thanks @FlockiiX !)
-
By dynamically adjusting the positioning and scaling of the scan window relative to the texture, the package ensures optimal coverage and alignment for scanning targets. (thanks @sdkysfzai !)
-
In the original package, If there are multiple barcode/qrcodes in the screen, the scan would randomly pick up any barcode/qrcode that shows in the screen, This upgrade fixes it and picks on the qrcode/barcode that is in the center of the camera. (thanks @sdkysfzai !)
-
In the original package if you changed the camera size, it would still pick scans even if the barcode are not shown in the screen, This issue is also fixed in the upgraded packaged. (thanks @sdkysfzai !)
-
[iOS] This removes a threading warning (and potentially jank). (thanks @ened !)
-
[Android] fix(ScanImage): fix android image result is not correct format and orientation (thanks @phanbaohuy96 !)
-
[iOS] Respect detectionTimeout on iOS devices, instead of arbitrarily waiting 10 frames (thanks @jorgenpt !)
-
[iOS] Don't start a second scan until the first one is done, to keep memory usage more fixed if the device is slow (thanks @jorgenpt !)
-
[Android] This PR ensure that the camera is not stopped in the callback. (thanks @g123k !)
-
[macOS] Fix some macOS build errors (thanks @svenopdehipt !)
-
[Android] Fixed an issue which caused the App Lifecycle States to not work correctly on Android. (thanks @androi7 !)