@regulaforensics/react-native-document-reader-api 9.2.390-nightly → 9.2.392-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/RNDocumentReaderApi.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +2 -2
- package/example/package.json +2 -2
- package/index.d.ts +16 -1
- package/index.js +12 -0
- package/ios/RGLWJSONConstructor.m +14 -10
- package/package.json +1 -1
|
@@ -14,6 +14,6 @@ Pod::Spec.new do |s|
|
|
|
14
14
|
s.source = { :http => 'file:' + __dir__ }
|
|
15
15
|
s.ios.deployment_target = '13.0'
|
|
16
16
|
s.source_files = "ios/*.{h,m}"
|
|
17
|
-
s.dependency 'DocumentReaderNightly', '9.2.
|
|
17
|
+
s.dependency 'DocumentReaderNightly', '9.2.5750'
|
|
18
18
|
s.dependency 'React'
|
|
19
19
|
end
|
package/android/build.gradle
CHANGED
|
@@ -29,7 +29,7 @@ dependencies {
|
|
|
29
29
|
//noinspection GradleDynamicVersion
|
|
30
30
|
implementation 'com.facebook.react:react-native:+'
|
|
31
31
|
//noinspection GradleDependency
|
|
32
|
-
implementation('com.regula.documentreader:api:9.2.
|
|
32
|
+
implementation('com.regula.documentreader:api:9.2.12279') {
|
|
33
33
|
transitive = true
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -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/example/package.json
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"test": "jest"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@regulaforensics/react-native-document-reader-api": "9.2.
|
|
14
|
-
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "9.2.
|
|
13
|
+
"@regulaforensics/react-native-document-reader-api": "9.2.392-nightly",
|
|
14
|
+
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "9.2.1740-nightly",
|
|
15
15
|
"@rneui/base": "4.0.0-rc.7",
|
|
16
16
|
"@rneui/themed": "4.0.0-rc.7",
|
|
17
17
|
"react": "19.0.0",
|
package/index.d.ts
CHANGED
|
@@ -3023,6 +3023,21 @@ export class DeviceEngagement {
|
|
|
3023
3023
|
}
|
|
3024
3024
|
}
|
|
3025
3025
|
|
|
3026
|
+
export class DeviceEngagementCompletion {
|
|
3027
|
+
deviceEngagement?: DeviceEngagement
|
|
3028
|
+
error?: RegulaException
|
|
3029
|
+
|
|
3030
|
+
static fromJson(jsonObject?: any): DeviceEngagementCompletion | undefined {
|
|
3031
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
3032
|
+
const result = new DeviceEngagementCompletion
|
|
3033
|
+
|
|
3034
|
+
result.deviceEngagement = DeviceEngagement.fromJson(jsonObject["deviceEngagement"])
|
|
3035
|
+
result.error = RegulaException.fromJson(jsonObject["error"])
|
|
3036
|
+
|
|
3037
|
+
return result
|
|
3038
|
+
}
|
|
3039
|
+
}
|
|
3040
|
+
|
|
3026
3041
|
export class DeviceRetrievalMethod {
|
|
3027
3042
|
type?: number
|
|
3028
3043
|
version?: number
|
|
@@ -3053,7 +3068,7 @@ export class DeviceRetrievalMethod {
|
|
|
3053
3068
|
export class DataRetrieval {
|
|
3054
3069
|
deviceRetrieval?: number
|
|
3055
3070
|
docRequestPreset?: number
|
|
3056
|
-
intentToRetain?:
|
|
3071
|
+
intentToRetain?: number
|
|
3057
3072
|
requests?: any[]
|
|
3058
3073
|
|
|
3059
3074
|
static fromJson(jsonObject?: any): DataRetrieval | undefined {
|
package/index.js
CHANGED
|
@@ -1963,6 +1963,18 @@ export class DeviceEngagement {
|
|
|
1963
1963
|
}
|
|
1964
1964
|
}
|
|
1965
1965
|
|
|
1966
|
+
export class DeviceEngagementCompletion {
|
|
1967
|
+
static fromJson(jsonObject) {
|
|
1968
|
+
if (jsonObject == null) return null
|
|
1969
|
+
const result = new DeviceEngagementCompletion()
|
|
1970
|
+
|
|
1971
|
+
result.deviceEngagement = DeviceEngagement.fromJson(jsonObject["deviceEngagement"])
|
|
1972
|
+
result.error = RegulaException.fromJson(jsonObject["error"])
|
|
1973
|
+
|
|
1974
|
+
return result
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1966
1978
|
export class DeviceRetrievalMethod {
|
|
1967
1979
|
static fromJson(jsonObject) {
|
|
1968
1980
|
if (jsonObject == null) return null
|
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/react-native-document-reader-api",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.392-nightly",
|
|
4
4
|
"description": "React Native module for reading and validation of identification documents (API framework)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|