@regulaforensics/react-native-document-reader-api 9.10.908-rc → 9.10.910-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.
|
@@ -14,6 +14,6 @@ Pod::Spec.new do |s|
|
|
|
14
14
|
s.source = { :http => 'file:' + __dir__ }
|
|
15
15
|
s.ios.deployment_target = '16.0'
|
|
16
16
|
s.source_files = "ios/*.{h,m}"
|
|
17
|
-
s.dependency 'DocumentReaderStage', '9.10.
|
|
17
|
+
s.dependency 'DocumentReaderStage', '9.10.7309'
|
|
18
18
|
s.dependency 'React'
|
|
19
19
|
end
|
|
@@ -565,23 +565,23 @@ fun getRfidReaderRequest(config: JSONObject? = null): IRfidReaderRequest {
|
|
|
565
565
|
val result = IRfidReaderRequest()
|
|
566
566
|
if (config == null) return result
|
|
567
567
|
|
|
568
|
-
if (config.
|
|
568
|
+
if (config.getBooleanOrNull("paCertificates") == true) result.setPACertificates { serialNumber, issuer, completion ->
|
|
569
569
|
paCertificateCompletion = completion
|
|
570
570
|
sendEvent(paCertificateCompletionEvent, generatePACertificateCompletion(serialNumber, issuer))
|
|
571
571
|
}
|
|
572
|
-
if (config.
|
|
572
|
+
if (config.getBooleanOrNull("taCertificates") == true) result.setTACertificates { keyCAR, completion ->
|
|
573
573
|
taCertificateCompletion = completion
|
|
574
574
|
sendEvent(taCertificateCompletionEvent, keyCAR)
|
|
575
575
|
}
|
|
576
|
-
if (config.
|
|
576
|
+
if (config.getBooleanOrNull("taSignature") == true) result.setTASignature { challenge, completion ->
|
|
577
577
|
taSignatureCompletion = completion
|
|
578
578
|
sendEvent(taSignatureCompletionEvent, generateTAChallenge(challenge))
|
|
579
579
|
}
|
|
580
|
-
if (config.
|
|
580
|
+
if (config.getBooleanOrNull("aaChallenge") == true) result.setRfidAaChallenge { challenge, completion ->
|
|
581
581
|
aaChallengeCompletion = completion
|
|
582
582
|
sendEvent(aaChallengeCompletionEvent, challenge)
|
|
583
583
|
}
|
|
584
|
-
if (config.
|
|
584
|
+
if (config.getBooleanOrNull("paceProtocol") == true || config.getBooleanOrNull("caProtocol") == true) result.setRfidAccessControl(object : IRfidAccessControl {
|
|
585
585
|
override fun onRequestPaceProtocol(list: List<PaceProtocol?>, completion: IPaceProtocolCompletion) {
|
|
586
586
|
paceProtocolCompletion = completion
|
|
587
587
|
sendEvent(paceProtocolCompletionEvent, list.toJson(::generatePaceProtocol))
|
package/example/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"test": "jest"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@regulaforensics/react-native-document-reader-api": "9.10.
|
|
13
|
+
"@regulaforensics/react-native-document-reader-api": "9.10.910-rc",
|
|
14
14
|
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "9.10.3860-rc",
|
|
15
15
|
"@rneui/base": "4.0.0-rc.7",
|
|
16
16
|
"@rneui/themed": "4.0.0-rc.7",
|
package/index.d.ts
CHANGED
|
@@ -3488,23 +3488,23 @@ export class CAProtocol {
|
|
|
3488
3488
|
}
|
|
3489
3489
|
|
|
3490
3490
|
export class RFIDConfig {
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3491
|
+
paCertificates?: boolean
|
|
3492
|
+
taCertificates?: boolean
|
|
3493
|
+
taSignature?: boolean
|
|
3494
|
+
aaChallenge?: boolean
|
|
3495
|
+
paceProtocol?: boolean
|
|
3496
|
+
caProtocol?: boolean
|
|
3497
3497
|
|
|
3498
3498
|
static fromJson(jsonObject?: any): RFIDConfig | undefined {
|
|
3499
3499
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
3500
3500
|
const result = new RFIDConfig
|
|
3501
3501
|
|
|
3502
|
-
result.
|
|
3503
|
-
result.
|
|
3504
|
-
result.
|
|
3505
|
-
result.
|
|
3506
|
-
result.
|
|
3507
|
-
result.
|
|
3502
|
+
result.paCertificates = jsonObject["paCertificates"]
|
|
3503
|
+
result.taCertificates = jsonObject["taCertificates"]
|
|
3504
|
+
result.taSignature = jsonObject["taSignature"]
|
|
3505
|
+
result.aaChallenge = jsonObject["aaChallenge"]
|
|
3506
|
+
result.paceProtocol = jsonObject["paceProtocol"]
|
|
3507
|
+
result.caProtocol = jsonObject["caProtocol"]
|
|
3508
3508
|
|
|
3509
3509
|
return result
|
|
3510
3510
|
}
|
package/index.js
CHANGED
|
@@ -2273,12 +2273,12 @@ export class RFIDConfig {
|
|
|
2273
2273
|
if (jsonObject == null) return null
|
|
2274
2274
|
const result = new RFIDConfig()
|
|
2275
2275
|
|
|
2276
|
-
result.
|
|
2277
|
-
result.
|
|
2278
|
-
result.
|
|
2279
|
-
result.
|
|
2280
|
-
result.
|
|
2281
|
-
result.
|
|
2276
|
+
result.paCertificates = jsonObject["paCertificates"]
|
|
2277
|
+
result.taCertificates = jsonObject["taCertificates"]
|
|
2278
|
+
result.taSignature = jsonObject["taSignature"]
|
|
2279
|
+
result.aaChallenge = jsonObject["aaChallenge"]
|
|
2280
|
+
result.paceProtocol = jsonObject["paceProtocol"]
|
|
2281
|
+
result.caProtocol = jsonObject["caProtocol"]
|
|
2282
2282
|
|
|
2283
2283
|
return result
|
|
2284
2284
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/react-native-document-reader-api",
|
|
3
|
-
"version": "9.10.
|
|
3
|
+
"version": "9.10.910-rc",
|
|
4
4
|
"description": "React Native module for reading and validation of identification documents (API framework)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|