@regulaforensics/cordova-plugin-document-reader-api 9.2.363-nightly → 9.2.365-nightly
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/example/package.json +2 -2
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/src/android/JSONConstructor.kt +2 -2
- package/src/android/build.gradle +1 -1
- package/src/ios/RGLWJSONConstructor.m +14 -10
- package/www/DocumentReader.js +13 -0
package/example/package.json
CHANGED
|
@@ -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.
|
|
17
|
-
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.2.
|
|
16
|
+
"@regulaforensics/cordova-plugin-document-reader-api": "9.2.365-nightly",
|
|
17
|
+
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.2.1745-nightly",
|
|
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.
|
|
3
|
+
"version": "9.2.365-nightly",
|
|
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.
|
|
2
|
+
<plugin id="@regulaforensics/cordova-plugin-document-reader-api" version="9.2.365-nightly" 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.
|
|
32
|
+
<pod name="DocumentReaderNightly" spec="9.2.5750" />
|
|
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
|
-
result.setPrivateProperty("docType", it.getString("docType"))
|
|
2001
|
-
result.setPrivateProperty("nameSpaceMDLs", it.getJSONArray("namespaces").toList(::nameSpaceMDLFromJSON))
|
|
2000
|
+
if (it.has("docType")) result.setPrivateProperty("docType", it.getString("docType"))
|
|
2001
|
+
if (it.has("namespaces")) 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] }
|
package/src/android/build.gradle
CHANGED
|
@@ -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 =
|
|
163
|
-
if (input[@"licenseUpdate"]) config.licenseUpdateCheck = [input[@"licenseUpdate"] boolValue];
|
|
162
|
+
if (input[@"databasePath"]) config.databasePath = input[@"databasePath"];
|
|
164
163
|
if (input[@"licenseUpdateTimeout"]) config.licenseUpdateTimeout = input[@"licenseUpdateTimeout"];
|
|
164
|
+
if (input[@"licenseUpdate"]) config.licenseUpdateCheck = [input[@"licenseUpdate"] boolValue];
|
|
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[@"licenseUpdate"] = @(input.licenseUpdateCheck);
|
|
177
176
|
result[@"licenseUpdateTimeout"] = input.licenseUpdateTimeout;
|
|
177
|
+
result[@"licenseUpdate"] = @(input.licenseUpdateCheck);
|
|
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 =
|
|
188
|
-
if (input[@"licenseUpdate"]) config.licenseUpdateCheck = [input[@"licenseUpdate"] boolValue];
|
|
187
|
+
if (input[@"databasePath"]) config.databasePath = input[@"databasePath"];
|
|
189
188
|
if (input[@"licenseUpdateTimeout"]) config.licenseUpdateTimeout = input[@"licenseUpdateTimeout"];
|
|
189
|
+
if (input[@"licenseUpdate"]) config.licenseUpdateCheck = [input[@"licenseUpdate"] boolValue];
|
|
190
190
|
if (input[@"delayedNNLoad"]) config.delayedNNLoadEnabled = [input[@"delayedNNLoad"] boolValue];
|
|
191
191
|
|
|
192
192
|
return config;
|
|
@@ -2459,12 +2459,16 @@ static NSMutableArray* weakReferencesHolder;
|
|
|
2459
2459
|
if(input == nil) return nil;
|
|
2460
2460
|
RGLDocumentRequest18013MDL* result = [RGLDocumentRequest18013MDL new];
|
|
2461
2461
|
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
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"];
|
|
2466
2471
|
}
|
|
2467
|
-
[result setValue:nameSpaces forKey:@"nameSpaces"];
|
|
2468
2472
|
if (input[@"familyName"]) result.familyName = [input[@"familyName"] integerValue];
|
|
2469
2473
|
if (input[@"givenName"]) result.givenName = [input[@"givenName"] integerValue];
|
|
2470
2474
|
if (input[@"birthDate"]) result.birthDate = [input[@"birthDate"] integerValue];
|
package/www/DocumentReader.js
CHANGED
|
@@ -1888,6 +1888,18 @@ 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
|
+
|
|
1891
1903
|
class DeviceRetrievalMethod {
|
|
1892
1904
|
static fromJson(jsonObject) {
|
|
1893
1905
|
if (jsonObject == null) return null
|
|
@@ -4794,6 +4806,7 @@ DocumentReaderPlugin.DTCDataGroup = DTCDataGroup
|
|
|
4794
4806
|
DocumentReaderPlugin.RFIDScenario = RFIDScenario
|
|
4795
4807
|
DocumentReaderPlugin.PrepareProgress = PrepareProgress
|
|
4796
4808
|
DocumentReaderPlugin.DeviceEngagement = DeviceEngagement
|
|
4809
|
+
DocumentReaderPlugin.DeviceEngagementCompletion = DeviceEngagementCompletion
|
|
4797
4810
|
DocumentReaderPlugin.DeviceRetrievalMethod = DeviceRetrievalMethod
|
|
4798
4811
|
DocumentReaderPlugin.DataRetrieval = DataRetrieval
|
|
4799
4812
|
DocumentReaderPlugin.DocumentRequestMDL = DocumentRequestMDL
|