diff --git a/BlinkID/package.json b/BlinkID/package.json index 81f5129..113f46b 100644 --- a/BlinkID/package.json +++ b/BlinkID/package.json @@ -1,6 +1,6 @@ { "name": "blinkid-cordova", - "version": "5.8.1", + "version": "5.9.0", "description": "A small and powerful ID card scanning library", "cordova": { "id": "blinkid-cordova", diff --git a/BlinkID/plugin.xml b/BlinkID/plugin.xml index 4d72501..75a3fa2 100644 --- a/BlinkID/plugin.xml +++ b/BlinkID/plugin.xml @@ -2,7 +2,7 @@ + version="5.9.0"> BlinkIdScanner A small and powerful ID card scanning library diff --git a/BlinkID/scripts/initIOSFramework.sh b/BlinkID/scripts/initIOSFramework.sh index 32fab8e..2a84a4a 100755 --- a/BlinkID/scripts/initIOSFramework.sh +++ b/BlinkID/scripts/initIOSFramework.sh @@ -4,7 +4,7 @@ HERE="$(dirname "$(test -L "$0" && readlink "$0" || echo "$0")")" pushd "${HERE}/../src/ios/" > /dev/null -LINK='https://github.com/BlinkID/blinkid-ios/releases/download/v5.8.0/blinkid-ios_v5.8.0.zip' +LINK='https://github.com/BlinkID/blinkid-ios/releases/download/v5.9.0/blinkid-ios_v5.9.0.zip' FILENAME='blinkid-ios.zip' # check if Microblink framework and bundle already exist diff --git a/BlinkID/src/android/java/com/phonegap/plugins/microblink/SerializationUtils.java b/BlinkID/src/android/java/com/phonegap/plugins/microblink/SerializationUtils.java index c2decb5..d14306b 100644 --- a/BlinkID/src/android/java/com/phonegap/plugins/microblink/SerializationUtils.java +++ b/BlinkID/src/android/java/com/phonegap/plugins/microblink/SerializationUtils.java @@ -4,7 +4,6 @@ import android.util.Base64; import com.microblink.entities.recognizers.Recognizer; -//import com.microblink.entities.parsers.Parser; import com.microblink.geometry.Point; import com.microblink.geometry.Quadrilateral; import com.microblink.image.Image; @@ -30,10 +29,6 @@ public static void addCommonRecognizerResultData(J jsonObject.put("resultState", serializeEnum(result.getResultState())); } - /*public static void addCommonParserResultData(JSONObject jsonObject, T result) throws JSONException { - jsonObject.put("resultState", serializeEnum(result.getResultState())); - }*/ - public static JSONObject serializeDate( @Nullable Date date ) throws JSONException { if (date != null ) { JSONObject jsonDate = new JSONObject(); diff --git a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/BlinkIdCombinedRecognizerSerialization.java b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/BlinkIdCombinedRecognizerSerialization.java index ddab57a..e88aee6 100644 --- a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/BlinkIdCombinedRecognizerSerialization.java +++ b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/BlinkIdCombinedRecognizerSerialization.java @@ -54,6 +54,7 @@ public JSONObject serializeResult(Recognizer recognizer) { jsonResult.put("documentAdditionalNumber", result.getDocumentAdditionalNumber()); jsonResult.put("documentDataMatch", SerializationUtils.serializeEnum(result.getDocumentDataMatch())); jsonResult.put("documentNumber", result.getDocumentNumber()); + jsonResult.put("documentOptionalAdditionalNumber", result.getDocumentOptionalAdditionalNumber()); jsonResult.put("driverLicenseDetailedInfo", BlinkIDSerializationUtils.serializeDriverLicenseDetailedInfo(result.getDriverLicenseDetailedInfo())); jsonResult.put("employer", result.getEmployer()); jsonResult.put("expired", result.isExpired()); diff --git a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/BlinkIdRecognizerSerialization.java b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/BlinkIdRecognizerSerialization.java index d7e4198..cf57af6 100644 --- a/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/BlinkIdRecognizerSerialization.java +++ b/BlinkID/src/android/java/com/phonegap/plugins/microblink/recognizers/serialization/BlinkIdRecognizerSerialization.java @@ -47,6 +47,7 @@ public JSONObject serializeResult(Recognizer recognizer) { jsonResult.put("dateOfIssue", SerializationUtils.serializeDate(result.getDateOfIssue())); jsonResult.put("documentAdditionalNumber", result.getDocumentAdditionalNumber()); jsonResult.put("documentNumber", result.getDocumentNumber()); + jsonResult.put("documentOptionalAdditionalNumber", result.getDocumentOptionalAdditionalNumber()); jsonResult.put("driverLicenseDetailedInfo", BlinkIDSerializationUtils.serializeDriverLicenseDetailedInfo(result.getDriverLicenseDetailedInfo())); jsonResult.put("employer", result.getEmployer()); jsonResult.put("expired", result.isExpired()); diff --git a/BlinkID/src/android/libBlinkID.gradle b/BlinkID/src/android/libBlinkID.gradle index 05ee961..299be5b 100644 --- a/BlinkID/src/android/libBlinkID.gradle +++ b/BlinkID/src/android/libBlinkID.gradle @@ -6,7 +6,7 @@ repositories { } dependencies { - implementation('com.microblink:blinkid:5.8.0@aar') { + implementation('com.microblink:blinkid:5.9.0@aar') { transitive = true } } diff --git a/BlinkID/src/ios/sources/CDVMicroblinkScanner.m b/BlinkID/src/ios/sources/CDVMicroblinkScanner.m index e5c9c96..d4690f1 100644 --- a/BlinkID/src/ios/sources/CDVMicroblinkScanner.m +++ b/BlinkID/src/ios/sources/CDVMicroblinkScanner.m @@ -98,11 +98,16 @@ - (void)setLicense:(NSDictionary*) jsonLicense { NSString* iosLicense = [jsonLicense objectForKey:@"ios"]; if ([jsonLicense objectForKey:@"licensee"] != nil) { NSString *licensee = [jsonLicense objectForKey:@"licensee"]; - [[MBMicroblinkSDK sharedInstance] setLicenseKey:iosLicense andLicensee:licensee errorCallback: nil]; + [[MBMicroblinkSDK sharedInstance] setLicenseKey:iosLicense andLicensee:licensee errorCallback:^(MBLicenseError licenseError) { + + }]; } else { - [[MBMicroblinkSDK sharedInstance] setLicenseKey:iosLicense errorCallback: nil]; + [[MBMicroblinkSDK sharedInstance] setLicenseKey:iosLicense errorCallback:^(MBLicenseError licenseError) { + + }]; } + } - (void)overlayViewControllerDidFinishScanning:(MBOverlayViewController *)overlayViewController state:(MBRecognizerResultState)state { diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkIdCombinedRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkIdCombinedRecognizerWrapper.m index 900a14b..564febf 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkIdCombinedRecognizerWrapper.m +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkIdCombinedRecognizerWrapper.m @@ -44,13 +44,13 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { { id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; + recognizer.faceImageDpi = [(NSNumber *)faceImageDpi integerValue]; } } { id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; + recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi integerValue]; } } { @@ -98,7 +98,7 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { { id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; + recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi integerValue]; } } { @@ -139,10 +139,11 @@ -(NSDictionary *) serializeResult { [jsonResult setValue:[NSNumber numberWithBool:self.result.dateOfExpiryPermanent] forKey:@"dateOfExpiryPermanent"]; [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; [jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"]; - [jsonResult setValue:[NSNumber numberWithUnsignedInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"]; + [jsonResult setValue:[NSNumber numberWithInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"]; [jsonResult setValue:self.result.documentAdditionalNumber forKey:@"documentAdditionalNumber"]; [jsonResult setValue:[NSNumber numberWithInteger:(self.result.documentDataMatch + 1)] forKey:@"documentDataMatch"]; [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; + [jsonResult setValue:self.result.documentOptionalAdditionalNumber forKey:@"documentOptionalAdditionalNumber"]; [jsonResult setValue:[MBBlinkIDSerializationUtils serializeDriverLicenseDetailedInfo:self.result.driverLicenseDetailedInfo] forKey:@"driverLicenseDetailedInfo"]; [jsonResult setValue:self.result.employer forKey:@"employer"]; [jsonResult setValue:[NSNumber numberWithBool:self.result.expired] forKey:@"expired"]; diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkIdRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkIdRecognizerWrapper.m index 1a4040a..191b9d2 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkIdRecognizerWrapper.m +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBBlinkIdRecognizerWrapper.m @@ -44,13 +44,13 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { { id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; + recognizer.faceImageDpi = [(NSNumber *)faceImageDpi integerValue]; } } { id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; + recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi integerValue]; } } { @@ -92,7 +92,7 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { { id signatureImageDpi = [jsonRecognizer valueForKey:@"signatureImageDpi"]; if (signatureImageDpi != nil) { - recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi unsignedIntegerValue]; + recognizer.signatureImageDpi = [(NSNumber *)signatureImageDpi integerValue]; } } { @@ -126,6 +126,7 @@ -(NSDictionary *) serializeResult { [jsonResult setValue:[MBSerializationUtils serializeMBDateResult:self.result.dateOfIssue] forKey:@"dateOfIssue"]; [jsonResult setValue:self.result.documentAdditionalNumber forKey:@"documentAdditionalNumber"]; [jsonResult setValue:self.result.documentNumber forKey:@"documentNumber"]; + [jsonResult setValue:self.result.documentOptionalAdditionalNumber forKey:@"documentOptionalAdditionalNumber"]; [jsonResult setValue:[MBBlinkIDSerializationUtils serializeDriverLicenseDetailedInfo:self.result.driverLicenseDetailedInfo] forKey:@"driverLicenseDetailedInfo"]; [jsonResult setValue:self.result.employer forKey:@"employer"]; [jsonResult setValue:[NSNumber numberWithBool:self.result.expired] forKey:@"expired"]; diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBDocumentFaceRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBDocumentFaceRecognizerWrapper.m index b61e25b..abdcfc8 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBDocumentFaceRecognizerWrapper.m +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBDocumentFaceRecognizerWrapper.m @@ -26,13 +26,13 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { { id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; + recognizer.faceImageDpi = [(NSNumber *)faceImageDpi integerValue]; } } { id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; + recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi integerValue]; } } { @@ -44,7 +44,7 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { { id numStableDetectionsThreshold = [jsonRecognizer valueForKey:@"numStableDetectionsThreshold"]; if (numStableDetectionsThreshold != nil) { - recognizer.numStableDetectionsThreshold = [(NSNumber *)numStableDetectionsThreshold unsignedIntegerValue]; + recognizer.numStableDetectionsThreshold = [(NSNumber *)numStableDetectionsThreshold integerValue]; } } { diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdCombinedRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdCombinedRecognizerWrapper.m index 5a984e7..bab1d53 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdCombinedRecognizerWrapper.m +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdCombinedRecognizerWrapper.m @@ -44,13 +44,13 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { { id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; + recognizer.faceImageDpi = [(NSNumber *)faceImageDpi integerValue]; } } { id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; + recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi integerValue]; } } { @@ -62,7 +62,7 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { { id numStableDetectionsThreshold = [jsonRecognizer valueForKey:@"numStableDetectionsThreshold"]; if (numStableDetectionsThreshold != nil) { - recognizer.numStableDetectionsThreshold = [(NSNumber *)numStableDetectionsThreshold unsignedIntegerValue]; + recognizer.numStableDetectionsThreshold = [(NSNumber *)numStableDetectionsThreshold integerValue]; } } { @@ -97,7 +97,7 @@ @implementation MBMrtdCombinedRecognizer (JsonSerialization) -(NSDictionary *) serializeResult { NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; [jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"]; - [jsonResult setValue:[NSNumber numberWithUnsignedInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"]; + [jsonResult setValue:[NSNumber numberWithInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"]; [jsonResult setValue:[NSNumber numberWithInteger:(self.result.documentDataMatch + 1)] forKey:@"documentDataMatch"]; [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentBackImage] forKey:@"fullDocumentBackImage"]; diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdRecognizerWrapper.m index 799ed41..6d502ee 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdRecognizerWrapper.m +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBMrtdRecognizerWrapper.m @@ -44,7 +44,7 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { { id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; + recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi integerValue]; } } { diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPassportRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPassportRecognizerWrapper.m index 41e44ec..e49eac2 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPassportRecognizerWrapper.m +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBPassportRecognizerWrapper.m @@ -32,13 +32,13 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { { id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; + recognizer.faceImageDpi = [(NSNumber *)faceImageDpi integerValue]; } } { id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; + recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi integerValue]; } } { @@ -79,7 +79,7 @@ @implementation MBPassportRecognizer (JsonSerialization) -(NSDictionary *) serializeResult { NSMutableDictionary* jsonResult = (NSMutableDictionary*)[super serializeResult]; [jsonResult setValue:[self.result.digitalSignature base64EncodedStringWithOptions:0] forKey:@"digitalSignature"]; - [jsonResult setValue:[NSNumber numberWithUnsignedInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"]; + [jsonResult setValue:[NSNumber numberWithInteger:self.result.digitalSignatureVersion] forKey:@"digitalSignatureVersion"]; [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"]; [jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"]; [jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"]; diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.m index 2b681ab..5dbabc7 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.m +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBUsdlCombinedRecognizerWrapper.m @@ -19,13 +19,13 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { { id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; + recognizer.faceImageDpi = [(NSNumber *)faceImageDpi integerValue]; } } { id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; + recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi integerValue]; } } { @@ -49,7 +49,7 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { { id numStableDetectionsThreshold = [jsonRecognizer valueForKey:@"numStableDetectionsThreshold"]; if (numStableDetectionsThreshold != nil) { - recognizer.numStableDetectionsThreshold = [(NSNumber *)numStableDetectionsThreshold unsignedIntegerValue]; + recognizer.numStableDetectionsThreshold = [(NSNumber *)numStableDetectionsThreshold integerValue]; } } { diff --git a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBVisaRecognizerWrapper.m b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBVisaRecognizerWrapper.m index c1ec22d..2fdd4d3 100644 --- a/BlinkID/src/ios/sources/Recognizers/Wrappers/MBVisaRecognizerWrapper.m +++ b/BlinkID/src/ios/sources/Recognizers/Wrappers/MBVisaRecognizerWrapper.m @@ -26,13 +26,13 @@ -(MBRecognizer *) createRecognizer:(NSDictionary*) jsonRecognizer { { id faceImageDpi = [jsonRecognizer valueForKey:@"faceImageDpi"]; if (faceImageDpi != nil) { - recognizer.faceImageDpi = [(NSNumber *)faceImageDpi unsignedIntegerValue]; + recognizer.faceImageDpi = [(NSNumber *)faceImageDpi integerValue]; } } { id fullDocumentImageDpi = [jsonRecognizer valueForKey:@"fullDocumentImageDpi"]; if (fullDocumentImageDpi != nil) { - recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi unsignedIntegerValue]; + recognizer.fullDocumentImageDpi = [(NSNumber *)fullDocumentImageDpi integerValue]; } } { diff --git a/BlinkID/www/blinkIdScanner.js b/BlinkID/www/blinkIdScanner.js index 5ca991e..ab402f8 100644 --- a/BlinkID/www/blinkIdScanner.js +++ b/BlinkID/www/blinkIdScanner.js @@ -484,7 +484,21 @@ BlinkID.prototype.Country = Object.freeze( ElSalvador: 89, SriLanka: 90, Peru: 91, - Uruguay: 92 + Uruguay: 92, + Bahamas: 93, + Bermuda: 94, + Bolivia: 95, + China: 96, + EuropeanUnion: 97, + Haiti: 98, + Honduras: 99, + Iceland: 100, + Japan: 101, + Luxembourg: 102, + Montenegro: 103, + Nicaragua: 104, + SouthKorea: 105, + Venezuela: 106 } ); @@ -565,7 +579,16 @@ BlinkID.prototype.Region = Object.freeze( CiudadDeMexico: 70, Jalisco: 71, NewfoundlandAndLabrador: 72, - NuevoLeon: 73 + NuevoLeon: 73, + BajaCalifornia: 74, + Chihuahua: 75, + Guanajuato: 76, + Guerrero: 77, + Mexico: 78, + Michoacan: 79, + NewYorkCity: 80, + Tamaulipas: 81, + Veracruz: 82 } ); @@ -600,7 +623,16 @@ BlinkID.prototype.Type = Object.freeze( SocialSecurityCard: 24, HealthInsuranceCard: 25, Passport: 26, - SPass: 27 + SPass: 27, + AddressCard: 28, + AlienId: 29, + AlienPassport: 30, + GreenCard: 31, + MinorsId: 32, + PostalId: 33, + ProfessionalDl: 34, + TaxId: 35, + WeaponPermit: 36 } ); @@ -787,6 +819,9 @@ function VizResult(nativeVizResult) { /** Flag that indicates if barcode result is empty */ this.empty = nativeVizResult.empty; + + /** The one more additional number of the document. */ + this.documentOptionalAdditionalNumber = nativeVizResult.documentOptionalAdditionalNumber; } /** @@ -966,6 +1001,7 @@ function ImageExtensionFactors() { } BlinkID.prototype.ImageExtensionFactors = ImageExtensionFactors; + /** * RecognitionModeFilter is used to enable/disable recognition of specific document groups. * Setting is taken into account only if the right for that document is purchased. @@ -1289,6 +1325,11 @@ function BlinkIdCombinedRecognizerResult(nativeResult) { */ this.documentNumber = nativeResult.documentNumber; + /** + * The one more additional number of the document. + */ + this.documentOptionalAdditionalNumber = nativeResult.documentOptionalAdditionalNumber; + /** * The driver license detailed info. */ @@ -1640,6 +1681,11 @@ function BlinkIdRecognizerResult(nativeResult) { */ this.documentNumber = nativeResult.documentNumber; + /** + * The one more additional number of the document. + */ + this.documentOptionalAdditionalNumber = nativeResult.documentOptionalAdditionalNumber; + /** * The driver license detailed info. */ @@ -2660,8 +2706,6 @@ VisaRecognizer.prototype = new Recognizer('VisaRecognizer'); BlinkID.prototype.VisaRecognizer = VisaRecognizer; - -// BlinkID.prototype.UsdlKeys = Object.freeze( { //==============================================================/ diff --git a/Release notes.md b/Release notes.md index 7b90cff..06d29a6 100644 --- a/Release notes.md +++ b/Release notes.md @@ -1,3 +1,6 @@ +## 5.9.0 +- Updated to [Android SDK v5.9.0](https://github.com/BlinkID/blinkid-android/releases/tag/v5.9.0) and [iOS SDK v5.9.0](https://github.com/BlinkID/blinkid-ios/releases/tag/v5.9.0) + ## 5.8.1 - Fixed `documentDataMatch` serialization. diff --git a/sample_files/www/js/index.js b/sample_files/www/js/index.js index 357d2cf..895f618 100644 --- a/sample_files/www/js/index.js +++ b/sample_files/www/js/index.js @@ -77,8 +77,8 @@ var app = { // package name/bundleID com.microblink.sample var licenseKeys = { - android: 'sRwAAAAVY29tLm1pY3JvYmxpbmsuc2FtcGxlU9kJdf5ZkGlTu9U3P8tqz/OQlP4WPMiRjJ8ogPx3I/XahwQ+FZH+4q0sbbRGfo1IDXwYR6Cdy7o6IZeOzT2iRIZT7eW+Cqk65y1ngxGxk5caaR7WSyCGCe/yQqSjp1fxerQaVWUL0uK7s0xfv8EtVTqz7hocOKoqeC4c2m0L+WeEc7kAHGuYjoIMVm2BOmEtCOR4grLQUmrz5ojA8fFjuknxBnEGkFWdJNT0evkrH/BgcnM9S+CH2018twWbYYV8ggqaD8DB', - ios: 'sRwAAAEVY29tLm1pY3JvYmxpbmsuc2FtcGxl1BIcP+dpSuS/38JVP6aONWHvT8wM+6zmoHkZcEdflMvkKx9QQNk8obEjEQ2ORa2AOCX0WIH6J7aiNng1sfYJhHJP5IFe4WT2T1FhZ8hS9NGfch5TmUt4otfsjHBaFCjwIg9C0VBO/Jr3EWvcYTy9h85elnvwjJVB5GQwb2UT+UpjD9qV4x4X7PdjO87TFVboMrcLPbv/ql7u9f1ic4cMuzh/ja7G+02rESCeA/BE3huTNORJNw9Llb2dsEEFA+NUP9sGejw=' + android: 'sRwAAAAVY29tLm1pY3JvYmxpbmsuc2FtcGxlU9kJdZhZkGlTu9U3Oytmz+CFeSAHFwXsvIAagkVJewZ6/T5ELpRi36El0d06NkDdLi7Pta0DYB/kkqBOeg8aZ2c3PTQIBCmkR8lJ/6EUGJQsNRWQV8oGILxI5BmFJobs/jfQ1yN6UcmiqbyHfIjAYDHxqeqsgMoSXD0bCZP5O8yLmJQvpYvnqGdbIYoPFVZljdrsgchEgmiJsrvpuqq8fq9bKhTegPhdqTEoIm/qQUVQoze7C6Sr8iBZbrpj+3r5evQIlt6Fy36DsAQ5gMbhKzOCkF128qHeuicc5CkxSlRk8Lw8kOdL+Gb4NfMPZc68g+T4UjWy', + ios: 'sRwAAAEVY29tLm1pY3JvYmxpbmsuc2FtcGxl1BIcP4FpSuS/38JVOzatlHDkAkP9+oIZ1bKb4BPfN7wPBQczWhR6b617QEPj1HI99s+44i/87JqaeKk7Y+0PYmzZENGPtvBCD5E5Ag+BQos3eRDTll0ibYm5CMfv1sc8q+7tmf3Pso5VB73fwqoZQkZ8nCvzxhwyp5P2niFJdsXUpOtx0jBaEoKb8FjtRjMscbh+ZKL1iEqEFa78kqOVe1QLZQFsMxv8ewtBVa8/Xecvp3bwpC32vQJ6F8EyuqIxBAzCvLVCGbzUkCIkJNAeUruyTmup9QVKUjUtCEmGzYglju1OCuFUZp5cheXP2Nswgwzo2UYo' }; function buildResult(result, key) {