@regulaforensics/ionic-native-document-reader 6.1.2 → 6.2.1

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 CHANGED
@@ -6,40 +6,9 @@ You can use native camera to scan the documents or image from gallery for extrac
6
6
  This repository contains the source code of the Document Reader API, and the sample application that demonstrates the _**API**_ calls you can use to interact with the Document Reader library.
7
7
 
8
8
  # Contents
9
- * [How to build demo application](#how-to-build-demo-application)
10
- * [Troubleshooting license issues](#troubleshooting-license-issues)
11
9
  * [Documentation](#documentation)
12
10
  * [Additional information](#additional-information)
13
11
 
14
- ## How to build demo application
15
- 1. Visit [licensing.regulaforensics.com](https://licensing.regulaforensics.com) to get a trial license (`regula.license` file). The license creation wizard will guide you through the necessary steps.
16
- 2. Download or clone this repository using the command `git clone https://github.com/regulaforensics/DocumentReader-Ionic-Plugin.git`.
17
- 3. Run the following commands in Terminal:
18
- ```bash
19
- $ cd example
20
- $ npm install
21
- $ ionic cordova prepare
22
- ```
23
-
24
- 4. Android:
25
- * Copy the `regula.license` file to the `example/platforms/android/app/src/main/assets` folder.
26
- * Change the application ID to the one you have specified during the registration at [licensing.regulaforensics.com](https://licensing.regulaforensics.com).
27
- * Run `ionic cordova build android`, then`ionic cordova run android` inside `example` folder - this is just one way to run the app. You can also run it directly from within Android Studio.
28
-
29
- 5. iOS:
30
- * Add the `regula.license` to the target.
31
- * Change the Bundle Identifier to the one you have specified during the registration at [licensing.regulaforensics.com](https://licensing.regulaforensics.com).
32
- * Run `ionic cordova build ios`, then `ionic cordova run ios` inside `example` folder - this is just one way to run the app. You can also run it directly from within Xcode.
33
-
34
- ### Troubleshooting license issues
35
- If you have issues with license verification when running the application, please verify that next is true:
36
- 1. The OS, which you use, is specified in the license (e.g., Android and/or iOS).
37
- 2. The application (Bundle) ID, which you use, is specified in the license.
38
- 3. The license is valid (not expired).
39
- 4. The date and time on the device, where you run the application, are valid.
40
- 5. You use the latest release version of the Document Reader SDK.
41
- 6. You placed the `license` into the correct folder as described [here](#how-to-build-demo-application).
42
-
43
12
  ## Documentation
44
13
  You can find documentation on API [here](https://docs.regulaforensics.com/develop/doc-reader-sdk/mobile/ionic).
45
14
 
@@ -0,0 +1,28 @@
1
+ # How to build demo application
2
+ 1. Visit [licensing.regulaforensics.com](https://licensing.regulaforensics.com) to get a trial license (`regula.license` file). The license creation wizard will guide you through the necessary steps.
3
+ 2. Download or clone this repository using the command `git clone https://github.com/regulaforensics/DocumentReader-Ionic-Plugin.git`.
4
+ 3. Run the following commands in Terminal:
5
+ ```bash
6
+ $ cd example
7
+ $ npm install
8
+ $ ionic cordova prepare
9
+ ```
10
+ 4. Copy the `regula.license` file to the `example/src/assets` folder.
11
+
12
+ 5. Android:
13
+ * Change the application ID to the one you have specified during the registration at [licensing.regulaforensics.com](https://licensing.regulaforensics.com).
14
+ * Run `ionic cordova build android`, then`ionic cordova run android` inside `example` folder - this is just one way to run the app. You can also run it directly from within Android Studio.
15
+
16
+ 6. iOS:
17
+ * Change the Bundle Identifier to the one you have specified during the registration at [licensing.regulaforensics.com](https://licensing.regulaforensics.com).
18
+ * Run `ionic cordova build ios`, then `ionic cordova run ios` inside `example` folder - this is just one way to run the app. You can also run it directly from within Xcode.
19
+
20
+
21
+ # Troubleshooting license issues
22
+ If you have issues with license verification when running the application, please verify that next is true:
23
+ 1. The OS, which you use, is specified in the license (e.g., Android and/or iOS).
24
+ 2. The application (Bundle) ID, which you use, is specified in the license.
25
+ 3. The license is valid (not expired).
26
+ 4. The date and time on the device, where you run the application, are valid.
27
+ 5. You use the latest release version of the Document Reader SDK.
28
+ 6. You placed the `license` into the correct folder as described [here](#how-to-build-demo-application).
@@ -30,9 +30,9 @@
30
30
  "cordova-ios": "^6.1.1",
31
31
  "cordova-plugin-add-swift-support": "^2.0.2",
32
32
  "cordova-plugin-android-permissions": "^1.1.0",
33
- "@regulaforensics/cordova-plugin-document-reader-api": "^6.1.2",
34
- "@regulaforensics/cordova-plugin-document-reader-core-fullrfid": "^6.1.0",
35
- "@regulaforensics/ionic-native-document-reader": "^6.1.2",
33
+ "@regulaforensics/cordova-plugin-document-reader-api": "^6.2.1",
34
+ "@regulaforensics/cordova-plugin-document-reader-core-fullrfid": "^6.2.1",
35
+ "@regulaforensics/ionic-native-document-reader": "^6.2.1",
36
36
  "cordova-plugin-file": "^6.0.2",
37
37
  "cordova-plugin-telerik-imagepicker": "^2.3.5",
38
38
  "core-js": "^3.6.5",
@@ -56,7 +56,7 @@ export class HomePage {
56
56
  app.status.nativeElement.innerHTML = "loading......"
57
57
  app.status.nativeElement.style.backgroundColor = "grey"
58
58
  app.platform.ready().then(() => {
59
- readFile("", "regula.license", (license) => {
59
+ readFile("www/assets", "regula.license", (license) => {
60
60
  DocumentReader.prepareDatabase("Full").subscribe(r => {
61
61
  if (r != "database prepared")
62
62
  app.status.nativeElement.innerHTML = "Downloading database: " + r + "%"
@@ -160,8 +160,8 @@ export class HomePage {
160
160
  }
161
161
 
162
162
  function updateRfidUI(notification: DocumentReaderNotification) {
163
- if (notification.code === Enum.eRFID_NotificationAndErrorCodes.RFID_NOTIFICATION_PCSC_READING_DATAGROUP)
164
- rfidDescription = Enum.eRFID_DataFile_Type.getTranslation(notification.number)
163
+ if (notification.code === Enum.eRFID_NotificationCodes.RFID_NOTIFICATION_PCSC_READING_DATAGROUP)
164
+ rfidDescription = Enum.eRFID_DataFile_Type.getTranslation(notification.attachment)
165
165
  rfidUIHeader = "Reading RFID"
166
166
  rfidUIHeaderColor = "black"
167
167
  rfidProgress = notification.value