Navaron Bracke

fix discrepancy for barcode capture image size on Android

@@ -50,9 +50,11 @@ class MobileScannerHandler( @@ -50,9 +50,11 @@ class MobileScannerHandler(
50 barcodeHandler.publishEvent(mapOf( 50 barcodeHandler.publishEvent(mapOf(
51 "name" to "barcode", 51 "name" to "barcode",
52 "data" to barcodes, 52 "data" to barcodes,
53 - "image" to image,  
54 - "width" to width!!.toDouble(),  
55 - "height" to height!!.toDouble() 53 + "image" to mapOf(
  54 + "bytes" to image,
  55 + "width" to width!!.toDouble(),
  56 + "height" to height!!.toDouble(),
  57 + )
56 )) 58 ))
57 } else { 59 } else {
58 barcodeHandler.publishEvent(mapOf( 60 barcodeHandler.publishEvent(mapOf(