@regulaforensics/cordova-plugin-document-reader-api 9.10.902-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 +1 -1
- package/src/android/Main.kt +5 -5
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>
|
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))
|