@regulaforensics/cordova-plugin-document-reader-api 9.9.801-rc → 9.9.803-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/config.xml +1 -1
- package/example/package.json +1 -1
- package/package.json +1 -1
- package/plugin.xml +10 -11
- package/src/android/BluetoothUtil.kt +1 -1
- package/src/android/Config.kt +7 -3
- package/src/android/DocumentReader.kt +1 -1
- package/src/android/JSONConstructor.kt +4 -4
- package/src/android/Main.kt +3 -3
- package/src/android/Utils.kt +1 -1
- package/src/android/build.gradle +4 -4
- package/src/ios/RGLWConfig.m +4 -0
- package/www/DocumentReader.js +2 -0
package/example/config.xml
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
</platform>
|
|
16
16
|
<platform name="ios">
|
|
17
17
|
<resource-file src="www/db.dat" />
|
|
18
|
-
<preference name="deployment-target" value="
|
|
18
|
+
<preference name="deployment-target" value="15.0" />
|
|
19
19
|
<preference name="orientation" value="portrait" />
|
|
20
20
|
<allow-intent href="itms:*" />
|
|
21
21
|
<allow-intent href="itms-apps:*" />
|
package/example/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"author": "Regula Forensics Inc.",
|
|
14
14
|
"license": "commercial",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@regulaforensics/cordova-plugin-document-reader-api": "9.9.
|
|
16
|
+
"@regulaforensics/cordova-plugin-document-reader-api": "9.9.803-rc",
|
|
17
17
|
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.9.3492-rc",
|
|
18
18
|
"cordova-android": "15.0.0",
|
|
19
19
|
"cordova-ios": "8.1.1",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/cordova-plugin-document-reader-api",
|
|
3
|
-
"version": "9.9.
|
|
3
|
+
"version": "9.9.803-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.9.
|
|
2
|
+
<plugin id="@regulaforensics/cordova-plugin-document-reader-api" version="9.9.803-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>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<feature name="DocumentReader">
|
|
15
15
|
<param name="ios-package" value="RGLWDocumentReader" />
|
|
16
16
|
</feature>
|
|
17
|
-
<preference name="deployment-target" value="
|
|
17
|
+
<preference name="deployment-target" value="15.0" />
|
|
18
18
|
</config-file>
|
|
19
19
|
<header-file src="src/ios/RGLWDocumentReader.h" />
|
|
20
20
|
<source-file src="src/ios/RGLWDocumentReader.m" />
|
|
@@ -26,11 +26,10 @@
|
|
|
26
26
|
<source-file src="src/ios/RGLWMain.m" />
|
|
27
27
|
<podspec>
|
|
28
28
|
<config>
|
|
29
|
-
<source url="http://gitlab.regula.local/mobile-sdk/podspecs.git" />
|
|
30
29
|
<source url="https://github.com/regulaforensics/podspecs.git"/>
|
|
31
30
|
</config>
|
|
32
31
|
<pods>
|
|
33
|
-
<pod name="DocumentReaderStage" spec="9.9.
|
|
32
|
+
<pod name="DocumentReaderStage" spec="9.9.7062" />
|
|
34
33
|
</pods>
|
|
35
34
|
</podspec>
|
|
36
35
|
</platform>
|
|
@@ -39,15 +38,15 @@
|
|
|
39
38
|
<config-file parent="/*" target="res/xml/config.xml">
|
|
40
39
|
<preference name="GradlePluginKotlinEnabled" value="true" />
|
|
41
40
|
<feature name="DocumentReader">
|
|
42
|
-
<param name="android-package" value="com.regula.plugin.
|
|
41
|
+
<param name="android-package" value="com.regula.plugin.document.reader.DocumentReader" />
|
|
43
42
|
</feature>
|
|
44
43
|
</config-file>
|
|
45
44
|
<framework src="src/android/build.gradle" custom="true" type="gradleReference" />
|
|
46
|
-
<source-file src="src/android/DocumentReader.kt" target-dir="java/com.regula.plugin.
|
|
47
|
-
<source-file src="src/android/Main.kt" target-dir="java/com.regula.plugin.
|
|
48
|
-
<source-file src="src/android/JSONConstructor.kt" target-dir="java/com.regula.plugin.
|
|
49
|
-
<source-file src="src/android/Config.kt" target-dir="java/com.regula.plugin.
|
|
50
|
-
<source-file src="src/android/Utils.kt" target-dir="java/com.regula.plugin.
|
|
51
|
-
<source-file src="src/android/BluetoothUtil.kt" target-dir="java/com.regula.plugin.
|
|
45
|
+
<source-file src="src/android/DocumentReader.kt" target-dir="java/com.regula.plugin.document.reader" />
|
|
46
|
+
<source-file src="src/android/Main.kt" target-dir="java/com.regula.plugin.document.reader" />
|
|
47
|
+
<source-file src="src/android/JSONConstructor.kt" target-dir="java/com.regula.plugin.document.reader" />
|
|
48
|
+
<source-file src="src/android/Config.kt" target-dir="java/com.regula.plugin.document.reader" />
|
|
49
|
+
<source-file src="src/android/Utils.kt" target-dir="java/com.regula.plugin.document.reader" />
|
|
50
|
+
<source-file src="src/android/BluetoothUtil.kt" target-dir="java/com.regula.plugin.document.reader" />
|
|
52
51
|
</platform>
|
|
53
52
|
</plugin>
|
package/src/android/Config.kt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@file:Suppress("EnumValuesSoftDeprecate", "DEPRECATION")
|
|
2
2
|
|
|
3
|
-
package com.regula.plugin.
|
|
3
|
+
package com.regula.plugin.document.reader
|
|
4
4
|
|
|
5
5
|
import android.graphics.Matrix
|
|
6
6
|
import android.graphics.Paint
|
|
@@ -27,8 +27,8 @@ import com.regula.documentreader.api.params.rfid.dg.DTCDataGroup
|
|
|
27
27
|
import com.regula.documentreader.api.params.rfid.dg.DataGroups
|
|
28
28
|
import com.regula.documentreader.api.params.rfid.dg.EIDDataGroups
|
|
29
29
|
import com.regula.documentreader.api.params.rfid.dg.EPassportDataGroups
|
|
30
|
-
import com.regula.plugin.
|
|
31
|
-
import com.regula.plugin.
|
|
30
|
+
import com.regula.plugin.document.reader.Convert.toBase64
|
|
31
|
+
import com.regula.plugin.document.reader.Convert.toDrawable
|
|
32
32
|
import org.json.JSONArray
|
|
33
33
|
import org.json.JSONObject
|
|
34
34
|
|
|
@@ -495,6 +495,7 @@ fun setRfidScenario(rfidScenario: RfidScenario, opts: JSONObject) = opts.forEach
|
|
|
495
495
|
"mrzStrictCheck" -> rfidScenario.isMrzStrictCheck = v as Boolean
|
|
496
496
|
"loadCRLFromRemote" -> rfidScenario.isLoadCRLFromRemote = v as Boolean
|
|
497
497
|
"independentSODStatus" -> rfidScenario.isIndependentSODStatus = v as Boolean
|
|
498
|
+
"readUser" -> rfidScenario.isReadUser = v as Boolean
|
|
498
499
|
"signManagementAction" -> rfidScenario.signManagementAction = v.toInt()
|
|
499
500
|
"readingBuffer" -> rfidScenario.readingBuffer = v.toInt()
|
|
500
501
|
"onlineTAToSignDataType" -> rfidScenario.onlineTAToSignDataType = v.toInt()
|
|
@@ -515,6 +516,7 @@ fun setRfidScenario(rfidScenario: RfidScenario, opts: JSONObject) = opts.forEach
|
|
|
515
516
|
"documentNumber" -> rfidScenario.documentNumber = v as String
|
|
516
517
|
"dateOfBirth" -> rfidScenario.dateOfBirth = v as String
|
|
517
518
|
"dateOfExpiry" -> rfidScenario.dateOfExpiry = v as String
|
|
519
|
+
"defaultUserPIN" -> rfidScenario.defaultUserPIN = v as String
|
|
518
520
|
"ePassportDataGroups" -> setDataGroups(rfidScenario.ePassportDataGroups(), v as JSONObject)
|
|
519
521
|
"eIDDataGroups" -> setDataGroups(rfidScenario.eIDDataGroups(), v as JSONObject)
|
|
520
522
|
"eDLDataGroups" -> setDataGroups(rfidScenario.eDLDataGroups(), v as JSONObject)
|
|
@@ -561,6 +563,7 @@ fun getRfidScenario(rfidScenario: RfidScenario) = mapOf(
|
|
|
561
563
|
"mrzStrictCheck" to rfidScenario.isMrzStrictCheck,
|
|
562
564
|
"loadCRLFromRemote" to rfidScenario.isLoadCRLFromRemote,
|
|
563
565
|
"independentSODStatus" to rfidScenario.isIndependentSODStatus,
|
|
566
|
+
"readUser" to rfidScenario.isReadUser,
|
|
564
567
|
"signManagementAction" to rfidScenario.signManagementAction,
|
|
565
568
|
"readingBuffer" to rfidScenario.readingBuffer,
|
|
566
569
|
"onlineTAToSignDataType" to rfidScenario.onlineTAToSignDataType,
|
|
@@ -581,6 +584,7 @@ fun getRfidScenario(rfidScenario: RfidScenario) = mapOf(
|
|
|
581
584
|
"documentNumber" to rfidScenario.documentNumber,
|
|
582
585
|
"dateOfBirth" to rfidScenario.dateOfBirth,
|
|
583
586
|
"dateOfExpiry" to rfidScenario.dateOfExpiry,
|
|
587
|
+
"defaultUserPIN" to rfidScenario.defaultUserPIN,
|
|
584
588
|
"ePassportDataGroups" to getDataGroups(rfidScenario.ePassportDataGroups()),
|
|
585
589
|
"eIDDataGroups" to getDataGroups(rfidScenario.eIDDataGroups()),
|
|
586
590
|
"eDLDataGroups" to getDataGroups(rfidScenario.eDLDataGroups()),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@file:SuppressLint("MissingPermission")
|
|
2
2
|
@file:Suppress("unused", "EnumValuesSoftDeprecate", "UNCHECKED_CAST")
|
|
3
3
|
|
|
4
|
-
package com.regula.plugin.
|
|
4
|
+
package com.regula.plugin.document.reader
|
|
5
5
|
|
|
6
6
|
import android.annotation.SuppressLint
|
|
7
7
|
import android.graphics.Bitmap
|
|
@@ -115,9 +115,9 @@ import com.regula.documentreader.api.results.rfid.Validity
|
|
|
115
115
|
import com.regula.documentreader.api.results.rfid.Value
|
|
116
116
|
import org.json.JSONArray
|
|
117
117
|
import org.json.JSONObject
|
|
118
|
-
import com.regula.plugin.
|
|
119
|
-
import com.regula.plugin.
|
|
120
|
-
import com.regula.plugin.
|
|
118
|
+
import com.regula.plugin.document.reader.Convert.toBase64
|
|
119
|
+
import com.regula.plugin.document.reader.Convert.toBitmap
|
|
120
|
+
import com.regula.plugin.document.reader.Convert.toByteArray
|
|
121
121
|
|
|
122
122
|
fun generateCompletion(action: Int, results: DocumentReaderResults?, error: RegulaException?) = mapOf(
|
|
123
123
|
"action" to action,
|
package/src/android/Main.kt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@file:SuppressLint("MissingPermission")
|
|
2
2
|
@file:Suppress("EnumValuesSoftDeprecate")
|
|
3
3
|
|
|
4
|
-
package com.regula.plugin.
|
|
4
|
+
package com.regula.plugin.document.reader
|
|
5
5
|
|
|
6
6
|
import android.annotation.SuppressLint
|
|
7
7
|
import android.app.PendingIntent
|
|
@@ -47,8 +47,8 @@ import com.regula.documentreader.api.results.DocumentReaderResults.fromRawResult
|
|
|
47
47
|
import com.regula.documentreader.api.results.DocumentReaderScenario
|
|
48
48
|
import org.json.JSONArray
|
|
49
49
|
import org.json.JSONObject
|
|
50
|
-
import com.regula.plugin.
|
|
51
|
-
import com.regula.plugin.
|
|
50
|
+
import com.regula.plugin.document.reader.Convert.toBase64
|
|
51
|
+
import com.regula.plugin.document.reader.Convert.toByteArray
|
|
52
52
|
|
|
53
53
|
fun methodCall(method: String, callback: (Any?) -> Unit): Any = when (method) {
|
|
54
54
|
"getDocumentReaderIsReady" -> getDocumentReaderIsReady(callback)
|
package/src/android/Utils.kt
CHANGED
package/src/android/build.gradle
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
repositories {
|
|
2
|
-
maven {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
2
|
+
maven { url "https://maven.regulaforensics.com/RegulaDocumentReader" }
|
|
3
|
+
maven { url "https://maven.regulaforensics.com/RegulaDocumentReader/Beta" }
|
|
4
|
+
maven { url "https://maven.regulaforensics.com/RegulaDocumentReader/Nightly" }
|
|
5
|
+
maven { url "https://maven.regulaforensics.com/RegulaDocumentReader/Stage" }
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
dependencies {
|
package/src/ios/RGLWConfig.m
CHANGED
|
@@ -702,6 +702,7 @@
|
|
|
702
702
|
if(options[@"mrzStrictCheck"]) rfidScenario.mrzStrictCheck = options[@"mrzStrictCheck"];
|
|
703
703
|
if(options[@"loadCRLFromRemote"]) rfidScenario.loadCRLFromRemote = [options[@"loadCRLFromRemote"] boolValue];
|
|
704
704
|
if(options[@"independentSODStatus"]) rfidScenario.independentSODStatus = options[@"independentSODStatus"];
|
|
705
|
+
if(options[@"readUser"]) rfidScenario.readUser = options[@"readUser"];
|
|
705
706
|
|
|
706
707
|
// Int
|
|
707
708
|
if([options valueForKey:@"signManagementAction"] != nil)
|
|
@@ -741,6 +742,7 @@
|
|
|
741
742
|
if(options[@"documentNumber"]) rfidScenario.documentNumber = options[@"documentNumber"];
|
|
742
743
|
if(options[@"dateOfBirth"]) rfidScenario.dateOfBirth = options[@"dateOfBirth"];
|
|
743
744
|
if(options[@"dateOfExpiry"]) rfidScenario.dateOfExpiry = options[@"dateOfExpiry"];
|
|
745
|
+
if(options[@"defaultUserPIN"]) rfidScenario.defaultUserPIN = options[@"defaultUserPIN"];
|
|
744
746
|
|
|
745
747
|
// DataGroup
|
|
746
748
|
if([options valueForKey:@"ePassportDataGroups"] != nil)
|
|
@@ -794,6 +796,7 @@
|
|
|
794
796
|
result[@"mrzStrictCheck"] = rfidScenario.mrzStrictCheck;
|
|
795
797
|
result[@"loadCRLFromRemote"] = @(rfidScenario.loadCRLFromRemote);
|
|
796
798
|
result[@"independentSODStatus"] = rfidScenario.independentSODStatus;
|
|
799
|
+
result[@"readUser"] = rfidScenario.readUser;
|
|
797
800
|
|
|
798
801
|
// Int
|
|
799
802
|
result[@"signManagementAction"] = [NSNumber numberWithInteger:rfidScenario.signManagementAction];
|
|
@@ -818,6 +821,7 @@
|
|
|
818
821
|
result[@"documentNumber"] = rfidScenario.documentNumber;
|
|
819
822
|
result[@"dateOfBirth"] = rfidScenario.dateOfBirth;
|
|
820
823
|
result[@"dateOfExpiry"] = rfidScenario.dateOfExpiry;
|
|
824
|
+
result[@"defaultUserPIN"] = rfidScenario.defaultUserPIN;
|
|
821
825
|
|
|
822
826
|
// DataGroup
|
|
823
827
|
result[@"eDLDataGroups"] = [self getDataGroups:rfidScenario.eDLDataGroups];
|
package/www/DocumentReader.js
CHANGED
|
@@ -1955,6 +1955,7 @@ class RFIDScenario {
|
|
|
1955
1955
|
result.mrzStrictCheck = jsonObject["mrzStrictCheck"]
|
|
1956
1956
|
result.loadCRLFromRemote = jsonObject["loadCRLFromRemote"]
|
|
1957
1957
|
result.independentSODStatus = jsonObject["independentSODStatus"]
|
|
1958
|
+
result.readUser = jsonObject["readUser"]
|
|
1958
1959
|
result.readingBuffer = jsonObject["readingBuffer"]
|
|
1959
1960
|
result.onlineTAToSignDataType = jsonObject["onlineTAToSignDataType"]
|
|
1960
1961
|
result.defaultReadingBufferSize = jsonObject["defaultReadingBufferSize"]
|
|
@@ -1975,6 +1976,7 @@ class RFIDScenario {
|
|
|
1975
1976
|
result.documentNumber = jsonObject["documentNumber"]
|
|
1976
1977
|
result.dateOfBirth = jsonObject["dateOfBirth"]
|
|
1977
1978
|
result.dateOfExpiry = jsonObject["dateOfExpiry"]
|
|
1979
|
+
result.defaultUserPIN = jsonObject["defaultUserPIN"]
|
|
1978
1980
|
result.eDLDataGroups = EDLDataGroups.fromJson(jsonObject["eDLDataGroups"])
|
|
1979
1981
|
result.ePassportDataGroups = EPassportDataGroups.fromJson(jsonObject["ePassportDataGroups"])
|
|
1980
1982
|
result.eIDDataGroups = EIDDataGroups.fromJson(jsonObject["eIDDataGroups"])
|