Skip to content

Commit

Permalink
release of v6.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
juliansteenbakker committed Jan 28, 2025
1 parent f7d218d commit e7b3ade
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 6.0.5
Bugs fixed:
* [Android] Fixed crash due to imageProxy being closed too early.

## 6.0.4
Bugs fixed:
* [Android] Fixed UI stutter when `returnImage` is true.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ class MobileScanner(
}

if (!returnImage) {
imageProxy.close()
mobileScannerCallback(
barcodeMap,
null,
mediaImage.width,
mediaImage.height)
imageProxy.close()
return@addOnSuccessListener
}

Expand All @@ -151,16 +151,16 @@ class MobileScanner(
val bmWidth = bmResult.width
val bmHeight = bmResult.height

bmResult.recycle()
imageProxy.close()
imageFormat.release()

mobileScannerCallback(
barcodeMap,
byteArray,
bmWidth,
bmHeight
)

bmResult.recycle()
imageProxy.close()
imageFormat.release()
}

}.addOnFailureListener { e ->
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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: 6.0.4
version: 6.0.5
repository: https://github.com/juliansteenbakker/mobile_scanner

screenshots:
Expand Down

0 comments on commit e7b3ade

Please sign in to comment.