diff --git a/BlinkID/package.json b/BlinkID/package.json index 8852571..7bd7f28 100644 --- a/BlinkID/package.json +++ b/BlinkID/package.json @@ -1,6 +1,6 @@ { "name": "blinkid-cordova", - "version": "5.6.0", + "version": "5.6.1", "description": "A small and powerful ID card scanning library", "cordova": { "id": "blinkid-cordova", diff --git a/BlinkID/plugin.xml b/BlinkID/plugin.xml index 1197a38..232290d 100644 --- a/BlinkID/plugin.xml +++ b/BlinkID/plugin.xml @@ -2,7 +2,7 @@ + version="5.6.1"> BlinkIdScanner A small and powerful ID card scanning library diff --git a/BlinkID/src/ios/sources/MBBlinkIDSerializationUtils.m b/BlinkID/src/ios/sources/MBBlinkIDSerializationUtils.m index 7ca2519..d519820 100644 --- a/BlinkID/src/ios/sources/MBBlinkIDSerializationUtils.m +++ b/BlinkID/src/ios/sources/MBBlinkIDSerializationUtils.m @@ -103,7 +103,7 @@ +(NSDictionary *) serializeVizResult:(MBVizResult *)vizResult { +(NSDictionary *) serializeBarcodeResult:(MBBarcodeResult *)barcodeResult { return @{ - @"rawData" : barcodeResult.rawData, + @"rawData" : [barcodeResult.rawData base64EncodedStringWithOptions:0], @"stringData" : barcodeResult.stringData, @"uncertain" : [NSNumber numberWithBool:barcodeResult.uncertain], @"barcodeType" : [NSNumber numberWithInteger:(barcodeResult.barcodeType + 1)], diff --git a/Release notes.md b/Release notes.md index 2309de6..093b9c1 100644 --- a/Release notes.md +++ b/Release notes.md @@ -1,3 +1,6 @@ +## 5.6.1 +- Fixed `MBBarcodeResult rawData` serialization which caused crashes on iOS. + ## 5.6.0 - Updated to [Android SDK v5.6.0](https://github.com/BlinkID/blinkid-android/releases/tag/v5.6.0) and [iOS SDK v5.6.0](https://github.com/BlinkID/blinkid-ios/releases/tag/v5.6.0)