@regulaforensics/cordova-plugin-document-reader-api 7.5.624-nightly → 7.5.625-nightly
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 +14 -12
- package/example/package.json +2 -2
- package/example/www/js/index.js +5 -0
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/src/android/build.gradle +1 -1
package/example/config.xml
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<allow-intent href="mailto:*" />
|
|
17
17
|
<allow-intent href="geo:*" />
|
|
18
18
|
<platform name="android">
|
|
19
|
-
<resource-file src="www/db.dat" target="app/src/main/assets/Regula/db.dat"/>
|
|
19
|
+
<resource-file src="www/db.dat" target="app/src/main/assets/Regula/db.dat" />
|
|
20
20
|
<preference name="android-minSdkVersion" value="23" />
|
|
21
21
|
<preference name="android-targetSdkVersion" value="34" />
|
|
22
22
|
<allow-intent href="market:*" />
|
|
@@ -26,11 +26,13 @@
|
|
|
26
26
|
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
|
|
27
27
|
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
|
|
28
28
|
</config-file>
|
|
29
|
+
<preference name="orientation" value="portrait" />
|
|
29
30
|
</platform>
|
|
30
31
|
<platform name="ios">
|
|
31
32
|
<resource-file src="www/db.dat" />
|
|
32
33
|
<allow-intent href="itms:*" />
|
|
33
34
|
<allow-intent href="itms-apps:*" />
|
|
35
|
+
<preference name="orientation" value="portrait" />
|
|
34
36
|
<config-file target="*-Info.plist" parent="NSCameraUsageDescription">
|
|
35
37
|
<string>To use camera</string>
|
|
36
38
|
</config-file>
|
|
@@ -42,26 +44,26 @@
|
|
|
42
44
|
</config-file>
|
|
43
45
|
<config-file target="*-Info.plist" parent="com.apple.developer.nfc.readersession.iso7816.select-identifiers">
|
|
44
46
|
<array>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
<string>A0000002471001</string>
|
|
48
|
+
<string>E80704007F00070302</string>
|
|
49
|
+
<string>A000000167455349474E</string>
|
|
50
|
+
<string>A0000002480100</string>
|
|
51
|
+
<string>A0000002480200</string>
|
|
52
|
+
<string>A0000002480300</string>
|
|
53
|
+
<string>A00000045645444C2D3031</string>
|
|
54
|
+
</array>
|
|
53
55
|
</config-file>
|
|
54
56
|
<config-file target="*-Debug.plist" parent="com.apple.developer.nfc.readersession.formats">
|
|
55
57
|
<array>
|
|
56
58
|
<string>NDEF</string>
|
|
57
|
-
|
|
59
|
+
<string>TAG</string>
|
|
58
60
|
</array>
|
|
59
61
|
</config-file>
|
|
60
62
|
<config-file target="*-Release.plist" parent="com.apple.developer.nfc.readersession.formats">
|
|
61
63
|
<array>
|
|
62
64
|
<string>NDEF</string>
|
|
63
|
-
|
|
65
|
+
<string>TAG</string>
|
|
64
66
|
</array>
|
|
65
67
|
</config-file>
|
|
66
68
|
</platform>
|
|
67
|
-
</widget>
|
|
69
|
+
</widget>
|
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": "7.5.
|
|
17
|
-
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "7.5.
|
|
16
|
+
"@regulaforensics/cordova-plugin-document-reader-api": "7.5.625-nightly",
|
|
17
|
+
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "7.5.753-nightly",
|
|
18
18
|
"cordova-android": "12.0.1",
|
|
19
19
|
"cordova-ios": "7.0.1",
|
|
20
20
|
"cordova-plugin-add-swift-support": "2.0.2",
|
package/example/www/js/index.js
CHANGED
|
@@ -238,6 +238,11 @@ var app = {
|
|
|
238
238
|
if (value != null)
|
|
239
239
|
document.getElementById("portraitImage").src = "data:image/png;base64," + value
|
|
240
240
|
}, function (error) { console.log(error) })
|
|
241
|
+
|
|
242
|
+
DocumentReader.graphicFieldImageByTypeSource(results, Enum.eGraphicFieldType.GF_PORTRAIT, Enum.eRPRM_ResultType.RFID_RESULT_TYPE_RFID_IMAGE_DATA, function (value) {
|
|
243
|
+
if (value != null)
|
|
244
|
+
document.getElementById("portraitImage").src = "data:image/png;base64," + value
|
|
245
|
+
}, function (error) { console.log(error) })
|
|
241
246
|
}
|
|
242
247
|
|
|
243
248
|
function clearResults() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/cordova-plugin-document-reader-api",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.625-nightly",
|
|
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="cordova-plugin-document-reader-api" version="7.5.
|
|
2
|
+
<plugin id="cordova-plugin-document-reader-api" version="7.5.625-nightly"
|
|
3
3
|
xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
4
4
|
<name>DocumentReaderApi</name>
|
|
5
5
|
<description>Cordova plugin Document reader api</description>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<config>
|
|
27
27
|
</config>
|
|
28
28
|
<pods>
|
|
29
|
-
<pod name="DocumentReaderNightly" spec="7.5.
|
|
29
|
+
<pod name="DocumentReaderNightly" spec="7.5.3989" />
|
|
30
30
|
</pods>
|
|
31
31
|
</podspec>
|
|
32
32
|
</platform>
|
package/src/android/build.gradle
CHANGED