Committed by
GitHub
Merge branch 'master' into fix_master_analysis
Showing
3 changed files
with
10 additions
and
6 deletions
| @@ -128,12 +128,12 @@ class MobileScanner( | @@ -128,12 +128,12 @@ class MobileScanner( | ||
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | if (!returnImage) { | 130 | if (!returnImage) { |
| 131 | - imageProxy.close() | ||
| 132 | mobileScannerCallback( | 131 | mobileScannerCallback( |
| 133 | barcodeMap, | 132 | barcodeMap, |
| 134 | null, | 133 | null, |
| 135 | mediaImage.width, | 134 | mediaImage.width, |
| 136 | mediaImage.height) | 135 | mediaImage.height) |
| 136 | + imageProxy.close() | ||
| 137 | return@addOnSuccessListener | 137 | return@addOnSuccessListener |
| 138 | } | 138 | } |
| 139 | 139 | ||
| @@ -151,16 +151,16 @@ class MobileScanner( | @@ -151,16 +151,16 @@ class MobileScanner( | ||
| 151 | val bmWidth = bmResult.width | 151 | val bmWidth = bmResult.width |
| 152 | val bmHeight = bmResult.height | 152 | val bmHeight = bmResult.height |
| 153 | 153 | ||
| 154 | - bmResult.recycle() | ||
| 155 | - imageProxy.close() | ||
| 156 | - imageFormat.release() | ||
| 157 | - | ||
| 158 | mobileScannerCallback( | 154 | mobileScannerCallback( |
| 159 | barcodeMap, | 155 | barcodeMap, |
| 160 | byteArray, | 156 | byteArray, |
| 161 | bmWidth, | 157 | bmWidth, |
| 162 | bmHeight | 158 | bmHeight |
| 163 | ) | 159 | ) |
| 160 | + | ||
| 161 | + bmResult.recycle() | ||
| 162 | + imageProxy.close() | ||
| 163 | + imageFormat.release() | ||
| 164 | } | 164 | } |
| 165 | 165 | ||
| 166 | }.addOnFailureListener { e -> | 166 | }.addOnFailureListener { e -> |
| 1 | name: mobile_scanner | 1 | name: mobile_scanner |
| 2 | 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. | 2 | 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. |
| 3 | -version: 6.0.4 | 3 | +version: 6.0.5 |
| 4 | repository: https://github.com/juliansteenbakker/mobile_scanner | 4 | repository: https://github.com/juliansteenbakker/mobile_scanner |
| 5 | 5 | ||
| 6 | screenshots: | 6 | screenshots: |
-
Please register or login to post a comment