@regulaforensics/react-native-document-reader-api 9.9.805-nightly → 9.9.818-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/RNDocumentReaderApi.podspec +2 -2
- package/android/build.gradle +6 -5
- package/android/src/main/AndroidManifest.xml +1 -1
- package/android/src/main/java/com/regula/plugin/{documentreader → document/reader}/BluetoothUtil.kt +1 -1
- package/android/src/main/java/com/regula/plugin/{documentreader → document/reader}/Config.kt +7 -3
- package/android/src/main/java/com/regula/plugin/{documentreader → document/reader}/JSONConstructor.kt +4 -4
- package/android/src/main/java/com/regula/plugin/{documentreader → document/reader}/Main.kt +3 -3
- package/android/src/main/java/com/regula/plugin/{documentreader → document/reader}/RNRegulaDocumentReaderModule.kt +1 -1
- package/android/src/main/java/com/regula/plugin/{documentreader → document/reader}/Utils.kt +1 -1
- package/example/package-lock.json +7 -7
- package/example/package.json +2 -2
- package/index.d.ts +4 -0
- package/index.js +2 -0
- package/ios/RGLWConfig.m +4 -0
- package/package.json +1 -1
|
@@ -12,8 +12,8 @@ Pod::Spec.new do |s|
|
|
|
12
12
|
s.homepage = 'https://regulaforensics.com'
|
|
13
13
|
|
|
14
14
|
s.source = { :http => 'file:' + __dir__ }
|
|
15
|
-
s.ios.deployment_target = '
|
|
15
|
+
s.ios.deployment_target = '15.0'
|
|
16
16
|
s.source_files = "ios/*.{h,m}"
|
|
17
|
-
s.dependency '
|
|
17
|
+
s.dependency 'DocumentReaderStage', '9.9.7062'
|
|
18
18
|
s.dependency 'React'
|
|
19
19
|
end
|
package/android/build.gradle
CHANGED
|
@@ -4,7 +4,7 @@ apply plugin: 'kotlin-android'
|
|
|
4
4
|
android {
|
|
5
5
|
// Conditional for compatibility with AGP <4.2.
|
|
6
6
|
if (project.android.hasProperty("namespace")) {
|
|
7
|
-
namespace 'com.regula.plugin.
|
|
7
|
+
namespace 'com.regula.plugin.document.reader'
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
compileSdk 36
|
|
@@ -19,9 +19,10 @@ android {
|
|
|
19
19
|
|
|
20
20
|
rootProject.allprojects {
|
|
21
21
|
repositories {
|
|
22
|
-
maven {
|
|
23
|
-
|
|
24
|
-
}
|
|
22
|
+
maven { url "https://maven.regulaforensics.com/RegulaDocumentReader" }
|
|
23
|
+
maven { url "https://maven.regulaforensics.com/RegulaDocumentReader/Beta" }
|
|
24
|
+
maven { url "https://maven.regulaforensics.com/RegulaDocumentReader/Nightly" }
|
|
25
|
+
maven { url "https://maven.regulaforensics.com/RegulaDocumentReader/Stage" }
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
|
|
@@ -29,7 +30,7 @@ dependencies {
|
|
|
29
30
|
//noinspection GradleDynamicVersion
|
|
30
31
|
implementation 'com.facebook.react:react-native:+'
|
|
31
32
|
//noinspection GradleDependency
|
|
32
|
-
implementation('com.regula.documentreader:api:9.9.
|
|
33
|
+
implementation('com.regula.documentreader:api:9.9.13459') {
|
|
33
34
|
transitive = true
|
|
34
35
|
}
|
|
35
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<manifest package="com.regula.plugin.
|
|
1
|
+
<manifest package="com.regula.plugin.document.reader" />
|
package/android/src/main/java/com/regula/plugin/{documentreader → document/reader}/Config.kt
RENAMED
|
@@ -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,
|
|
@@ -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)
|
|
@@ -4432,9 +4432,9 @@
|
|
|
4432
4432
|
}
|
|
4433
4433
|
},
|
|
4434
4434
|
"node_modules/body-parser": {
|
|
4435
|
-
"version": "1.20.
|
|
4436
|
-
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.
|
|
4437
|
-
"integrity": "sha512-
|
|
4435
|
+
"version": "1.20.8",
|
|
4436
|
+
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.8.tgz",
|
|
4437
|
+
"integrity": "sha512-JNcyFQ64OiijEkPzUBTCe+hyPXUD/3LEldGQ6iF5LR1w00mx9o7xtDWHXBY2iItjdCFGoilOLNQbH943ut7pHA==",
|
|
4438
4438
|
"devOptional": true,
|
|
4439
4439
|
"license": "MIT",
|
|
4440
4440
|
"dependencies": {
|
|
@@ -4446,7 +4446,7 @@
|
|
|
4446
4446
|
"http-errors": "~2.0.1",
|
|
4447
4447
|
"iconv-lite": "~0.4.24",
|
|
4448
4448
|
"on-finished": "~2.4.1",
|
|
4449
|
-
"qs": "~6.
|
|
4449
|
+
"qs": "~6.16.0",
|
|
4450
4450
|
"raw-body": "~2.5.3",
|
|
4451
4451
|
"type-is": "~1.6.18",
|
|
4452
4452
|
"unpipe": "~1.0.0"
|
|
@@ -10647,9 +10647,9 @@
|
|
|
10647
10647
|
"license": "MIT"
|
|
10648
10648
|
},
|
|
10649
10649
|
"node_modules/qs": {
|
|
10650
|
-
"version": "6.
|
|
10651
|
-
"resolved": "https://registry.npmjs.org/qs/-/qs-6.
|
|
10652
|
-
"integrity": "sha512-
|
|
10650
|
+
"version": "6.16.0",
|
|
10651
|
+
"resolved": "https://registry.npmjs.org/qs/-/qs-6.16.0.tgz",
|
|
10652
|
+
"integrity": "sha512-h6fhOIaRrID2CbEY2fqs+7t+UXZo+MLAnU5gRIq85uFtdiUPCdsApMlHhXogKVM4HM2DVbIjGNTTYH2OcmP1vA==",
|
|
10653
10653
|
"devOptional": true,
|
|
10654
10654
|
"license": "BSD-3-Clause",
|
|
10655
10655
|
"dependencies": {
|
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.9.
|
|
14
|
-
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "9.9.
|
|
13
|
+
"@regulaforensics/react-native-document-reader-api": "9.9.818-rc",
|
|
14
|
+
"@regulaforensics/react-native-document-reader-core-fullauthrfid": "9.9.3497-rc",
|
|
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
|
@@ -3079,6 +3079,7 @@ export class RFIDScenario {
|
|
|
3079
3079
|
mrzStrictCheck?: boolean
|
|
3080
3080
|
loadCRLFromRemote?: boolean
|
|
3081
3081
|
independentSODStatus?: boolean
|
|
3082
|
+
readUser?: boolean
|
|
3082
3083
|
readingBuffer?: number
|
|
3083
3084
|
onlineTAToSignDataType?: number
|
|
3084
3085
|
defaultReadingBufferSize?: number
|
|
@@ -3099,6 +3100,7 @@ export class RFIDScenario {
|
|
|
3099
3100
|
documentNumber?: string
|
|
3100
3101
|
dateOfBirth?: string
|
|
3101
3102
|
dateOfExpiry?: string
|
|
3103
|
+
defaultUserPIN?: string
|
|
3102
3104
|
eDLDataGroups?: EDLDataGroups
|
|
3103
3105
|
ePassportDataGroups?: EPassportDataGroups
|
|
3104
3106
|
eIDDataGroups?: EIDDataGroups
|
|
@@ -3146,6 +3148,7 @@ export class RFIDScenario {
|
|
|
3146
3148
|
result.mrzStrictCheck = jsonObject["mrzStrictCheck"]
|
|
3147
3149
|
result.loadCRLFromRemote = jsonObject["loadCRLFromRemote"]
|
|
3148
3150
|
result.independentSODStatus = jsonObject["independentSODStatus"]
|
|
3151
|
+
result.readUser = jsonObject["readUser"]
|
|
3149
3152
|
result.readingBuffer = jsonObject["readingBuffer"]
|
|
3150
3153
|
result.onlineTAToSignDataType = jsonObject["onlineTAToSignDataType"]
|
|
3151
3154
|
result.defaultReadingBufferSize = jsonObject["defaultReadingBufferSize"]
|
|
@@ -3166,6 +3169,7 @@ export class RFIDScenario {
|
|
|
3166
3169
|
result.documentNumber = jsonObject["documentNumber"]
|
|
3167
3170
|
result.dateOfBirth = jsonObject["dateOfBirth"]
|
|
3168
3171
|
result.dateOfExpiry = jsonObject["dateOfExpiry"]
|
|
3172
|
+
result.defaultUserPIN = jsonObject["defaultUserPIN"]
|
|
3169
3173
|
result.eDLDataGroups = EDLDataGroups.fromJson(jsonObject["eDLDataGroups"])
|
|
3170
3174
|
result.ePassportDataGroups = EPassportDataGroups.fromJson(jsonObject["ePassportDataGroups"])
|
|
3171
3175
|
result.eIDDataGroups = EIDDataGroups.fromJson(jsonObject["eIDDataGroups"])
|
package/index.js
CHANGED
|
@@ -2030,6 +2030,7 @@ export class RFIDScenario {
|
|
|
2030
2030
|
result.mrzStrictCheck = jsonObject["mrzStrictCheck"]
|
|
2031
2031
|
result.loadCRLFromRemote = jsonObject["loadCRLFromRemote"]
|
|
2032
2032
|
result.independentSODStatus = jsonObject["independentSODStatus"]
|
|
2033
|
+
result.readUser = jsonObject["readUser"]
|
|
2033
2034
|
result.readingBuffer = jsonObject["readingBuffer"]
|
|
2034
2035
|
result.onlineTAToSignDataType = jsonObject["onlineTAToSignDataType"]
|
|
2035
2036
|
result.defaultReadingBufferSize = jsonObject["defaultReadingBufferSize"]
|
|
@@ -2050,6 +2051,7 @@ export class RFIDScenario {
|
|
|
2050
2051
|
result.documentNumber = jsonObject["documentNumber"]
|
|
2051
2052
|
result.dateOfBirth = jsonObject["dateOfBirth"]
|
|
2052
2053
|
result.dateOfExpiry = jsonObject["dateOfExpiry"]
|
|
2054
|
+
result.defaultUserPIN = jsonObject["defaultUserPIN"]
|
|
2053
2055
|
result.eDLDataGroups = EDLDataGroups.fromJson(jsonObject["eDLDataGroups"])
|
|
2054
2056
|
result.ePassportDataGroups = EPassportDataGroups.fromJson(jsonObject["ePassportDataGroups"])
|
|
2055
2057
|
result.eIDDataGroups = EIDDataGroups.fromJson(jsonObject["eIDDataGroups"])
|
package/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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/react-native-document-reader-api",
|
|
3
|
-
"version": "9.9.
|
|
3
|
+
"version": "9.9.818-rc",
|
|
4
4
|
"description": "React Native module for reading and validation of identification documents (API framework)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|