@regulaforensics/cordova-plugin-document-reader-api 8.1.147-nightly → 8.1.149
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 +4 -0
- package/src/android/build.gradle +2 -2
- package/src/ios/RGLWMain.m +6 -0
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": "8.1.
|
|
17
|
-
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "8.1.
|
|
16
|
+
"@regulaforensics/cordova-plugin-document-reader-api": "8.1.149",
|
|
17
|
+
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "8.1.456",
|
|
18
18
|
"cordova-android": "13.0.0",
|
|
19
19
|
"cordova-ios": "7.1.1",
|
|
20
20
|
"cordova-plugin-add-swift-support": "2.0.2",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/cordova-plugin-document-reader-api",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.149",
|
|
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="8.1.
|
|
2
|
+
<plugin id="@regulaforensics/cordova-plugin-document-reader-api" version="8.1.149" 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/CocoaPods/Specs.git"/>
|
|
30
30
|
</config>
|
|
31
31
|
<pods>
|
|
32
|
-
<pod name="
|
|
32
|
+
<pod name="DocumentReader" spec="8.1.4772" />
|
|
33
33
|
</pods>
|
|
34
34
|
</podspec>
|
|
35
35
|
</platform>
|
package/src/android/Main.kt
CHANGED
|
@@ -64,6 +64,7 @@ fun methodCall(method: String, callback: (Any?) -> Unit): Any = when (method) {
|
|
|
64
64
|
"resetConfiguration" -> resetConfiguration()
|
|
65
65
|
"initialize" -> initialize(callback, args(0))
|
|
66
66
|
"initializeReader" -> initialize(callback, args(0)) // deprecated
|
|
67
|
+
"initializeReaderWithBleDeviceConfig" -> initializeReaderWithBleDeviceConfig(callback, args(0)) // deprecated
|
|
67
68
|
"deinitialize" -> deinitialize()
|
|
68
69
|
"prepareDatabase" -> prepareDatabase(callback, args(0))
|
|
69
70
|
"removeDatabase" -> removeDatabase(callback)
|
|
@@ -174,6 +175,9 @@ fun initialize(callback: Callback, config: JSONObject) =
|
|
|
174
175
|
else
|
|
175
176
|
Instance().initializeReader(context, initBleDeviceConfigFromJSON(config), initCompletion(callback))
|
|
176
177
|
|
|
178
|
+
// deprecated
|
|
179
|
+
fun initializeReaderWithBleDeviceConfig(callback: Callback, config: JSONObject) = Instance().initializeReader(context, initBleDeviceConfigFromJSON(config), initCompletion(callback))
|
|
180
|
+
|
|
177
181
|
fun deinitialize() = Instance().deinitializeReader()
|
|
178
182
|
|
|
179
183
|
fun prepareDatabase(callback: Callback, databaseID: String) = Instance().prepareDatabase(
|
package/src/android/build.gradle
CHANGED
|
@@ -8,13 +8,13 @@ android {
|
|
|
8
8
|
|
|
9
9
|
repositories {
|
|
10
10
|
maven {
|
|
11
|
-
url "https://maven.regulaforensics.com/RegulaDocumentReader
|
|
11
|
+
url "https://maven.regulaforensics.com/RegulaDocumentReader"
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
dependencies {
|
|
16
16
|
//noinspection GradleDependency
|
|
17
|
-
implementation ('com.regula.documentreader:api:8.1.
|
|
17
|
+
implementation ('com.regula.documentreader:api:8.1.11551'){
|
|
18
18
|
transitive = true
|
|
19
19
|
}
|
|
20
20
|
}
|
package/src/ios/RGLWMain.m
CHANGED
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
@"resetConfiguration": ^{ [self resetConfiguration]; },
|
|
28
28
|
@"initialize": ^{ [self initialize :args[0] :callback]; },
|
|
29
29
|
@"initializeReader": ^{ [self initialize :args[0] :callback]; }, // deprecated
|
|
30
|
+
@"initializeReaderWithBleDeviceConfig": ^{ [self initializeReaderWithBleDeviceConfig :args[0] :callback]; }, // deprecated
|
|
30
31
|
@"deinitializeReader": ^{ [self deinitializeReader]; },
|
|
31
32
|
@"prepareDatabase": ^{ [self prepareDatabase :args[0] :callback]; },
|
|
32
33
|
@"removeDatabase": ^{ [self removeDatabase :callback]; },
|
|
@@ -171,6 +172,11 @@ static NSDictionary* headers;
|
|
|
171
172
|
[RGLDocReader.shared initializeReaderWithConfig:[RGLWJSONConstructor configFromJson:config] completion:[self initCompletion :callback]];
|
|
172
173
|
}
|
|
173
174
|
|
|
175
|
+
// deprecated
|
|
176
|
+
+(void)initializeReaderWithBleDeviceConfig:(NSDictionary*)config :(RGLWCallback)callback {
|
|
177
|
+
[RGLDocReader.shared initializeReaderWithConfig:[RGLWJSONConstructor bleDeviceConfigFromJson:config :bluetooth] completion: [self initCompletion :callback]];
|
|
178
|
+
}
|
|
179
|
+
|
|
174
180
|
+(void)deinitializeReader {
|
|
175
181
|
[RGLDocReader.shared deinitializeReader];
|
|
176
182
|
}
|