@regulaforensics/document-reader 8.3.246-beta → 8.3.272-beta
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/RNDocumentReader.podspec +1 -1
- package/examples/capacitor/README.md +1 -3
- package/examples/capacitor/ios/App/App/App.entitlements +6 -1
- package/examples/capacitor/ios/App/App/Info.plist +60 -46
- package/examples/capacitor/package.json +3 -3
- package/examples/capacitor/src/extra/bt_device.tsx +1 -1
- package/examples/capacitor/src/main.css +14 -1
- package/examples/capacitor/src/main.html +1 -1
- package/examples/capacitor/src/main.tsx +1 -0
- package/examples/ionic/README.md +1 -3
- package/examples/ionic/angular.json +3 -3
- package/examples/ionic/config.xml +27 -3
- package/examples/ionic/package.json +3 -3
- package/examples/ionic/src/extra/bt_device.tsx +1 -1
- package/examples/ionic/src/main.css +14 -1
- package/examples/ionic/src/main.html +1 -1
- package/examples/ionic/src/main.tsx +1 -0
- package/examples/react_native/README.md +1 -3
- package/examples/react_native/package.json +3 -3
- package/examples/react_native/src/extra/bt_device.tsx +1 -1
- package/examples/react_native/src/main.css +14 -1
- package/examples/react_native/src/main.html +1 -1
- package/examples/react_native/src/main.tsx +1 -0
- package/ios/RGLWMain.m +2 -2
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/test/json.tsx +866 -0
- package/test/package-lock.json +584 -0
- package/test/package.json +12 -0
- package/test/test.tsx +93 -0
- package/test/utils.tsx +34 -0
- package/www/capacitor/config/InitConfig.js +27 -0
- package/www/capacitor/config/RFIDConfig.js +1 -1
- package/www/capacitor/index.js +4 -4
- package/www/capacitor/params/process_params/ProcessParams.js +1 -1
- package/www/capacitor/params/rfid_scenario/RFIDScenario.js +1 -1
- package/www/capacitor/results/DocumentType.js +19 -2
- package/www/cordova.js +60 -16
- package/www/react-native/config/InitConfig.js +27 -0
- package/www/react-native/config/RFIDConfig.js +1 -1
- package/www/react-native/index.js +4 -4
- package/www/react-native/params/process_params/ProcessParams.js +1 -1
- package/www/react-native/params/rfid_scenario/RFIDScenario.js +1 -1
- package/www/react-native/results/DocumentType.js +19 -2
- package/www/types/index.d.ts +6 -6
- package/www/types/params/process_params/ProcessParams.d.ts +1 -1
- package/www/types/params/rfid_scenario/RFIDScenario.d.ts +1 -1
- /package/examples/ionic/{src/assets → assets}/.gitkeep +0 -0
- /package/examples/ionic/{src/images → images}/document.png +0 -0
- /package/examples/ionic/{src/images → images}/icon.png +0 -0
- /package/examples/ionic/{src/images → images}/portrait.png +0 -0
- /package/www/capacitor/params/rfid_scenario/{DTCDataGroups.js → DTCDataGroup.js} +0 -0
- /package/www/react-native/params/rfid_scenario/{DTCDataGroups.js → DTCDataGroup.js} +0 -0
- /package/www/types/params/rfid_scenario/{DTCDataGroups.d.ts → DTCDataGroup.d.ts} +0 -0
package/RNDocumentReader.podspec
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## How to build demo application
|
|
4
4
|
1. Download or the clone current repository using the command `git clone https://github.com/regulaforensics/npm-document-reader.git`.
|
|
5
|
-
|
|
6
5
|
2. Execute `npm run setup` within this directory.
|
|
7
|
-
|
|
8
6
|
3. Run the app:
|
|
9
7
|
* IOS: `npm run ios`.
|
|
10
8
|
* Android: `npm run android`.
|
|
@@ -15,7 +13,7 @@
|
|
|
15
13
|
|
|
16
14
|
### Bluetooth device
|
|
17
15
|
|
|
18
|
-
In order to connect to an external scanning device, change the `useBtDevice` constant to true in `src/extra/bt_device`, and set `btDeviceName` to the name of
|
|
16
|
+
In order to connect to an external scanning device, change the `useBtDevice` constant to true in `src/extra/bt_device`, and set `btDeviceName` to the name of your device. After running the app, click `Connect`.
|
|
19
17
|
|
|
20
18
|
### RFID self hosted UI
|
|
21
19
|
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
3
|
<plist version="1.0">
|
|
4
|
-
<dict
|
|
4
|
+
<dict>
|
|
5
|
+
<key>com.apple.developer.nfc.readersession.formats</key>
|
|
6
|
+
<array>
|
|
7
|
+
<string>TAG</string>
|
|
8
|
+
</array>
|
|
9
|
+
</dict>
|
|
5
10
|
</plist>
|
|
@@ -1,53 +1,67 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
3
|
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
-
<string>en</string>
|
|
7
|
-
<key>CFBundleDisplayName</key>
|
|
8
|
-
<string>DocumentReader</string>
|
|
9
|
-
<key>CFBundleExecutable</key>
|
|
10
|
-
<string>$(EXECUTABLE_NAME)</string>
|
|
11
|
-
<key>CFBundleIdentifier</key>
|
|
12
|
-
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
13
|
-
<key>CFBundleInfoDictionaryVersion</key>
|
|
14
|
-
<string>6.0</string>
|
|
15
|
-
<key>CFBundleName</key>
|
|
16
|
-
<string>$(PRODUCT_NAME)</string>
|
|
17
|
-
<key>CFBundlePackageType</key>
|
|
18
|
-
<string>APPL</string>
|
|
19
|
-
<key>CFBundleShortVersionString</key>
|
|
20
|
-
<string>$(MARKETING_VERSION)</string>
|
|
21
|
-
<key>CFBundleVersion</key>
|
|
22
|
-
<string>$(CURRENT_PROJECT_VERSION)</string>
|
|
23
|
-
<key>LSRequiresIPhoneOS</key>
|
|
24
|
-
<true/>
|
|
25
|
-
<key>NSAppTransportSecurity</key>
|
|
26
4
|
<dict>
|
|
27
|
-
<key>
|
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
+
<string>en</string>
|
|
7
|
+
<key>CFBundleDisplayName</key>
|
|
8
|
+
<string>DocumentReader</string>
|
|
9
|
+
<key>CFBundleExecutable</key>
|
|
10
|
+
<string>$(EXECUTABLE_NAME)</string>
|
|
11
|
+
<key>CFBundleIdentifier</key>
|
|
12
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
13
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
14
|
+
<string>6.0</string>
|
|
15
|
+
<key>CFBundleName</key>
|
|
16
|
+
<string>$(PRODUCT_NAME)</string>
|
|
17
|
+
<key>CFBundlePackageType</key>
|
|
18
|
+
<string>APPL</string>
|
|
19
|
+
<key>CFBundleShortVersionString</key>
|
|
20
|
+
<string>$(MARKETING_VERSION)</string>
|
|
21
|
+
<key>CFBundleVersion</key>
|
|
22
|
+
<string>$(CURRENT_PROJECT_VERSION)</string>
|
|
23
|
+
<key>LSRequiresIPhoneOS</key>
|
|
28
24
|
<true/>
|
|
25
|
+
<key>NSAppTransportSecurity</key>
|
|
26
|
+
<dict>
|
|
27
|
+
<key>NSAllowsArbitraryLoads</key>
|
|
28
|
+
<true/>
|
|
29
|
+
</dict>
|
|
30
|
+
<key>NSCameraUsageDescription</key>
|
|
31
|
+
<string></string>
|
|
32
|
+
<key>NSPhotoLibraryUsageDescription</key>
|
|
33
|
+
<string></string>
|
|
34
|
+
<key>NSBluetoothAlwaysUsageDescription</key>
|
|
35
|
+
<string></string>
|
|
36
|
+
<key>UILaunchStoryboardName</key>
|
|
37
|
+
<string>LaunchScreen</string>
|
|
38
|
+
<key>UIMainStoryboardFile</key>
|
|
39
|
+
<string>Main</string>
|
|
40
|
+
<key>UIRequiredDeviceCapabilities</key>
|
|
41
|
+
<array>
|
|
42
|
+
<string>armv7</string>
|
|
43
|
+
</array>
|
|
44
|
+
<key>UISupportedInterfaceOrientations</key>
|
|
45
|
+
<array>
|
|
46
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
47
|
+
</array>
|
|
48
|
+
<key>UISupportedInterfaceOrientations~ipad</key>
|
|
49
|
+
<array>
|
|
50
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
51
|
+
</array>
|
|
52
|
+
<key>UIViewControllerBasedStatusBarAppearance</key>
|
|
53
|
+
<true/>
|
|
54
|
+
<key>NFCReaderUsageDescription</key>
|
|
55
|
+
<string>To use NFC</string>
|
|
56
|
+
<key>com.apple.developer.nfc.readersession.iso7816.select-identifiers</key>
|
|
57
|
+
<array>
|
|
58
|
+
<string>A0000002471001</string>
|
|
59
|
+
<string>E80704007F00070302</string>
|
|
60
|
+
<string>A000000167455349474E</string>
|
|
61
|
+
<string>A0000002480100</string>
|
|
62
|
+
<string>A0000002480200</string>
|
|
63
|
+
<string>A0000002480300</string>
|
|
64
|
+
<string>A00000045645444C2D3031</string>
|
|
65
|
+
</array>
|
|
29
66
|
</dict>
|
|
30
|
-
<key>NSCameraUsageDescription</key>
|
|
31
|
-
<string></string>
|
|
32
|
-
<key>NSPhotoLibraryUsageDescription</key>
|
|
33
|
-
<string></string>
|
|
34
|
-
<key>UILaunchStoryboardName</key>
|
|
35
|
-
<string>LaunchScreen</string>
|
|
36
|
-
<key>UIMainStoryboardFile</key>
|
|
37
|
-
<string>Main</string>
|
|
38
|
-
<key>UIRequiredDeviceCapabilities</key>
|
|
39
|
-
<array>
|
|
40
|
-
<string>armv7</string>
|
|
41
|
-
</array>
|
|
42
|
-
<key>UISupportedInterfaceOrientations</key>
|
|
43
|
-
<array>
|
|
44
|
-
<string>UIInterfaceOrientationPortrait</string>
|
|
45
|
-
</array>
|
|
46
|
-
<key>UISupportedInterfaceOrientations~ipad</key>
|
|
47
|
-
<array>
|
|
48
|
-
<string>UIInterfaceOrientationPortrait</string>
|
|
49
|
-
</array>
|
|
50
|
-
<key>UIViewControllerBasedStatusBarAppearance</key>
|
|
51
|
-
<true/>
|
|
52
|
-
</dict>
|
|
53
67
|
</plist>
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/document-reader": "8.3.
|
|
10
|
-
"@regulaforensics/document-reader-core-fullauthrfid": "8.
|
|
11
|
-
"@regulaforensics/document-reader-btdevice": "8.
|
|
9
|
+
"@regulaforensics/document-reader": "8.3.272-beta",
|
|
10
|
+
"@regulaforensics/document-reader-core-fullauthrfid": "8.2.8-beta",
|
|
11
|
+
"@regulaforensics/document-reader-btdevice": "8.2.8-beta",
|
|
12
12
|
"@awesome-cordova-plugins/file": "6.6.0",
|
|
13
13
|
"@awesome-cordova-plugins/camera": "6.6.0",
|
|
14
14
|
"@awesome-cordova-plugins/dialogs": "6.6.0",
|
|
@@ -16,7 +16,7 @@ async function connect() {
|
|
|
16
16
|
if (await DocumentReader.instance.connectBluetoothDevice(btDeviceName)) {
|
|
17
17
|
await init()
|
|
18
18
|
DocumentReader.instance.functionality.useAuthenticator = true
|
|
19
|
-
document.getElementById("
|
|
19
|
+
document.getElementById("connect")!.style.display = "none"
|
|
20
20
|
} else
|
|
21
21
|
setStatus("Failed to connect")
|
|
22
22
|
}
|
|
@@ -8,6 +8,19 @@ body {
|
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
/* Prevent text selection */
|
|
12
|
+
* {
|
|
13
|
+
user-select: none !important;
|
|
14
|
+
-webkit-user-select: none !important;
|
|
15
|
+
-webkit-user-drag: none !important;
|
|
16
|
+
-webkit-touch-callout: none !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Prevent image dragging */
|
|
20
|
+
img {
|
|
21
|
+
pointer-events: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
11
24
|
.column {
|
|
12
25
|
display: flex;
|
|
13
26
|
flex-direction: column;
|
|
@@ -131,4 +144,4 @@ input[type="text"] {
|
|
|
131
144
|
height: 20px;
|
|
132
145
|
background-color: #4285F4;
|
|
133
146
|
border-radius: 5px;
|
|
134
|
-
}
|
|
147
|
+
}
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
<div class="progress-bar">
|
|
34
34
|
<div id="progress"></div>
|
|
35
35
|
</div>
|
|
36
|
-
<button id="cancel-rfid" class="text-button" style="margin-top: 50px;">X</button>
|
|
36
|
+
<button id="cancel-rfid" class="text-button" style="margin-top: 50px; padding-bottom: 100px;">X</button>
|
|
37
37
|
</div>
|
|
38
38
|
</div>
|
|
@@ -76,6 +76,7 @@ var initialize = async () => {
|
|
|
76
76
|
|
|
77
77
|
var license = await loadAsset("regula.license")
|
|
78
78
|
var initConfig = new InitConfig(license)
|
|
79
|
+
initConfig.delayedNNLoad = true
|
|
79
80
|
var [success, error] = await documentReader.initialize(initConfig)
|
|
80
81
|
|
|
81
82
|
handleException(error)
|
package/examples/ionic/README.md
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## How to build demo application
|
|
4
4
|
1. Download or the clone current repository using the command `git clone https://github.com/regulaforensics/npm-document-reader.git`.
|
|
5
|
-
|
|
6
5
|
2. Execute `npm run setup` within this directory.
|
|
7
|
-
|
|
8
6
|
3. Run the app:
|
|
9
7
|
* IOS: `npm run ios`.
|
|
10
8
|
* Android: `npm run android`.
|
|
@@ -15,7 +13,7 @@
|
|
|
15
13
|
|
|
16
14
|
### Bluetooth device
|
|
17
15
|
|
|
18
|
-
In order to connect to an external scanning device, change the `useBtDevice` constant to true in `src/extra/bt_device`, and set `btDeviceName` to the name of
|
|
16
|
+
In order to connect to an external scanning device, change the `useBtDevice` constant to true in `src/extra/bt_device`, and set `btDeviceName` to the name of your device. After running the app, click `Connect`.
|
|
19
17
|
|
|
20
18
|
### RFID self hosted UI
|
|
21
19
|
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
"options": {
|
|
12
12
|
"outputPath": "www",
|
|
13
13
|
"index": "index.html",
|
|
14
|
-
"main": "index.
|
|
14
|
+
"main": "index.tsx",
|
|
15
15
|
"tsConfig": "tsconfig.json",
|
|
16
16
|
"assets": [
|
|
17
17
|
{
|
|
18
18
|
"glob": "**/*",
|
|
19
|
-
"input": "
|
|
19
|
+
"input": "assets",
|
|
20
20
|
"output": "assets"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"glob": "**/*",
|
|
24
|
-
"input": "
|
|
24
|
+
"input": "images",
|
|
25
25
|
"output": "images"
|
|
26
26
|
}
|
|
27
27
|
]
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
<widget android-packageName="com.regula.dr.fullauthrfid" ios-CFBundleIdentifier="regula.DocumentReader" version="1.0.0"
|
|
3
3
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
4
4
|
<name>DocumentReader</name>
|
|
5
|
-
<icon src="
|
|
5
|
+
<icon src="images/icon.png" />
|
|
6
6
|
<platform name="android">
|
|
7
|
-
<resource-file src="
|
|
7
|
+
<resource-file src="assets/db.dat" target="app/src/main/assets/Regula/db.dat" />
|
|
8
8
|
<preference name="orientation" value="portrait" />
|
|
9
9
|
<preference name="android-minSdkVersion" value="24" />
|
|
10
10
|
<preference name="android-targetSdkVersion" value="35" />
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
</edit-config>
|
|
19
19
|
</platform>
|
|
20
20
|
<platform name="ios">
|
|
21
|
-
<resource-file src="
|
|
21
|
+
<resource-file src="assets/db.dat" />
|
|
22
22
|
<preference name="orientation" value="portrait" />
|
|
23
23
|
<allow-intent href="itms:*" />
|
|
24
24
|
<allow-intent href="itms-apps:*" />
|
|
@@ -31,5 +31,29 @@
|
|
|
31
31
|
<config-file parent="NSBluetoothAlwaysUsageDescription" target="*-Info.plist">
|
|
32
32
|
<string>To use btdevice</string>
|
|
33
33
|
</config-file>
|
|
34
|
+
<config-file parent="NFCReaderUsageDescription" target="*-Info.plist">
|
|
35
|
+
<string>To use NFC</string>
|
|
36
|
+
</config-file>
|
|
37
|
+
<config-file parent="com.apple.developer.nfc.readersession.iso7816.select-identifiers" target="*-Info.plist">
|
|
38
|
+
<array>
|
|
39
|
+
<string>A0000002471001</string>
|
|
40
|
+
<string>E80704007F00070302</string>
|
|
41
|
+
<string>A000000167455349474E</string>
|
|
42
|
+
<string>A0000002480100</string>
|
|
43
|
+
<string>A0000002480200</string>
|
|
44
|
+
<string>A0000002480300</string>
|
|
45
|
+
<string>A00000045645444C2D3031</string>
|
|
46
|
+
</array>
|
|
47
|
+
</config-file>
|
|
48
|
+
<config-file parent="com.apple.developer.nfc.readersession.formats" target="*-Debug.plist">
|
|
49
|
+
<array>
|
|
50
|
+
<string>TAG</string>
|
|
51
|
+
</array>
|
|
52
|
+
</config-file>
|
|
53
|
+
<config-file parent="com.apple.developer.nfc.readersession.formats" target="*-Release.plist">
|
|
54
|
+
<array>
|
|
55
|
+
<string>TAG</string>
|
|
56
|
+
</array>
|
|
57
|
+
</config-file>
|
|
34
58
|
</platform>
|
|
35
59
|
</widget>
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/document-reader": "8.3.
|
|
10
|
-
"@regulaforensics/document-reader-core-fullauthrfid": "8.
|
|
11
|
-
"@regulaforensics/document-reader-btdevice": "8.
|
|
9
|
+
"@regulaforensics/document-reader": "8.3.272-beta",
|
|
10
|
+
"@regulaforensics/document-reader-core-fullauthrfid": "8.2.8-beta",
|
|
11
|
+
"@regulaforensics/document-reader-btdevice": "8.2.8-beta",
|
|
12
12
|
"@awesome-cordova-plugins/file": "6.14.0",
|
|
13
13
|
"@awesome-cordova-plugins/camera": "6.14.0",
|
|
14
14
|
"cordova-ios": "7.1.1",
|
|
@@ -16,7 +16,7 @@ async function connect() {
|
|
|
16
16
|
if (await DocumentReader.instance.connectBluetoothDevice(btDeviceName)) {
|
|
17
17
|
await init()
|
|
18
18
|
DocumentReader.instance.functionality.useAuthenticator = true
|
|
19
|
-
document.getElementById("
|
|
19
|
+
document.getElementById("connect")!.style.display = "none"
|
|
20
20
|
} else
|
|
21
21
|
setStatus("Failed to connect")
|
|
22
22
|
}
|
|
@@ -8,6 +8,19 @@ body {
|
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
/* Prevent text selection */
|
|
12
|
+
* {
|
|
13
|
+
user-select: none !important;
|
|
14
|
+
-webkit-user-select: none !important;
|
|
15
|
+
-webkit-user-drag: none !important;
|
|
16
|
+
-webkit-touch-callout: none !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Prevent image dragging */
|
|
20
|
+
img {
|
|
21
|
+
pointer-events: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
11
24
|
.column {
|
|
12
25
|
display: flex;
|
|
13
26
|
flex-direction: column;
|
|
@@ -131,4 +144,4 @@ input[type="text"] {
|
|
|
131
144
|
height: 20px;
|
|
132
145
|
background-color: #4285F4;
|
|
133
146
|
border-radius: 5px;
|
|
134
|
-
}
|
|
147
|
+
}
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
<div class="progress-bar">
|
|
34
34
|
<div id="progress"></div>
|
|
35
35
|
</div>
|
|
36
|
-
<button id="cancel-rfid" class="text-button" style="margin-top: 50px;">X</button>
|
|
36
|
+
<button id="cancel-rfid" class="text-button" style="margin-top: 50px; padding-bottom: 100px;">X</button>
|
|
37
37
|
</div>
|
|
38
38
|
</div>
|
|
@@ -76,6 +76,7 @@ var initialize = async () => {
|
|
|
76
76
|
|
|
77
77
|
var license = await loadAsset("regula.license")
|
|
78
78
|
var initConfig = new InitConfig(license)
|
|
79
|
+
initConfig.delayedNNLoad = true
|
|
79
80
|
var [success, error] = await documentReader.initialize(initConfig)
|
|
80
81
|
|
|
81
82
|
handleException(error)
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## How to build demo application
|
|
4
4
|
1. Download or the clone current repository using the command `git clone https://github.com/regulaforensics/npm-document-reader.git`.
|
|
5
|
-
|
|
6
5
|
2. Execute `npm run setup` within this directory.
|
|
7
|
-
|
|
8
6
|
3. Run the app:
|
|
9
7
|
* IOS: `npm run ios`.
|
|
10
8
|
* Android: `npm run android`.
|
|
@@ -15,7 +13,7 @@
|
|
|
15
13
|
|
|
16
14
|
### Bluetooth device
|
|
17
15
|
|
|
18
|
-
In order to connect to an external scanning device, change the `useBtDevice` constant to true in `src/extra/bt_device`, and set `btDeviceName` to the name of
|
|
16
|
+
In order to connect to an external scanning device, change the `useBtDevice` constant to true in `src/extra/bt_device`, and set `btDeviceName` to the name of your device. After running the app, click `Connect`.
|
|
19
17
|
|
|
20
18
|
### RFID self hosted UI
|
|
21
19
|
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"start": "expo start"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@regulaforensics/document-reader": "8.3.
|
|
12
|
-
"@regulaforensics/document-reader-core-fullauthrfid": "8.
|
|
13
|
-
"@regulaforensics/document-reader-btdevice": "8.
|
|
11
|
+
"@regulaforensics/document-reader": "8.3.272-beta",
|
|
12
|
+
"@regulaforensics/document-reader-core-fullauthrfid": "8.2.8-beta",
|
|
13
|
+
"@regulaforensics/document-reader-btdevice": "8.2.8-beta",
|
|
14
14
|
"react-native": "0.79.5",
|
|
15
15
|
"react-native-fs": "2.20.0",
|
|
16
16
|
"react-native-image-picker": "8.2.1",
|
|
@@ -16,7 +16,7 @@ async function connect() {
|
|
|
16
16
|
if (await DocumentReader.instance.connectBluetoothDevice(btDeviceName)) {
|
|
17
17
|
await init()
|
|
18
18
|
DocumentReader.instance.functionality.useAuthenticator = true
|
|
19
|
-
document.getElementById("
|
|
19
|
+
document.getElementById("connect")!.style.display = "none"
|
|
20
20
|
} else
|
|
21
21
|
setStatus("Failed to connect")
|
|
22
22
|
}
|
|
@@ -8,6 +8,19 @@ body {
|
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
/* Prevent text selection */
|
|
12
|
+
* {
|
|
13
|
+
user-select: none !important;
|
|
14
|
+
-webkit-user-select: none !important;
|
|
15
|
+
-webkit-user-drag: none !important;
|
|
16
|
+
-webkit-touch-callout: none !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Prevent image dragging */
|
|
20
|
+
img {
|
|
21
|
+
pointer-events: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
11
24
|
.column {
|
|
12
25
|
display: flex;
|
|
13
26
|
flex-direction: column;
|
|
@@ -131,4 +144,4 @@ input[type="text"] {
|
|
|
131
144
|
height: 20px;
|
|
132
145
|
background-color: #4285F4;
|
|
133
146
|
border-radius: 5px;
|
|
134
|
-
}
|
|
147
|
+
}
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
<div class="progress-bar">
|
|
34
34
|
<div id="progress"></div>
|
|
35
35
|
</div>
|
|
36
|
-
<button id="cancel-rfid" class="text-button" style="margin-top: 50px;">X</button>
|
|
36
|
+
<button id="cancel-rfid" class="text-button" style="margin-top: 50px; padding-bottom: 100px;">X</button>
|
|
37
37
|
</div>
|
|
38
38
|
</div>
|
|
@@ -76,6 +76,7 @@ var initialize = async () => {
|
|
|
76
76
|
|
|
77
77
|
var license = await loadAsset("regula.license")
|
|
78
78
|
var initConfig = new InitConfig(license)
|
|
79
|
+
initConfig.delayedNNLoad = true
|
|
79
80
|
var [success, error] = await documentReader.initialize(initConfig)
|
|
80
81
|
|
|
81
82
|
handleException(error)
|
package/ios/RGLWMain.m
CHANGED
|
@@ -339,12 +339,12 @@ RGLWCallback savedCallbackForBluetoothResult;
|
|
|
339
339
|
|
|
340
340
|
// set searching timeout
|
|
341
341
|
if (state == RGLBluetoothConnectionStateSearching)
|
|
342
|
-
[self performSelector:NSSelectorFromString(@"bluetoothDeviceConnectionFailed") withObject:nil afterDelay:7.0];
|
|
342
|
+
[[self class] performSelector:NSSelectorFromString(@"bluetoothDeviceConnectionFailed") withObject:nil afterDelay:7.0];
|
|
343
343
|
|
|
344
344
|
if (state == RGLBluetoothConnectionStateConnected) {
|
|
345
345
|
savedCallbackForBluetoothResult(@YES);
|
|
346
346
|
savedCallbackForBluetoothResult = nil;
|
|
347
|
-
[NSObject cancelPreviousPerformRequestsWithTarget:self selector:NSSelectorFromString(@"bluetoothDeviceConnectionFailed") object:nil];
|
|
347
|
+
[NSObject cancelPreviousPerformRequestsWithTarget:[self class] selector:NSSelectorFromString(@"bluetoothDeviceConnectionFailed") object:nil];
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/document-reader",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.272-beta",
|
|
4
4
|
"description": "This is an npm module for Regula Document Reader SDK. It allows you to read various kinds of identification documents using your phone's camera.",
|
|
5
5
|
"main": "www/react-native/index.js",
|
|
6
6
|
"module": "www/capacitor/index.js",
|
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="@regulaforensics/document-reader" version="8.3.
|
|
2
|
+
<plugin id="@regulaforensics/document-reader" version="8.3.272-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
3
3
|
<name>DocumentReader</name>
|
|
4
4
|
<description>Cordova plugin for Regula Document Reader SDK</description>
|
|
5
5
|
<license>commercial</license>
|