@regulaforensics/document-reader 9.2.540-nightly → 9.2.541-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RNDocumentReader.podspec +2 -2
- package/android/build.gradle +2 -2
- package/android/cordova.gradle +2 -2
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +2 -2
- package/examples/capacitor/package.json +1 -1
- package/examples/ionic/package-lock.json +2411 -2404
- package/examples/ionic/package.json +11 -11
- package/examples/react_native/package-lock.json +6 -6
- package/examples/react_native/package.json +1 -1
- package/ios/CVDDocumentReader.m +3 -7
- package/ios/RGLWJSONConstructor.m +10 -14
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/package-lock.json +1 -1
- package/www/capacitor/engagement/DataRetrieval.js +1 -1
- package/www/cordova.js +1 -1
- package/www/react-native/engagement/DataRetrieval.js +1 -1
- package/www/types/engagement/DataRetrieval.d.ts +1 -1
- package/www/types/engagement/DocumentRequestMDL.d.ts +2 -4
- package/www/types/index.d.ts +1 -1
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@angular-devkit/build-angular": "^21.1
|
|
10
|
-
"@angular/cli": "^21.1
|
|
11
|
-
"@angular/common": "^21.
|
|
12
|
-
"@angular/compiler-cli": "^21.
|
|
13
|
-
"@angular/core": "^21.
|
|
14
|
-
"@angular/forms": "^21.
|
|
15
|
-
"@angular/platform-browser-dynamic": "^21.
|
|
16
|
-
"@angular/router": "^21.
|
|
17
|
-
"@ionic/angular": "^8.7.17",
|
|
18
|
-
"@ionic/cordova-builders": "^12.3.0",
|
|
9
|
+
"@angular-devkit/build-angular": "^21.0.1",
|
|
10
|
+
"@angular/cli": "^21.0.1",
|
|
11
|
+
"@angular/common": "^21.0.2",
|
|
12
|
+
"@angular/compiler-cli": "^21.0.2",
|
|
13
|
+
"@angular/core": "^21.0.2",
|
|
14
|
+
"@angular/forms": "^21.0.2",
|
|
15
|
+
"@angular/platform-browser-dynamic": "^21.0.2",
|
|
16
|
+
"@angular/router": "^21.0.2",
|
|
19
17
|
"@awesome-cordova-plugins/camera": "^8.1.0",
|
|
20
18
|
"@awesome-cordova-plugins/file": "^8.1.0",
|
|
21
|
-
"@
|
|
19
|
+
"@ionic/angular": "^8.7.11",
|
|
20
|
+
"@ionic/cordova-builders": "^12.3.0",
|
|
21
|
+
"@regulaforensics/document-reader": "9.2.541-rc",
|
|
22
22
|
"@regulaforensics/document-reader-core-fullauthrfid": "9.1.1281",
|
|
23
23
|
"@regulaforensics/document-reader-btdevice": "9.1.35",
|
|
24
24
|
"cordova-android": "^14.0.1",
|
|
@@ -8116,9 +8116,9 @@
|
|
|
8116
8116
|
}
|
|
8117
8117
|
},
|
|
8118
8118
|
"node_modules/tar": {
|
|
8119
|
-
"version": "7.5.
|
|
8120
|
-
"resolved": "https://registry.npmjs.org/tar/-/tar-7.5.
|
|
8121
|
-
"integrity": "sha512-
|
|
8119
|
+
"version": "7.5.2",
|
|
8120
|
+
"resolved": "https://registry.npmjs.org/tar/-/tar-7.5.2.tgz",
|
|
8121
|
+
"integrity": "sha512-7NyxrTE4Anh8km8iEy7o0QYPs+0JKBTj5ZaqHg6B39erLg0qYXN3BijtShwbsNSvQ+LN75+KV+C4QR/f6Gwnpg==",
|
|
8122
8122
|
"license": "BlueOak-1.0.0",
|
|
8123
8123
|
"dependencies": {
|
|
8124
8124
|
"@isaacs/fs-minipass": "^4.0.0",
|
|
@@ -8317,9 +8317,9 @@
|
|
|
8317
8317
|
}
|
|
8318
8318
|
},
|
|
8319
8319
|
"node_modules/undici": {
|
|
8320
|
-
"version": "6.
|
|
8321
|
-
"resolved": "https://registry.npmjs.org/undici/-/undici-6.
|
|
8322
|
-
"integrity": "sha512-
|
|
8320
|
+
"version": "6.22.0",
|
|
8321
|
+
"resolved": "https://registry.npmjs.org/undici/-/undici-6.22.0.tgz",
|
|
8322
|
+
"integrity": "sha512-hU/10obOIu62MGYjdskASR3CUAiYaFTtC9Pa6vHyf//mAipSvSQg6od2CnJswq7fvzNS3zJhxoRkgNVaHurWKw==",
|
|
8323
8323
|
"license": "MIT",
|
|
8324
8324
|
"engines": {
|
|
8325
8325
|
"node": ">=18.17"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"start": "expo start"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@regulaforensics/document-reader": "9.2.
|
|
11
|
+
"@regulaforensics/document-reader": "9.2.541-rc",
|
|
12
12
|
"@regulaforensics/document-reader-core-fullauthrfid": "9.1.1281",
|
|
13
13
|
"@regulaforensics/document-reader-btdevice": "9.1.35",
|
|
14
14
|
"react-native": "^0.81.4",
|
package/ios/CVDDocumentReader.m
CHANGED
|
@@ -9,13 +9,9 @@ static NSMutableDictionary<NSString*, NSString*>* _eventCallbackIds = nil;
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
UIViewController*(^RGLWRootViewController)(void) = ^UIViewController*(){
|
|
12
|
-
for (
|
|
13
|
-
if (
|
|
14
|
-
|
|
15
|
-
for (UIWindow *window in windowScene.windows)
|
|
16
|
-
if (window.isKeyWindow)
|
|
17
|
-
return window.rootViewController;
|
|
18
|
-
}
|
|
12
|
+
for (UIWindow *window in UIApplication.sharedApplication.windows)
|
|
13
|
+
if (window.isKeyWindow)
|
|
14
|
+
return window.rootViewController;
|
|
19
15
|
return nil;
|
|
20
16
|
};
|
|
21
17
|
|
|
@@ -159,9 +159,9 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
159
159
|
if (!input[@"license"]) return nil;
|
|
160
160
|
RGLConfig *config = [[RGLConfig alloc] initWithLicenseData:[self base64Decode: input[@"license"]]];
|
|
161
161
|
|
|
162
|
-
if (input[@"databasePath"]) config.databasePath = input[@"databasePath"];
|
|
163
|
-
if (input[@"licenseUpdateTimeout"]) config.licenseUpdateTimeout = input[@"licenseUpdateTimeout"];
|
|
162
|
+
if (input[@"databasePath"]) config.databasePath = [[NSBundle mainBundle] pathForResource:input[@"databasePath"] ofType:nil];
|
|
164
163
|
if (input[@"licenseUpdate"]) config.licenseUpdateCheck = [input[@"licenseUpdate"] boolValue];
|
|
164
|
+
if (input[@"licenseUpdateTimeout"]) config.licenseUpdateTimeout = input[@"licenseUpdateTimeout"];
|
|
165
165
|
if (input[@"delayedNNLoad"]) config.delayedNNLoadEnabled = [input[@"delayedNNLoad"] boolValue];
|
|
166
166
|
|
|
167
167
|
return config;
|
|
@@ -173,8 +173,8 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
173
173
|
|
|
174
174
|
result[@"license"] = [self base64Encode: input.licenseData];
|
|
175
175
|
result[@"databasePath"] = input.databasePath;
|
|
176
|
-
result[@"licenseUpdateTimeout"] = input.licenseUpdateTimeout;
|
|
177
176
|
result[@"licenseUpdate"] = @(input.licenseUpdateCheck);
|
|
177
|
+
result[@"licenseUpdateTimeout"] = input.licenseUpdateTimeout;
|
|
178
178
|
result[@"delayedNNLoad"] = @(input.delayedNNLoadEnabled);
|
|
179
179
|
|
|
180
180
|
return result;
|
|
@@ -184,9 +184,9 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
184
184
|
if (!input) return nil;
|
|
185
185
|
RGLBleConfig *config = [[RGLBleConfig alloc] initWithBluetooth:bluetooth];
|
|
186
186
|
|
|
187
|
-
if (input[@"databasePath"]) config.databasePath = input[@"databasePath"];
|
|
188
|
-
if (input[@"licenseUpdateTimeout"]) config.licenseUpdateTimeout = input[@"licenseUpdateTimeout"];
|
|
187
|
+
if (input[@"databasePath"]) config.databasePath = [[NSBundle mainBundle] pathForResource:input[@"databasePath"] ofType:nil];
|
|
189
188
|
if (input[@"licenseUpdate"]) config.licenseUpdateCheck = [input[@"licenseUpdate"] boolValue];
|
|
189
|
+
if (input[@"licenseUpdateTimeout"]) config.licenseUpdateTimeout = input[@"licenseUpdateTimeout"];
|
|
190
190
|
if (input[@"delayedNNLoad"]) config.delayedNNLoadEnabled = [input[@"delayedNNLoad"] boolValue];
|
|
191
191
|
|
|
192
192
|
return config;
|
|
@@ -2459,16 +2459,12 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
2459
2459
|
if(input == nil) return nil;
|
|
2460
2460
|
RGLDocumentRequest18013MDL* result = [RGLDocumentRequest18013MDL new];
|
|
2461
2461
|
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
NSMutableArray<RGLNameSpaceMDL*>* nameSpaces = [NSMutableArray new];
|
|
2467
|
-
for(NSDictionary* item in [input valueForKey:@"namespaces"]){
|
|
2468
|
-
[nameSpaces addObject:[self nameSpaceMDLFromJson: item]];
|
|
2469
|
-
}
|
|
2470
|
-
[result setValue:nameSpaces forKey:@"nameSpaces"];
|
|
2462
|
+
[result setValue:[input valueForKey:@"docType"] forKey:@"docType"];
|
|
2463
|
+
NSMutableArray<RGLNameSpaceMDL*>* nameSpaces = [NSMutableArray new];
|
|
2464
|
+
for(NSDictionary* item in [input valueForKey:@"namespaces"]){
|
|
2465
|
+
[nameSpaces addObject:[self nameSpaceMDLFromJson: item]];
|
|
2471
2466
|
}
|
|
2467
|
+
[result setValue:nameSpaces forKey:@"nameSpaces"];
|
|
2472
2468
|
if (input[@"familyName"]) result.familyName = [input[@"familyName"] integerValue];
|
|
2473
2469
|
if (input[@"givenName"]) result.givenName = [input[@"givenName"] integerValue];
|
|
2474
2470
|
if (input[@"birthDate"]) result.birthDate = [input[@"birthDate"] integerValue];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/document-reader",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.541-rc",
|
|
4
4
|
"description": "This is an npm module for Regula Document Reader SDK. It allows you to read various kinds of identification documents using your phone's camera.",
|
|
5
5
|
"main": "www/react-native/index.js",
|
|
6
6
|
"module": "www/capacitor/index.js",
|
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="@regulaforensics/document-reader" version="9.2.
|
|
2
|
+
<plugin id="@regulaforensics/document-reader" version="9.2.541-rc" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
3
3
|
<name>DocumentReader</name>
|
|
4
4
|
<description>Cordova plugin for Regula Document Reader SDK</description>
|
|
5
5
|
<license>commercial</license>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<source url="https://github.com/CocoaPods/Specs.git" />
|
|
30
30
|
</config>
|
|
31
31
|
<pods>
|
|
32
|
-
<pod name="
|
|
32
|
+
<pod name="DocumentReaderStage" spec="9.2.5783" />
|
|
33
33
|
</pods>
|
|
34
34
|
</podspec>
|
|
35
35
|
</platform>
|
package/test/package-lock.json
CHANGED
package/www/cordova.js
CHANGED
|
@@ -2,7 +2,7 @@ import { DocumentRequestMDL } from "./DocumentRequestMDL";
|
|
|
2
2
|
import { MDLIntentToRetain } from "./NameSpaceMDL";
|
|
3
3
|
|
|
4
4
|
export declare class DataRetrieval {
|
|
5
|
-
constructor(deviceRetrieval:
|
|
5
|
+
constructor(deviceRetrieval: MDLDocRequestPreset);
|
|
6
6
|
|
|
7
7
|
setDocRequestPreset(docRequestPreset: MDLDocRequestPreset, intentToRetain: MDLIntentToRetain): void
|
|
8
8
|
addDocRequest(request: DocumentRequestMDL): void;
|
|
@@ -50,10 +50,8 @@ export declare class DocumentRequest18013MDL extends DocumentRequestMDL {
|
|
|
50
50
|
givenNameNationalCharacter? : MDLIntentToRetain;
|
|
51
51
|
signatureUsualMark? : MDLIntentToRetain;
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
disableIntentToRetainValues(): void;
|
|
56
|
-
enableIntentToRetainValues(): void;
|
|
53
|
+
disableIntentToRetainValues(): void
|
|
54
|
+
enableIntentToRetainValues(): void
|
|
57
55
|
|
|
58
56
|
/**
|
|
59
57
|
* Allows you to deserialize object.
|
package/www/types/index.d.ts
CHANGED
|
@@ -401,7 +401,7 @@ export class DocumentReader {
|
|
|
401
401
|
*
|
|
402
402
|
* @param engagement - Required for @param withoutUI = `null` or {@link MDLDeviceRetrieval.BLE}. Not needed for {@link MDLDeviceRetrieval.NFC}
|
|
403
403
|
*/
|
|
404
|
-
retrieveData(retrieval: DataRetrieval, options?: {withoutUI
|
|
404
|
+
retrieveData(retrieval: DataRetrieval, options?: {withoutUI: MDLDeviceRetrieval, engagement?: DeviceEngagement}): Promise<[action: DocReaderAction, results: Results | null, error: DocReaderException | null]>;
|
|
405
405
|
}
|
|
406
406
|
|
|
407
407
|
/**
|