@regulaforensics/document-reader 9.2.528-nightly → 9.2.532-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.
@@ -6,19 +6,19 @@
6
6
  "android": "scripts/android.sh"
7
7
  },
8
8
  "dependencies": {
9
- "@angular-devkit/build-angular": "^21.0.5",
10
- "@angular/cli": "^21.0.5",
11
- "@angular/common": "^21.0.8",
12
- "@angular/compiler-cli": "^21.0.8",
13
- "@angular/core": "^21.0.8",
14
- "@angular/forms": "^21.0.8",
15
- "@angular/platform-browser-dynamic": "^21.0.8",
16
- "@angular/router": "^21.0.8",
17
- "@ionic/angular": "^8.7.16",
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
- "@regulaforensics/document-reader": "9.2.528-nightly",
19
+ "@ionic/angular": "^8.7.11",
20
+ "@ionic/cordova-builders": "^12.3.0",
21
+ "@regulaforensics/document-reader": "9.2.532-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",
@@ -8,7 +8,7 @@
8
8
  "start": "expo start"
9
9
  },
10
10
  "dependencies": {
11
- "@regulaforensics/document-reader": "9.2.528-nightly",
11
+ "@regulaforensics/document-reader": "9.2.532-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",
@@ -9,13 +9,9 @@ static NSMutableDictionary<NSString*, NSString*>* _eventCallbackIds = nil;
9
9
  }
10
10
 
11
11
  UIViewController*(^RGLWRootViewController)(void) = ^UIViewController*(){
12
- for (UIScene *scene in UIApplication.sharedApplication.connectedScenes)
13
- if ([scene isKindOfClass:[UIWindowScene class]]) {
14
- UIWindowScene *windowScene = (UIWindowScene *)scene;
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
- if ([input valueForKey:@"docType"] != nil) {
2463
- [result setValue:[input valueForKey:@"docType"] forKey:@"docType"];
2464
- }
2465
- if ([input valueForKey:@"namespaces"] != nil) {
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.528-nightly",
3
+ "version": "9.2.532-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.528-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/document-reader" version="9.2.532-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="DocumentReaderNightly" spec="9.2.5750" />
32
+ <pod name="DocumentReaderStage" spec="9.2.5774" />
33
33
  </pods>
34
34
  </podspec>
35
35
  </platform>
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "..": {
15
15
  "name": "@regulaforensics/document-reader",
16
- "version": "9.2.528-nightly",
16
+ "version": "9.2.532-rc",
17
17
  "dev": true,
18
18
  "license": "commercial"
19
19
  },
@@ -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: MDLDeviceRetrieval);
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
- constructor();
54
-
55
- disableIntentToRetainValues(): void;
56
- enableIntentToRetainValues(): void;
53
+ disableIntentToRetainValues(): void
54
+ enableIntentToRetainValues(): void
57
55
 
58
56
  /**
59
57
  * Allows you to deserialize object.
@@ -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?: MDLDeviceRetrieval, engagement?: DeviceEngagement}): Promise<[action: DocReaderAction, results: Results | null, error: DocReaderException | null]>;
404
+ retrieveData(retrieval: DataRetrieval, options?: {withoutUI: MDLDeviceRetrieval, engagement?: DeviceEngagement}): Promise<[action: DocReaderAction, results: Results | null, error: DocReaderException | null]>;
405
405
  }
406
406
 
407
407
  /**