@regulaforensics/cordova-plugin-document-reader-api 9.10.901-rc → 9.10.903-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.
- package/example/package.json +2 -2
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/src/android/Main.kt +5 -5
- package/www/DocumentReader.js +6 -6
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.10.
|
|
17
|
-
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.10.
|
|
16
|
+
"@regulaforensics/cordova-plugin-document-reader-api": "9.10.903-rc",
|
|
17
|
+
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.10.3927-rc",
|
|
18
18
|
"cordova-android": "15.0.0",
|
|
19
19
|
"cordova-ios": "8.1.1",
|
|
20
20
|
"cordova-plugin-camera": "8.0.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/cordova-plugin-document-reader-api",
|
|
3
|
-
"version": "9.10.
|
|
3
|
+
"version": "9.10.903-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.10.
|
|
2
|
+
<plugin id="@regulaforensics/cordova-plugin-document-reader-api" version="9.10.903-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/regulaforensics/podspecs.git"/>
|
|
30
30
|
</config>
|
|
31
31
|
<pods>
|
|
32
|
-
<pod name="DocumentReaderStage" spec="9.10.
|
|
32
|
+
<pod name="DocumentReaderStage" spec="9.10.7309" />
|
|
33
33
|
</pods>
|
|
34
34
|
</podspec>
|
|
35
35
|
</platform>
|
package/src/android/Main.kt
CHANGED
|
@@ -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/www/DocumentReader.js
CHANGED
|
@@ -2198,12 +2198,12 @@ class RFIDConfig {
|
|
|
2198
2198
|
if (jsonObject == null) return null
|
|
2199
2199
|
const result = new RFIDConfig()
|
|
2200
2200
|
|
|
2201
|
-
result.
|
|
2202
|
-
result.
|
|
2203
|
-
result.
|
|
2204
|
-
result.
|
|
2205
|
-
result.
|
|
2206
|
-
result.
|
|
2201
|
+
result.paCertificates = jsonObject["paCertificates"]
|
|
2202
|
+
result.taCertificates = jsonObject["taCertificates"]
|
|
2203
|
+
result.taSignature = jsonObject["taSignature"]
|
|
2204
|
+
result.aaChallenge = jsonObject["aaChallenge"]
|
|
2205
|
+
result.paceProtocol = jsonObject["paceProtocol"]
|
|
2206
|
+
result.caProtocol = jsonObject["caProtocol"]
|
|
2207
2207
|
|
|
2208
2208
|
return result
|
|
2209
2209
|
}
|