@regulaforensics/document-reader 8.3.242-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/README.md +2 -3
- 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 +2 -2
- package/examples/capacitor/src/extra/custom_rfid.tsx +8 -8
- package/examples/capacitor/src/main.css +14 -1
- package/examples/capacitor/src/main.html +1 -1
- package/examples/capacitor/src/main.tsx +25 -27
- 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.ts → bt_device.tsx} +2 -2
- package/examples/ionic/src/extra/{custom_rfid.ts → custom_rfid.tsx} +8 -8
- package/examples/ionic/src/main.css +14 -1
- package/examples/ionic/src/main.html +1 -1
- package/examples/ionic/src/{main.ts → main.tsx} +25 -27
- package/examples/ionic/tsconfig.json +3 -2
- package/examples/react_native/README.md +1 -3
- package/examples/react_native/index.tsx +2 -1
- package/examples/react_native/package.json +3 -3
- package/examples/react_native/src/extra/bt_device.tsx +2 -3
- package/examples/react_native/src/extra/custom_rfid.tsx +8 -9
- 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 +25 -28
- 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/cordova/.vscode/launch.json +0 -28
- package/examples/cordova/.vscode/typings/cordova/cordova.d.ts +0 -80
- package/examples/cordova/README.md +0 -22
- package/examples/cordova/config.xml +0 -33
- package/examples/cordova/package-lock.json +0 -1772
- package/examples/cordova/package.json +0 -33
- package/examples/cordova/scripts/android.sh +0 -8
- package/examples/cordova/scripts/bundle.sh +0 -4
- package/examples/cordova/scripts/ios.sh +0 -8
- package/examples/cordova/scripts/setup.sh +0 -8
- package/examples/cordova/www/bootstrap.js +0 -30
- package/examples/cordova/www/images/logo.png +0 -0
- package/examples/cordova/www/index.html +0 -6
- package/examples/cordova/www/index.js +0 -30
- package/examples/cordova/www/src/extra/bt_device.js +0 -32
- package/examples/cordova/www/src/extra/custom_rfid.js +0 -60
- package/examples/cordova/www/src/main.css +0 -134
- package/examples/cordova/www/src/main.html +0 -38
- package/examples/cordova/www/src/main.js +0 -173
- package/examples/ionic/src/images/document.png +0 -0
- package/examples/ionic/src/images/portrait.png +0 -0
- /package/examples/ionic/{src/assets → assets}/.gitkeep +0 -0
- /package/examples/{cordova/www → ionic}/images/document.png +0 -0
- /package/examples/ionic/{src/images → images}/icon.png +0 -0
- /package/examples/{cordova/www → ionic}/images/portrait.png +0 -0
- /package/examples/ionic/{index.ts → index.tsx} +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
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// Use IntelliSense to learn about possible attributes.
|
|
3
|
-
// Hover to view descriptions of existing attributes.
|
|
4
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
-
"version": "0.2.0",
|
|
6
|
-
"configurations": [
|
|
7
|
-
{
|
|
8
|
-
"name": "Debug Android on emulator",
|
|
9
|
-
"type": "cordova",
|
|
10
|
-
"request": "launch",
|
|
11
|
-
"platform": "android",
|
|
12
|
-
"target": "emulator",
|
|
13
|
-
"port": 9222,
|
|
14
|
-
"sourceMaps": true,
|
|
15
|
-
"cwd": "${workspaceFolder}"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "Debug Android on device",
|
|
19
|
-
"type": "cordova",
|
|
20
|
-
"request": "launch",
|
|
21
|
-
"platform": "android",
|
|
22
|
-
"target": "device",
|
|
23
|
-
"port": 9222,
|
|
24
|
-
"sourceMaps": true,
|
|
25
|
-
"cwd": "${workspaceFolder}"
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
// Type definitions for Apache Cordova
|
|
2
|
-
// Project: http://cordova.apache.org
|
|
3
|
-
// Definitions by: Microsoft Open Technologies Inc. <http://msopentech.com>
|
|
4
|
-
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
|
5
|
-
//
|
|
6
|
-
// Copyright (c) Microsoft Open Technologies, Inc.
|
|
7
|
-
// Licensed under the MIT license.
|
|
8
|
-
|
|
9
|
-
interface Cordova {
|
|
10
|
-
/** Invokes native functionality by specifying corresponding service name, action and optional parameters.
|
|
11
|
-
* @param success A success callback function.
|
|
12
|
-
* @param fail An error callback function.
|
|
13
|
-
* @param service The service name to call on the native side (corresponds to a native class).
|
|
14
|
-
* @param action The action name to call on the native side (generally corresponds to the native class method).
|
|
15
|
-
* @param args An array of arguments to pass into the native environment.
|
|
16
|
-
*/
|
|
17
|
-
exec(success: () => any, fail: () => any, service: string, action: string, args?: string[]): void;
|
|
18
|
-
/** Gets the operating system name. */
|
|
19
|
-
platformId: string;
|
|
20
|
-
/** Gets Cordova framework version */
|
|
21
|
-
version: string;
|
|
22
|
-
/** Defines custom logic as a Cordova module. Other modules can later access it using module name provided. */
|
|
23
|
-
define(moduleName: string, factory: (require: any, exports: any, module: any) => any): void;
|
|
24
|
-
/** Access a Cordova module by name. */
|
|
25
|
-
require(moduleName: string): any;
|
|
26
|
-
/** Namespace for Cordova plugin functionality */
|
|
27
|
-
plugins:CordovaPlugins;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
interface CordovaPlugins {}
|
|
31
|
-
|
|
32
|
-
interface Document {
|
|
33
|
-
addEventListener(type: "deviceready", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
34
|
-
addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
35
|
-
addEventListener(type: "resume", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
36
|
-
addEventListener(type: "backbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
37
|
-
addEventListener(type: "menubutton", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
38
|
-
addEventListener(type: "searchbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
39
|
-
addEventListener(type: "startcallbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
40
|
-
addEventListener(type: "endcallbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
41
|
-
addEventListener(type: "volumedownbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
42
|
-
addEventListener(type: "volumeupbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
43
|
-
|
|
44
|
-
removeEventListener(type: "deviceready", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
45
|
-
removeEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
46
|
-
removeEventListener(type: "resume", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
47
|
-
removeEventListener(type: "backbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
48
|
-
removeEventListener(type: "menubutton", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
49
|
-
removeEventListener(type: "searchbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
50
|
-
removeEventListener(type: "startcallbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
51
|
-
removeEventListener(type: "endcallbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
52
|
-
removeEventListener(type: "volumedownbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
53
|
-
removeEventListener(type: "volumeupbutton", listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
54
|
-
|
|
55
|
-
addEventListener(type: string, listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
56
|
-
removeEventListener(type: string, listener: (ev: Event) => any, useCapture?: boolean): void;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
interface Window {
|
|
60
|
-
cordova:Cordova;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// cordova/argscheck module
|
|
64
|
-
interface ArgsCheck {
|
|
65
|
-
checkArgs(argsSpec: string, functionName: string, args: any[], callee?: any): void;
|
|
66
|
-
getValue(value?: any, defaultValue?: any): any;
|
|
67
|
-
enableChecks: boolean;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// cordova/urlutil module
|
|
71
|
-
interface UrlUtil {
|
|
72
|
-
makeAbsolute(url: string): string
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/** Apache Cordova instance */
|
|
76
|
-
declare var cordova: Cordova;
|
|
77
|
-
|
|
78
|
-
declare module 'cordova' {
|
|
79
|
-
export = cordova;
|
|
80
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# Regula Document Reader Cordova demo application
|
|
2
|
-
|
|
3
|
-
## How to build demo application
|
|
4
|
-
1. Download or the clone current repository using the command `git clone https://github.com/regulaforensics/npm-document-reader.git`.
|
|
5
|
-
|
|
6
|
-
2. Execute `npm run setup` within this directory.
|
|
7
|
-
|
|
8
|
-
3. Run the app:
|
|
9
|
-
* IOS: `npm run ios`.
|
|
10
|
-
* Android: `npm run android`.
|
|
11
|
-
|
|
12
|
-
**Note**: this is just one way of running the app. You can also pass `-o` or `--open` argument to the command, and this will open Xcode/Android Studio, then run the app directly from the IDE. Overall, this is a more consistent way, so if you're having troubles running the app from terminal, try running it from the IDE.
|
|
13
|
-
|
|
14
|
-
## Additional examples
|
|
15
|
-
|
|
16
|
-
### Bluetooth device
|
|
17
|
-
|
|
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 you device. After running the app, click `Connect`.
|
|
19
|
-
|
|
20
|
-
### RFID self hosted UI
|
|
21
|
-
|
|
22
|
-
This app also demonstraits how you can implement you own UI for the RFID reading process. To enable it, change the `useRfidSelfHostedUI` constant to true in `src/extra/custom_rfid`. Run the app and initiate RFID reading.
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<widget android-packageName="com.regula.dr.fullauthrfid" ios-CFBundleIdentifier="regula.DocumentReader" version="1.0.0"
|
|
2
|
-
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
3
|
-
<name>DocumentReader</name>
|
|
4
|
-
<hook type="before_prepare" src="scripts/bundle.sh" />
|
|
5
|
-
<platform name="android">
|
|
6
|
-
<resource-file src="www/db.dat" target="app/src/main/assets/Regula/db.dat" />
|
|
7
|
-
<preference name="orientation" value="portrait" />
|
|
8
|
-
<preference name="android-minSdkVersion" value="24" />
|
|
9
|
-
<preference name="android-targetSdkVersion" value="35" />
|
|
10
|
-
<preference name="GradlePluginKotlinEnabled" value="true" />
|
|
11
|
-
<config-file parent="/*" target="AndroidManifest.xml">
|
|
12
|
-
<uses-permission android:name="android.permission.NFC" />
|
|
13
|
-
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
|
|
14
|
-
</config-file>
|
|
15
|
-
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
|
|
16
|
-
<application android:usesCleartextTraffic="true" />
|
|
17
|
-
</edit-config>
|
|
18
|
-
</platform>
|
|
19
|
-
<platform name="ios">
|
|
20
|
-
<resource-file src="www/db.dat" />
|
|
21
|
-
<preference name="orientation" value="portrait" />
|
|
22
|
-
<preference name="DisallowOverscroll" value="true" />
|
|
23
|
-
<config-file target="*-Info.plist" parent="NSCameraUsageDescription">
|
|
24
|
-
<string>To use camera</string>
|
|
25
|
-
</config-file>
|
|
26
|
-
<config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
|
|
27
|
-
<string>To pick images</string>
|
|
28
|
-
</config-file>
|
|
29
|
-
<config-file target="*-Info.plist" parent="NSBluetoothAlwaysUsageDescription">
|
|
30
|
-
<string>To use btdevice</string>
|
|
31
|
-
</config-file>
|
|
32
|
-
</platform>
|
|
33
|
-
</widget>
|