@regulaforensics/ionic-native-document-reader 6.2.1 → 6.3.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/example/README.md CHANGED
@@ -5,23 +5,21 @@
5
5
  ```bash
6
6
  $ cd example
7
7
  $ npm install
8
+ $ npx jetify
8
9
  $ ionic cordova prepare
9
10
  ```
10
11
  4. Copy the `regula.license` file to the `example/src/assets` folder.
11
12
 
12
13
  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
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
15
 
16
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
17
  * 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
18
 
20
19
 
21
20
  # Troubleshooting license issues
22
21
  If you have issues with license verification when running the application, please verify that next is true:
23
22
  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
23
  3. The license is valid (not expired).
26
24
  4. The date and time on the device, where you run the application, are valid.
27
25
  5. You use the latest release version of the Document Reader SDK.
@@ -147,7 +147,7 @@
147
147
  }
148
148
  },
149
149
  "ionic-cordova-build": {
150
- "builder": "@ionic/angular-toolkit:cordova-build",
150
+ "builder": "@ionic/cordova-builders:cordova-build",
151
151
  "options": {
152
152
  "browserTarget": "app:build"
153
153
  },
@@ -158,7 +158,7 @@
158
158
  }
159
159
  },
160
160
  "ionic-cordova-serve": {
161
- "builder": "@ionic/angular-toolkit:cordova-serve",
161
+ "builder": "@ionic/cordova-builders:cordova-serve",
162
162
  "options": {
163
163
  "cordovaBuildTarget": "app:ionic-cordova-build",
164
164
  "devServerTarget": "app:serve"
@@ -29,6 +29,7 @@
29
29
  </config-file>
30
30
  <preference name="android-minSdkVersion" value="22" />
31
31
  <preference name="android-compileSdkVersion" value="29" />
32
+ <preference name="AndroidXEnabled" value="true" />
32
33
  <resource-file src="resources/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
33
34
  <allow-intent href="market:*" />
34
35
  <icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
@@ -13,43 +13,45 @@
13
13
  },
14
14
  "private": true,
15
15
  "dependencies": {
16
- "@angular/common": "~10.1.4",
17
- "@angular/core": "~10.1.4",
18
- "@angular/forms": "~10.1.4",
19
- "@angular/platform-browser": "~10.1.4",
20
- "@angular/platform-browser-dynamic": "~10.1.4",
21
- "@angular/router": "~10.1.4",
16
+ "@angular/common": "~13.3.2",
17
+ "@angular/core": "~13.3.2",
18
+ "@angular/forms": "~13.3.2",
19
+ "@angular/platform-browser": "~13.3.2",
20
+ "@angular/platform-browser-dynamic": "~13.3.2",
21
+ "@angular/router": "~13.3.2",
22
22
  "@ionic-native/android-permissions": "^5.28.0",
23
23
  "@ionic-native/core": "^5.28.0",
24
24
  "@ionic-native/file": "^5.28.0",
25
25
  "@ionic-native/image-picker": "^5.28.0",
26
26
  "@ionic-native/splash-screen": "^5.28.0",
27
27
  "@ionic-native/status-bar": "^5.28.0",
28
- "@ionic/angular": "^5.3.4",
29
- "cordova-android": "^9.0.0",
30
- "cordova-ios": "^6.1.1",
28
+ "@ionic/angular": "^6.0.15",
29
+ "@ionic/cordova-builders": "^6.1.0",
30
+ "cordova-ios": "^6.2.0",
31
+ "@regulaforensics/cordova-plugin-document-reader-api": "^6.3.1",
32
+ "@regulaforensics/cordova-plugin-document-reader-core-fullrfid": "^6.3.0",
33
+ "@regulaforensics/ionic-native-document-reader": "^6.3.1",
34
+ "cordova-android": "^10.1.1",
31
35
  "cordova-plugin-add-swift-support": "^2.0.2",
32
36
  "cordova-plugin-android-permissions": "^1.1.0",
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
37
  "cordova-plugin-file": "^6.0.2",
37
38
  "cordova-plugin-telerik-imagepicker": "^2.3.5",
38
39
  "core-js": "^3.6.5",
39
40
  "rxjs": "~6.6.3",
40
41
  "tslib": "^2.0.1",
41
- "zone.js": "~0.11.1"
42
+ "zone.js": "~0.11.1",
43
+ "jetifier": "^2.0.0"
42
44
  },
43
45
  "devDependencies": {
44
46
  "@angular-devkit/architect": "~0.1001.4",
45
- "@angular-devkit/build-angular": "~0.1001.4",
46
- "@angular-devkit/core": "~10.1.4",
47
- "@angular-devkit/schematics": "~10.1.4",
48
- "@angular/cli": "~10.1.4",
49
- "@angular/compiler": "~10.1.4",
50
- "@angular/compiler-cli": "~10.1.4",
51
- "@angular/language-service": "~10.1.4",
52
- "@ionic/angular-toolkit": "^2.3.3",
47
+ "@angular-devkit/build-angular": "~13.3.2",
48
+ "@angular-devkit/core": "~13.3.2",
49
+ "@angular-devkit/schematics": "~13.3.2",
50
+ "@angular/cli": "~13.3.2",
51
+ "@angular/compiler": "~13.3.2",
52
+ "@angular/compiler-cli": "~13.3.2",
53
+ "@angular/language-service": "~13.3.2",
54
+ "@ionic/angular-toolkit": "^6.1.0",
53
55
  "@types/jasmine": "~3.5.14",
54
56
  "@types/jasminewd2": "~2.0.8",
55
57
  "@types/node": "~14.11.5",
@@ -59,10 +61,10 @@
59
61
  "cordova-plugin-ionic-webview": "^5.0.0",
60
62
  "cordova-plugin-splashscreen": "^6.0.0",
61
63
  "cordova-plugin-statusbar": "^2.4.3",
62
- "cordova-plugin-whitelist": "^1.3.4",
63
- "jasmine-core": "~3.6.0",
64
+ "cordova-plugin-whitelist": "^1.3.5",
65
+ "jasmine-core": "~4.0.1",
64
66
  "jasmine-spec-reporter": "~6.0.0",
65
- "karma": "~5.2.3",
67
+ "karma": "~6.3.17",
66
68
  "karma-chrome-launcher": "~3.1.0",
67
69
  "karma-coverage-istanbul-reporter": "~3.0.3",
68
70
  "karma-jasmine": "~4.0.1",
@@ -70,7 +72,7 @@
70
72
  "protractor": "~7.0.0",
71
73
  "ts-node": "~9.0.0",
72
74
  "tslint": "~5.20.1",
73
- "typescript": "~4.0.3"
75
+ "typescript": "~4.4.2"
74
76
  },
75
77
  "description": "An Ionic project",
76
78
  "cordova": {
@@ -78,7 +80,9 @@
78
80
  "@regulaforensics/cordova-plugin-document-reader-api": {},
79
81
  "@regulaforensics/cordova-plugin-document-reader-core-fullrfid": {},
80
82
  "cordova-plugin-android-permissions": {},
81
- "cordova-plugin-telerik-imagepicker": {},
83
+ "cordova-plugin-telerik-imagepicker": {
84
+ "PHOTO_LIBRARY_USAGE_DESCRIPTION": " "
85
+ },
82
86
  "cordova-plugin-file": {},
83
87
  "cordova-plugin-whitelist": {},
84
88
  "cordova-plugin-statusbar": {},
package/index.d.ts CHANGED
@@ -995,6 +995,7 @@ export declare const eImageQualityCheckType: {
995
995
  IQC_BOUNDS: number;
996
996
  IQC_SCREEN_CAPTURE: number;
997
997
  IQC_PORTRAIT: number;
998
+ IQC_HANDWRITTEN: number;
998
999
  };
999
1000
  export declare const eLDS_ParsingErrorCodes: {
1000
1001
  ERR_LDS_OK: number;
@@ -3107,6 +3108,7 @@ export declare const Enum: {
3107
3108
  IQC_BOUNDS: number;
3108
3109
  IQC_SCREEN_CAPTURE: number;
3109
3110
  IQC_PORTRAIT: number;
3111
+ IQC_HANDWRITTEN: number;
3110
3112
  };
3111
3113
  eLDS_ParsingErrorCodes: {
3112
3114
  ERR_LDS_OK: number;
@@ -5136,13 +5138,17 @@ export declare class DocumentReaderOriginal extends IonicNativePlugin {
5136
5138
  */
5137
5139
  parseCoreResults(json: any): Promise<any>;
5138
5140
  /**
5139
- * Use this method to initialize Document Reader with the path to the database
5141
+ * The method call sets the given TCCParams to the RFID session. The parameters are required to be set before starting RFID session.
5140
5142
  *
5141
- * @param {string} license License`s base64 representation
5142
- * @param {string} path Path to the database
5143
+ * @param {object} params Object with structure
5144
+ * "serviceUrlTA": "some string"
5145
+ * "serviceUrlPA": "some string"
5146
+ * "pfxCertUrl": "some string"
5147
+ * "pfxCert": "base64 encoded binary"
5148
+ * "pfxPassPhrase": "some string"
5143
5149
  * @return {Promise<any>} Returns a promise
5144
5150
  */
5145
- initializeReaderWithDatabasePath(license: any, path: any): Promise<any>;
5151
+ setTCCParams(params: any): Promise<any>;
5146
5152
  /**
5147
5153
  * Use this method to initialize Document Reader with database binary
5148
5154
  *