Skip to content

Commit

Permalink
Merge pull request #148 from BlinkID/release/v5.14.0
Browse files Browse the repository at this point in the history
Release/v5.14.0
  • Loading branch information
krizaa authored Oct 6, 2021
2 parents 18d37a3 + d50fe0b commit 6c61bd0
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 6 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": "5.13.1",
"version": "5.14.0",
"description": "A small and powerful ID card scanning library",
"cordova": {
"id": "blinkid-cordova",
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/v5.13.0/Microblink.xcframework.zip'
LINK='https://github.com/BlinkID/blinkid-ios/releases/download/v5.14.0/Microblink.xcframework.zip'
FILENAME='Microblink.xcframework.zip'

# check if Microblink framework and bundle already exist
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public JSONObject serializeResult(Recognizer<?> recognizer) {
jsonResult.put("employer", result.getEmployer());
jsonResult.put("expired", result.isExpired());
jsonResult.put("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage()));
jsonResult.put("fathersName", result.getFathersName());
jsonResult.put("firstName", result.getFirstName());
jsonResult.put("frontImageAnalysisResult", BlinkIDSerializationUtils.serializeImageAnalysisResult(result.getFrontImageAnalysisResult()));
jsonResult.put("frontProcessingStatus", SerializationUtils.serializeEnum(result.getFrontProcessingStatus()));
Expand All @@ -74,6 +75,7 @@ public JSONObject serializeResult(Recognizer<?> recognizer) {
jsonResult.put("lastName", result.getLastName());
jsonResult.put("localizedName", result.getLocalizedName());
jsonResult.put("maritalStatus", result.getMaritalStatus());
jsonResult.put("mothersName", result.getMothersName());
jsonResult.put("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult()));
jsonResult.put("nationality", result.getNationality());
jsonResult.put("personalIdNumber", result.getPersonalIdNumber());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public JSONObject serializeResult(Recognizer<?> recognizer) {
jsonResult.put("employer", result.getEmployer());
jsonResult.put("expired", result.isExpired());
jsonResult.put("faceImage", SerializationUtils.encodeImageBase64(result.getFaceImage()));
jsonResult.put("fathersName", result.getFathersName());
jsonResult.put("firstName", result.getFirstName());
jsonResult.put("fullDocumentImage", SerializationUtils.encodeImageBase64(result.getFullDocumentImage()));
jsonResult.put("fullName", result.getFullName());
Expand All @@ -61,6 +62,7 @@ public JSONObject serializeResult(Recognizer<?> recognizer) {
jsonResult.put("lastName", result.getLastName());
jsonResult.put("localizedName", result.getLocalizedName());
jsonResult.put("maritalStatus", result.getMaritalStatus());
jsonResult.put("mothersName", result.getMothersName());
jsonResult.put("mrzResult", BlinkIDSerializationUtils.serializeMrzResult(result.getMrzResult()));
jsonResult.put("nationality", result.getNationality());
jsonResult.put("personalIdNumber", result.getPersonalIdNumber());
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:5.13.0@aar') {
implementation('com.microblink:blinkid:5.14.0@aar') {
transitive = true
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ -(NSDictionary *) serializeResult {
[jsonResult setValue:self.result.employer forKey:@"employer"];
[jsonResult setValue:[NSNumber numberWithBool:self.result.expired] forKey:@"expired"];
[jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"];
[jsonResult setValue:self.result.fathersName forKey:@"fathersName"];
[jsonResult setValue:self.result.firstName forKey:@"firstName"];
[jsonResult setValue:[MBBlinkIDSerializationUtils serializeImageAnalysisResult:self.result.frontImageAnalysisResult] forKey:@"frontImageAnalysisResult"];
[jsonResult setValue:[NSNumber numberWithInteger:(self.result.frontProcessingStatus + 1)] forKey:@"frontProcessingStatus"];
Expand All @@ -178,6 +179,7 @@ -(NSDictionary *) serializeResult {
[jsonResult setValue:self.result.lastName forKey:@"lastName"];
[jsonResult setValue:self.result.localizedName forKey:@"localizedName"];
[jsonResult setValue:self.result.maritalStatus forKey:@"maritalStatus"];
[jsonResult setValue:self.result.mothersName forKey:@"mothersName"];
[jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"];
[jsonResult setValue:self.result.nationality forKey:@"nationality"];
[jsonResult setValue:self.result.personalIdNumber forKey:@"personalIdNumber"];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ -(NSDictionary *) serializeResult {
[jsonResult setValue:self.result.employer forKey:@"employer"];
[jsonResult setValue:[NSNumber numberWithBool:self.result.expired] forKey:@"expired"];
[jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.faceImage] forKey:@"faceImage"];
[jsonResult setValue:self.result.fathersName forKey:@"fathersName"];
[jsonResult setValue:self.result.firstName forKey:@"firstName"];
[jsonResult setValue:[MBSerializationUtils encodeMBImage:self.result.fullDocumentImage] forKey:@"fullDocumentImage"];
[jsonResult setValue:self.result.fullName forKey:@"fullName"];
Expand All @@ -145,6 +146,7 @@ -(NSDictionary *) serializeResult {
[jsonResult setValue:self.result.lastName forKey:@"lastName"];
[jsonResult setValue:self.result.localizedName forKey:@"localizedName"];
[jsonResult setValue:self.result.maritalStatus forKey:@"maritalStatus"];
[jsonResult setValue:self.result.mothersName forKey:@"mothersName"];
[jsonResult setValue:[MBBlinkIDSerializationUtils serializeMrzResult:self.result.mrzResult] forKey:@"mrzResult"];
[jsonResult setValue:self.result.nationality forKey:@"nationality"];
[jsonResult setValue:self.result.personalIdNumber forKey:@"personalIdNumber"];
Expand Down
24 changes: 23 additions & 1 deletion BlinkID/www/blinkIdScanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ BlinkID.prototype.MrtdDocumentType = Object.freeze(
/** US Green Card */
GreenCard : 5,
/** Malaysian PASS type IMM13P */
MalaysianPassIMM13P : 6
MalaysianPassIMM13P : 6,
/** Border Crossing Card */
BorderCrossingCard: 7
}
);

Expand Down Expand Up @@ -2488,6 +2490,11 @@ function BlinkIdCombinedRecognizerResult(nativeResult) {
*/
this.faceImage = nativeResult.faceImage;

/**
* The father's name of the document owner.
*/
this.fathersName = nativeResult.fathersName;

/**
* The first name of the document owner.
*/
Expand Down Expand Up @@ -2543,6 +2550,11 @@ function BlinkIdCombinedRecognizerResult(nativeResult) {
*/
this.maritalStatus = nativeResult.maritalStatus;

/**
* The mother's name of the document owner.
*/
this.mothersName = nativeResult.mothersName;

/**
* The data extracted from the machine readable zone
*/
Expand Down Expand Up @@ -2872,6 +2884,11 @@ function BlinkIdRecognizerResult(nativeResult) {
*/
this.faceImage = nativeResult.faceImage;

/**
* The father's name of the document owner.
*/
this.fathersName = nativeResult.fathersName;

/**
* The first name of the document owner.
*/
Expand Down Expand Up @@ -2912,6 +2929,11 @@ function BlinkIdRecognizerResult(nativeResult) {
*/
this.maritalStatus = nativeResult.maritalStatus;

/**
* The mother's name of the document owner.
*/
this.mothersName = nativeResult.mothersName;

/**
* The data extracted from the machine readable zone
*/
Expand Down
3 changes: 3 additions & 0 deletions Release notes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 5.14.0
- Updated to [Android SDK v5.14.0](https://github.com/BlinkID/blinkid-android/releases/tag/v5.14.0) and [iOS SDK v5.14.0](https://github.com/BlinkID/blinkid-ios/releases/tag/v5.14.0)

## 5.13.1

- Fixed problem with building the iOS plugin
Expand Down
4 changes: 2 additions & 2 deletions sample_files/www/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ var app = {

// package name/bundleID com.microblink.sample
var licenseKeys = {
android: 'sRwAA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8aFZ1wBjegy5+3xZDUYHr9MTWBMiPNlaEyJDbyMHMC+nUwvhbVnkZfeiRrL3y',
ios: 'sRwAAAEVY29tLm1pY3JvYmxpbmsuc2FtcGxl1BIcP4FpSuS/38JVPF6LM3WzvI3u5tsXqekYSJBa5pkSGvzVxbBxu5PNgzZo+WYxRrjG39GyGE1CNnX8Bhvo39+0yFZ2pl/XD6MoXXRXOogVqOMBLf8yl+rxVbbnKzlcPE0n5pqHZWo8PGadYITOS42mezD/D7PCj6BrIyVV8TbVY1pFAqV3hcPARuKuqZhP/nmqOXlWgoRXRiQY7lP8rUG/0P7/bYNuFgVzNrMLpG/MlohcpWs5xEXxAFZtjsu7R/RaLK3gy3iqQiS93aFsPxvhS4duZxL0tvIk24UVLZKJGa8s1kjdInd6TwsXI/yjEU4GrEGy18pHNugU/O4LYJn0'
};

function buildResult(result, key) {
Expand Down

0 comments on commit 6c61bd0

Please sign in to comment.