Skip to content

Commit

Permalink
Merge pull request #165 from BlinkID/release/v6.5.0
Browse files Browse the repository at this point in the history
Release/v6.5.0
  • Loading branch information
mparadina authored Feb 16, 2024
2 parents f1500b1 + 63b3b10 commit a5e583c
Show file tree
Hide file tree
Showing 9 changed files with 194 additions and 172 deletions.
2 changes: 1 addition & 1 deletion BlinkID/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blinkid-cordova",
"version": "6.4.0",
"version": "6.5.0",
"description": "A small and powerful ID card scanning library",
"cordova": {
"id": "blinkid-cordova",
Expand Down
2 changes: 1 addition & 1 deletion BlinkID/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="blinkid-cordova"
version="6.4.0">
version="6.5.0">

<name>BlinkIdScanner</name>
<description>A small and powerful ID card scanning library</description>
Expand Down
2 changes: 1 addition & 1 deletion BlinkID/scripts/initIOSFramework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/v6.4.0/BlinkID.xcframework.zip'
LINK='https://github.com/BlinkID/blinkid-ios/releases/download/v6.5.0/BlinkID.xcframework.zip'
FILENAME='BlinkID.xcframework.zip'

# BlinkID framework will be obtained via wget or curl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public static JSONObject serializeImageAnalysisResult(ImageAnalysisResult imageA
jsonImageAnalysis.put("mrzDetectionStatus", SerializationUtils.serializeEnum(imageAnalysisResult.getMrzDetectionStatus()));
jsonImageAnalysis.put("barcodeDetectionStatus", SerializationUtils.serializeEnum(imageAnalysisResult.getBarcodeDetectionStatus()));
jsonImageAnalysis.put("cardRotation", BlinkIDSerializationUtils.serializeCardRotation(imageAnalysisResult.getCardRotation()));
jsonImageAnalysis.put("cardOrientation", SerializationUtils.serializeEnum(imageAnalysisResult.getCardOrientation()));
return jsonImageAnalysis;
}

Expand Down
2 changes: 1 addition & 1 deletion BlinkID/src/android/libBlinkID.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repositories {
}

dependencies {
implementation('com.microblink:blinkid:6.4.0@aar') {
implementation('com.microblink:blinkid:6.5.0@aar') {
transitive = true
}
}
Expand Down
19 changes: 10 additions & 9 deletions BlinkID/src/ios/sources/MBBlinkIDSerializationUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ +(NSDictionary *) serializeImageAnalysisResult:(MBImageAnalysisResult *)imageAna
@"faceDetectionStatus" : [NSNumber numberWithInteger:(imageAnalysisResult.faceDetectionStatus)],
@"mrzDetectionStatus" : [NSNumber numberWithInteger:(imageAnalysisResult.mrzDetectionStatus)],
@"barcodeDetectionStatus" : [NSNumber numberWithInteger:(imageAnalysisResult.barcodeDetectionStatus)],
@"cardRotation" : [NSNumber numberWithInteger:(imageAnalysisResult.cardRotation)]
@"cardRotation" : [NSNumber numberWithInteger:(imageAnalysisResult.cardRotation)],
@"cardOrientation" : [NSNumber numberWithInteger:(imageAnalysisResult.cardOrientation)]
};
}

Expand Down Expand Up @@ -249,19 +250,19 @@ +(MBClassAnonymizationSettings *) deserializeMBClassAnonymizationSettings:(NSDic
NSNumber *region = [jsonClassAnonymizationSettings valueForKey:@"region"];
NSNumber *type = [jsonClassAnonymizationSettings valueForKey:@"type"];

if (![country isEqual:[NSNull null]] && ![region isEqual:[NSNull null]] && ![type isEqual:[NSNull null]]) {
if (![country isEqual:[NSNull null]] && country.integerValue != nil && ![region isEqual:[NSNull null]] && region.integerValue != nil && ![type isEqual:[NSNull null]] && type.integerValue != nil) {
return [[MBClassAnonymizationSettings alloc] initWithCountry:country.integerValue region:region.integerValue type:type.integerValue fields:fields];
} else if (![country isEqual:[NSNull null]] && ![type isEqual:[NSNull null]]) {
} else if (![country isEqual:[NSNull null]] && country.integerValue != nil && ![type isEqual:[NSNull null]] && type.integerValue != nil){
return [[MBClassAnonymizationSettings alloc] initWithCountry:country.integerValue type:type.integerValue fields:fields];
} else if (![country isEqual:[NSNull null]] && ![region isEqual:[NSNull null]] ) {
} else if (![country isEqual:[NSNull null]] && country.integerValue != nil && ![region isEqual:[NSNull null]] && region.integerValue != nil ) {
return [[MBClassAnonymizationSettings alloc] initWithCountry:country.integerValue region:region.integerValue fields:fields];
} else if (![region isEqual:[NSNull null]] && ![type isEqual:[NSNull null]]) {
return [[MBClassAnonymizationSettings alloc] initWithRegion:region.integerValue type:type.integerValue fields:fields];
} else if (![country isEqual:[NSNull null]]) {
} else if (![region isEqual:[NSNull null]] && region.integerValue != nil && ![type isEqual:[NSNull null]] && type.integerValue != nil ) {
return [[MBClassAnonymizationSettings alloc] initWithRegion:region.integerValue type:type.integerValue fields:fields];
} else if (![country isEqual:[NSNull null]] && country.integerValue != nil ) {
return [[MBClassAnonymizationSettings alloc] initWithCountry:country.integerValue fields:fields];
} else if (![region isEqual:[NSNull null]] ) {
} else if (![region isEqual:[NSNull null]] && region.integerValue != nil) {
return [[MBClassAnonymizationSettings alloc] initWithRegion:region.integerValue fields:fields];
} else if (![type isEqual:[NSNull null]]) {
} else if (![type isEqual:[NSNull null]] && type.integerValue != nil ) {
return [[MBClassAnonymizationSettings alloc] initWithType:type.integerValue fields:fields];
}

Expand Down
Loading

0 comments on commit a5e583c

Please sign in to comment.