@regulaforensics/cordova-plugin-document-reader-api 9.2.366-nightly → 9.2.368-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.
@@ -13,8 +13,8 @@
13
13
  "author": "Regula Forensics Inc.",
14
14
  "license": "commercial",
15
15
  "dependencies": {
16
- "@regulaforensics/cordova-plugin-document-reader-api": "9.2.366-nightly",
17
- "@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.2.1746-nightly",
16
+ "@regulaforensics/cordova-plugin-document-reader-api": "9.2.368-rc",
17
+ "@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.2.1747-rc",
18
18
  "cordova-android": "13.0.0",
19
19
  "cordova-ios": "7.1.1",
20
20
  "cordova-plugin-add-swift-support": "2.0.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/cordova-plugin-document-reader-api",
3
- "version": "9.2.366-nightly",
3
+ "version": "9.2.368-rc",
4
4
  "description": "Cordova plugin for reading and validation of identification documents (API framework)",
5
5
  "cordova": {
6
6
  "id": "@regulaforensics/cordova-plugin-document-reader-api",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
- <plugin id="@regulaforensics/cordova-plugin-document-reader-api" version="9.2.366-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/cordova-plugin-document-reader-api" version="9.2.368-rc" xmlns="http://apache.org/cordova/ns/plugins/1.0">
3
3
  <name>DocumentReaderApi</name>
4
4
  <description>Cordova plugin Document reader api</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.5766" />
32
+ <pod name="DocumentReaderStage" spec="9.2.5774" />
33
33
  </pods>
34
34
  </podspec>
35
35
  </platform>
@@ -1997,8 +1997,8 @@ fun generateDocumentRequestMDL(input: DocumentRequestMDL?): JSONObject? = input?
1997
1997
  fun documentRequest18013MDLFromJSON(input: JSONObject?) = input?.let {
1998
1998
  val result = DocumentRequest18013MDL()
1999
1999
 
2000
- if (it.has("docType")) result.setPrivateProperty("docType", it.getString("docType"))
2001
- if (it.has("namespaces")) result.setPrivateProperty("nameSpaceMDLs", it.getJSONArray("namespaces").toList(::nameSpaceMDLFromJSON))
2000
+ result.setPrivateProperty("docType", it.getString("docType"))
2001
+ result.setPrivateProperty("nameSpaceMDLs", it.getJSONArray("namespaces").toList(::nameSpaceMDLFromJSON))
2002
2002
  result.familyName = it.getIntOrNull("familyName")?.let { enm -> eMDLIntentToRetain.values()[enm] }
2003
2003
  result.givenName = it.getIntOrNull("givenName")?.let { enm -> eMDLIntentToRetain.values()[enm] }
2004
2004
  result.birthDate = it.getIntOrNull("birthDate")?.let { enm -> eMDLIntentToRetain.values()[enm] }
@@ -1,12 +1,12 @@
1
1
  repositories {
2
2
  maven {
3
- url "https://maven.regulaforensics.com/RegulaDocumentReader/Nightly"
3
+ url "https://maven.regulaforensics.com/RegulaDocumentReader/Stage"
4
4
  }
5
5
  }
6
6
 
7
7
  dependencies {
8
8
  //noinspection GradleDependency
9
- implementation ('com.regula.documentreader:api:9.2.12282'){
9
+ implementation ('com.regula.documentreader:api:9.2.12289'){
10
10
  transitive = true
11
11
  }
12
12
  }
@@ -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];
@@ -1888,18 +1888,6 @@ class DeviceEngagement {
1888
1888
  }
1889
1889
  }
1890
1890
 
1891
- class DeviceEngagementCompletion {
1892
- static fromJson(jsonObject) {
1893
- if (jsonObject == null) return null
1894
- const result = new DeviceEngagementCompletion()
1895
-
1896
- result.deviceEngagement = DeviceEngagement.fromJson(jsonObject["deviceEngagement"])
1897
- result.error = RegulaException.fromJson(jsonObject["error"])
1898
-
1899
- return result
1900
- }
1901
- }
1902
-
1903
1891
  class DeviceRetrievalMethod {
1904
1892
  static fromJson(jsonObject) {
1905
1893
  if (jsonObject == null) return null
@@ -4806,7 +4794,6 @@ DocumentReaderPlugin.DTCDataGroup = DTCDataGroup
4806
4794
  DocumentReaderPlugin.RFIDScenario = RFIDScenario
4807
4795
  DocumentReaderPlugin.PrepareProgress = PrepareProgress
4808
4796
  DocumentReaderPlugin.DeviceEngagement = DeviceEngagement
4809
- DocumentReaderPlugin.DeviceEngagementCompletion = DeviceEngagementCompletion
4810
4797
  DocumentReaderPlugin.DeviceRetrievalMethod = DeviceRetrievalMethod
4811
4798
  DocumentReaderPlugin.DataRetrieval = DataRetrieval
4812
4799
  DocumentReaderPlugin.DocumentRequestMDL = DocumentRequestMDL