@regulaforensics/ionic-native-document-reader 9.7.628-nightly → 9.7.630-rc
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/browserslist +12 -0
- package/example/config.xml +100 -17
- package/example/e2e/protractor.conf.js +28 -0
- package/example/e2e/src/app.e2e-spec.ts +14 -0
- package/example/e2e/src/app.po.ts +11 -0
- package/example/e2e/tsconfig.json +13 -0
- package/example/karma.conf.js +31 -0
- package/example/package.json +9 -5
- package/example/src/app/app.component.spec.ts +5 -1
- package/example/src/app/app.component.ts +3 -0
- package/example/src/app/app.module.ts +2 -0
- package/example/tsconfig.spec.json +19 -0
- package/example/tslint.json +88 -0
- package/package.json +1 -1
- package/reactExample/package.json +3 -3
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
|
|
2
|
+
# For additional information regarding the format and rule options, please see:
|
|
3
|
+
# https://github.com/browserslist/browserslist#queries
|
|
4
|
+
|
|
5
|
+
# You can see what browsers were selected by your queries by running:
|
|
6
|
+
# npx browserslist
|
|
7
|
+
|
|
8
|
+
> 0.5%
|
|
9
|
+
last 2 versions
|
|
10
|
+
Firefox ESR
|
|
11
|
+
not dead
|
|
12
|
+
not IE 9-11 # For IE 9-11 support, remove 'not'.
|
package/example/config.xml
CHANGED
|
@@ -1,22 +1,61 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
2
|
<widget android-packageName="com.regula.dr.fullauthrfid" ios-CFBundleIdentifier="regula.DocumentReader" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
|
3
3
|
<name>DocumentReader</name>
|
|
4
|
+
<description>A sample Regula Document Reader application for reading and validation of identification documents.</description>
|
|
5
|
+
<author email="cordova.support@regulaforensics.com" href="https://mobile.regulaforensics.com">Regula Forensics Inc.</author>
|
|
6
|
+
<content src="index.html" />
|
|
7
|
+
<access origin="*" />
|
|
8
|
+
<allow-intent href="http://*/*" />
|
|
9
|
+
<allow-intent href="https://*/*" />
|
|
10
|
+
<allow-intent href="tel:*" />
|
|
11
|
+
<allow-intent href="sms:*" />
|
|
12
|
+
<allow-intent href="mailto:*" />
|
|
13
|
+
<allow-intent href="geo:*" />
|
|
14
|
+
<preference name="ScrollEnabled" value="false" />
|
|
15
|
+
<preference name="BackupWebStorage" value="none" />
|
|
16
|
+
<preference name="SplashMaintainAspectRatio" value="true" />
|
|
17
|
+
<preference name="FadeSplashScreenDuration" value="300" />
|
|
18
|
+
<preference name="SplashShowOnlyFirstTime" value="false" />
|
|
19
|
+
<preference name="SplashScreen" value="screen" />
|
|
20
|
+
<preference name="SplashScreenDelay" value="3000" />
|
|
4
21
|
<platform name="android">
|
|
5
|
-
<resource-file src="src/assets/db.dat" target="app/src/main/assets/Regula/db.dat"/>
|
|
6
22
|
<preference name="orientation" value="portrait" />
|
|
7
|
-
<
|
|
23
|
+
<resource-file src="src/assets/db.dat" target="app/src/main/assets/Regula/db.dat"/>
|
|
24
|
+
<framework src="com.android.support:appcompat-v7:+" />
|
|
8
25
|
<config-file parent="/*" target="AndroidManifest.xml">
|
|
9
26
|
<uses-permission android:name="android.permission.NFC" />
|
|
10
27
|
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
|
|
28
|
+
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
|
|
11
29
|
</config-file>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
30
|
+
|
|
31
|
+
<preference name="android-minSdkVersion" value="21" />
|
|
32
|
+
<preference name="android-targetSdkVersion" value="33" />
|
|
33
|
+
<preference name="GradlePluginKotlinEnabled" value="true" />
|
|
34
|
+
|
|
35
|
+
<resource-file src="resources/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
|
|
36
|
+
<allow-intent href="market:*" />
|
|
37
|
+
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
|
|
38
|
+
<icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
|
|
39
|
+
<icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
|
|
40
|
+
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
|
|
41
|
+
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
|
|
42
|
+
<icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
|
|
43
|
+
<splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
|
|
44
|
+
<splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
|
|
45
|
+
<splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
|
|
46
|
+
<splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
|
|
47
|
+
<splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
|
|
48
|
+
<splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
|
|
49
|
+
<splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
|
|
50
|
+
<splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
|
|
51
|
+
<splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
|
|
52
|
+
<splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
|
|
53
|
+
<splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
|
|
54
|
+
<splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
|
|
15
55
|
</platform>
|
|
16
56
|
<platform name="ios">
|
|
17
|
-
<resource-file src="src/assets/db.dat" />
|
|
18
|
-
<preference name="deployment-target" value="14.0" />
|
|
19
57
|
<preference name="orientation" value="portrait" />
|
|
58
|
+
<resource-file src="src/assets/db.dat" />
|
|
20
59
|
<allow-intent href="itms:*" />
|
|
21
60
|
<allow-intent href="itms-apps:*" />
|
|
22
61
|
<config-file parent="NSCameraUsageDescription" target="*-Info.plist">
|
|
@@ -25,16 +64,10 @@
|
|
|
25
64
|
<config-file parent="NSPhotoLibraryUsageDescription" target="*-Info.plist">
|
|
26
65
|
<string>To pick images</string>
|
|
27
66
|
</config-file>
|
|
28
|
-
<config-file target="*-Info.plist"
|
|
29
|
-
<string>To use camera</string>
|
|
30
|
-
</config-file>
|
|
31
|
-
<config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
|
|
32
|
-
<string>To pick images</string>
|
|
33
|
-
</config-file>
|
|
34
|
-
<config-file target="*-Info.plist" parent="NFCReaderUsageDescription">
|
|
67
|
+
<config-file parent="NFCReaderUsageDescription" target="*-Info.plist">
|
|
35
68
|
<string>To use NFC</string>
|
|
36
69
|
</config-file>
|
|
37
|
-
<config-file
|
|
70
|
+
<config-file parent="com.apple.developer.nfc.readersession.iso7816.select-identifiers" target="*-Info.plist">
|
|
38
71
|
<array>
|
|
39
72
|
<string>A0000002471001</string>
|
|
40
73
|
<string>E80704007F00070302</string>
|
|
@@ -45,17 +78,67 @@
|
|
|
45
78
|
<string>A00000045645444C2D3031</string>
|
|
46
79
|
</array>
|
|
47
80
|
</config-file>
|
|
48
|
-
<config-file
|
|
81
|
+
<config-file parent="com.apple.developer.nfc.readersession.formats" target="*-Debug.plist">
|
|
49
82
|
<array>
|
|
50
83
|
<string>NDEF</string>
|
|
51
84
|
<string>TAG</string>
|
|
52
85
|
</array>
|
|
53
86
|
</config-file>
|
|
54
|
-
<config-file
|
|
87
|
+
<config-file parent="com.apple.developer.nfc.readersession.formats" target="*-Release.plist">
|
|
55
88
|
<array>
|
|
56
89
|
<string>NDEF</string>
|
|
57
90
|
<string>TAG</string>
|
|
58
91
|
</array>
|
|
59
92
|
</config-file>
|
|
93
|
+
<icon height="57" src="resources/ios/icon/icon.png" width="57" />
|
|
94
|
+
<icon height="114" src="resources/ios/icon/icon@2x.png" width="114" />
|
|
95
|
+
<icon height="29" src="resources/ios/icon/icon-small.png" width="29" />
|
|
96
|
+
<icon height="58" src="resources/ios/icon/icon-small@2x.png" width="58" />
|
|
97
|
+
<icon height="87" src="resources/ios/icon/icon-small@3x.png" width="87" />
|
|
98
|
+
<icon height="20" src="resources/ios/icon/icon-20.png" width="20" />
|
|
99
|
+
<icon height="40" src="resources/ios/icon/icon-20@2x.png" width="40" />
|
|
100
|
+
<icon height="60" src="resources/ios/icon/icon-20@3x.png" width="60" />
|
|
101
|
+
<icon height="48" src="resources/ios/icon/icon-24@2x.png" width="48" />
|
|
102
|
+
<icon height="55" src="resources/ios/icon/icon-27.5@2x.png" width="55" />
|
|
103
|
+
<icon height="29" src="resources/ios/icon/icon-29.png" width="29" />
|
|
104
|
+
<icon height="58" src="resources/ios/icon/icon-29@2x.png" width="58" />
|
|
105
|
+
<icon height="87" src="resources/ios/icon/icon-29@3x.png" width="87" />
|
|
106
|
+
<icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
|
|
107
|
+
<icon height="80" src="resources/ios/icon/icon-40@2x.png" width="80" />
|
|
108
|
+
<icon height="120" src="resources/ios/icon/icon-40@3x.png" width="120" />
|
|
109
|
+
<icon height="88" src="resources/ios/icon/icon-44@2x.png" width="88" />
|
|
110
|
+
<icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
|
|
111
|
+
<icon height="100" src="resources/ios/icon/icon-50@2x.png" width="100" />
|
|
112
|
+
<icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
|
|
113
|
+
<icon height="120" src="resources/ios/icon/icon-60@2x.png" width="120" />
|
|
114
|
+
<icon height="180" src="resources/ios/icon/icon-60@3x.png" width="180" />
|
|
115
|
+
<icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
|
|
116
|
+
<icon height="144" src="resources/ios/icon/icon-72@2x.png" width="144" />
|
|
117
|
+
<icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
|
|
118
|
+
<icon height="152" src="resources/ios/icon/icon-76@2x.png" width="152" />
|
|
119
|
+
<icon height="167" src="resources/ios/icon/icon-83.5@2x.png" width="167" />
|
|
120
|
+
<icon height="172" src="resources/ios/icon/icon-86@2x.png" width="172" />
|
|
121
|
+
<icon height="196" src="resources/ios/icon/icon-98@2x.png" width="196" />
|
|
122
|
+
<icon height="1024" src="resources/ios/icon/icon-1024.png" width="1024" />
|
|
123
|
+
<splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
|
|
124
|
+
<splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" />
|
|
125
|
+
<splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" />
|
|
126
|
+
<splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" />
|
|
127
|
+
<splash height="1125" src="resources/ios/splash/Default-Landscape-2436h.png" width="2436" />
|
|
128
|
+
<splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" />
|
|
129
|
+
<splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" />
|
|
130
|
+
<splash height="1536" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" />
|
|
131
|
+
<splash height="2732" src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" />
|
|
132
|
+
<splash height="2048" src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" />
|
|
133
|
+
<splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" />
|
|
134
|
+
<splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" />
|
|
135
|
+
<splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" />
|
|
136
|
+
<splash height="2436" src="resources/ios/splash/Default-2436h.png" width="1125" />
|
|
137
|
+
<splash height="2732" src="resources/ios/splash/Default@2x~universal~anyany.png" width="2732" />
|
|
60
138
|
</platform>
|
|
139
|
+
<plugin name="cordova-plugin-statusbar" spec="2.4.2" />
|
|
140
|
+
<plugin name="cordova-plugin-device" spec="2.0.2" />
|
|
141
|
+
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
|
|
142
|
+
<plugin name="cordova-plugin-ionic-webview" spec="^4.0.0" />
|
|
143
|
+
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
|
|
61
144
|
</widget>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Protractor configuration file, see link for more information
|
|
2
|
+
// https://github.com/angular/protractor/blob/master/lib/config.ts
|
|
3
|
+
|
|
4
|
+
const { SpecReporter } = require('jasmine-spec-reporter');
|
|
5
|
+
|
|
6
|
+
exports.config = {
|
|
7
|
+
allScriptsTimeout: 11000,
|
|
8
|
+
specs: [
|
|
9
|
+
'./src/**/*.e2e-spec.ts'
|
|
10
|
+
],
|
|
11
|
+
capabilities: {
|
|
12
|
+
'browserName': 'chrome'
|
|
13
|
+
},
|
|
14
|
+
directConnect: true,
|
|
15
|
+
baseUrl: 'http://localhost:4200/',
|
|
16
|
+
framework: 'jasmine',
|
|
17
|
+
jasmineNodeOpts: {
|
|
18
|
+
showColors: true,
|
|
19
|
+
defaultTimeoutInterval: 30000,
|
|
20
|
+
print: function() {}
|
|
21
|
+
},
|
|
22
|
+
onPrepare() {
|
|
23
|
+
require('ts-node').register({
|
|
24
|
+
project: require('path').join(__dirname, './tsconfig.json')
|
|
25
|
+
});
|
|
26
|
+
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AppPage } from './app.po';
|
|
2
|
+
|
|
3
|
+
describe('new App', () => {
|
|
4
|
+
let page: AppPage;
|
|
5
|
+
|
|
6
|
+
beforeEach(() => {
|
|
7
|
+
page = new AppPage();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('should be blank', () => {
|
|
11
|
+
page.navigateTo();
|
|
12
|
+
expect(page.getParagraphText()).toContain('The world is your oyster.');
|
|
13
|
+
});
|
|
14
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Karma configuration file, see link for more information
|
|
2
|
+
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
+
|
|
4
|
+
module.exports = function (config) {
|
|
5
|
+
config.set({
|
|
6
|
+
basePath: '',
|
|
7
|
+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
8
|
+
plugins: [
|
|
9
|
+
require('karma-jasmine'),
|
|
10
|
+
require('karma-chrome-launcher'),
|
|
11
|
+
require('karma-jasmine-html-reporter'),
|
|
12
|
+
require('karma-coverage-istanbul-reporter'),
|
|
13
|
+
require('@angular-devkit/build-angular/plugins/karma')
|
|
14
|
+
],
|
|
15
|
+
client: {
|
|
16
|
+
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
17
|
+
},
|
|
18
|
+
coverageIstanbulReporter: {
|
|
19
|
+
dir: require('path').join(__dirname, '../coverage'),
|
|
20
|
+
reports: ['html', 'lcovonly', 'text-summary'],
|
|
21
|
+
fixWebpackSourcePaths: true
|
|
22
|
+
},
|
|
23
|
+
reporters: ['progress', 'kjhtml'],
|
|
24
|
+
port: 9876,
|
|
25
|
+
colors: true,
|
|
26
|
+
logLevel: config.LOG_INFO,
|
|
27
|
+
autoWatch: true,
|
|
28
|
+
browsers: ['Chrome'],
|
|
29
|
+
singleRun: false
|
|
30
|
+
});
|
|
31
|
+
};
|
package/example/package.json
CHANGED
|
@@ -13,13 +13,14 @@
|
|
|
13
13
|
},
|
|
14
14
|
"private": true,
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@regulaforensics/ionic-native-document-reader": "9.7.
|
|
17
|
-
"@regulaforensics/cordova-plugin-document-reader-api": "9.7.
|
|
18
|
-
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.7.
|
|
16
|
+
"@regulaforensics/ionic-native-document-reader": "9.7.630-rc",
|
|
17
|
+
"@regulaforensics/cordova-plugin-document-reader-api": "9.7.692-rc",
|
|
18
|
+
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.7.2973-rc",
|
|
19
19
|
"cordova-plugin-camera": "7.0.0",
|
|
20
20
|
"@awesome-cordova-plugins/camera": "6.6.0",
|
|
21
21
|
"@awesome-cordova-plugins/core": "6.6.0",
|
|
22
22
|
"@awesome-cordova-plugins/file": "6.6.0",
|
|
23
|
+
"@awesome-cordova-plugins/splash-screen": "6.6.0",
|
|
23
24
|
"@awesome-cordova-plugins/status-bar": "6.6.0",
|
|
24
25
|
"@angular/common": "~13.3.2",
|
|
25
26
|
"@angular/core": "~13.3.2",
|
|
@@ -29,8 +30,9 @@
|
|
|
29
30
|
"@angular/router": "~13.3.2",
|
|
30
31
|
"@ionic/angular": "^6.0.15",
|
|
31
32
|
"@ionic/cordova-builders": "^6.1.0",
|
|
32
|
-
"cordova-android": "
|
|
33
|
-
"cordova-ios": "
|
|
33
|
+
"cordova-android": "13.0.0",
|
|
34
|
+
"cordova-ios": "7.1.1",
|
|
35
|
+
"cordova-plugin-add-swift-support": "^2.0.2",
|
|
34
36
|
"cordova-plugin-file": "8.0.1",
|
|
35
37
|
"core-js": "^3.6.5",
|
|
36
38
|
"rxjs": "~6.6.3",
|
|
@@ -55,6 +57,7 @@
|
|
|
55
57
|
"cordova-plugin-device": "^2.0.3",
|
|
56
58
|
"cordova-plugin-ionic-keyboard": "^2.2.0",
|
|
57
59
|
"cordova-plugin-ionic-webview": "^5.0.0",
|
|
60
|
+
"cordova-plugin-splashscreen": "^6.0.0",
|
|
58
61
|
"cordova-plugin-statusbar": "^2.4.3",
|
|
59
62
|
"jasmine-core": "~4.0.1",
|
|
60
63
|
"jasmine-spec-reporter": "~6.0.0",
|
|
@@ -77,6 +80,7 @@
|
|
|
77
80
|
"cordova-plugin-file": {},
|
|
78
81
|
"cordova-plugin-statusbar": {},
|
|
79
82
|
"cordova-plugin-device": {},
|
|
83
|
+
"cordova-plugin-splashscreen": {},
|
|
80
84
|
"cordova-plugin-ionic-webview": {},
|
|
81
85
|
"cordova-plugin-ionic-keyboard": {}
|
|
82
86
|
},
|
|
@@ -2,16 +2,18 @@ import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
|
2
2
|
import { TestBed, async } from '@angular/core/testing';
|
|
3
3
|
|
|
4
4
|
import { Platform } from '@ionic/angular';
|
|
5
|
+
import { SplashScreen } from '@awesome-cordova-plugins/splash-screen/ngx';
|
|
5
6
|
import { StatusBar } from '@awesome-cordova-plugins/status-bar/ngx';
|
|
6
7
|
|
|
7
8
|
import { AppComponent } from './app.component';
|
|
8
9
|
|
|
9
10
|
describe('AppComponent', () => {
|
|
10
11
|
|
|
11
|
-
let statusBarSpy, platformReadySpy, platformSpy;
|
|
12
|
+
let statusBarSpy, splashScreenSpy, platformReadySpy, platformSpy;
|
|
12
13
|
|
|
13
14
|
beforeEach(async(() => {
|
|
14
15
|
statusBarSpy = jasmine.createSpyObj('StatusBar', ['styleDefault']);
|
|
16
|
+
splashScreenSpy = jasmine.createSpyObj('SplashScreen', ['hide']);
|
|
15
17
|
platformReadySpy = Promise.resolve();
|
|
16
18
|
platformSpy = jasmine.createSpyObj('Platform', { ready: platformReadySpy });
|
|
17
19
|
|
|
@@ -20,6 +22,7 @@ describe('AppComponent', () => {
|
|
|
20
22
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
21
23
|
providers: [
|
|
22
24
|
{ provide: StatusBar, useValue: statusBarSpy },
|
|
25
|
+
{ provide: SplashScreen, useValue: splashScreenSpy },
|
|
23
26
|
{ provide: Platform, useValue: platformSpy },
|
|
24
27
|
],
|
|
25
28
|
}).compileComponents();
|
|
@@ -36,6 +39,7 @@ describe('AppComponent', () => {
|
|
|
36
39
|
expect(platformSpy.ready).toHaveBeenCalled();
|
|
37
40
|
await platformReadySpy;
|
|
38
41
|
expect(statusBarSpy.styleDefault).toHaveBeenCalled();
|
|
42
|
+
expect(splashScreenSpy.hide).toHaveBeenCalled();
|
|
39
43
|
});
|
|
40
44
|
|
|
41
45
|
// TODO: add more tests!
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Component } from '@angular/core';
|
|
2
2
|
|
|
3
3
|
import { Platform } from '@ionic/angular';
|
|
4
|
+
import { SplashScreen } from '@awesome-cordova-plugins/splash-screen/ngx';
|
|
4
5
|
import { StatusBar } from '@awesome-cordova-plugins/status-bar/ngx';
|
|
5
6
|
|
|
6
7
|
@Component({
|
|
@@ -11,6 +12,7 @@ import { StatusBar } from '@awesome-cordova-plugins/status-bar/ngx';
|
|
|
11
12
|
export class AppComponent {
|
|
12
13
|
constructor(
|
|
13
14
|
private platform: Platform,
|
|
15
|
+
private splashScreen: SplashScreen,
|
|
14
16
|
private statusBar: StatusBar
|
|
15
17
|
) {
|
|
16
18
|
this.initializeApp();
|
|
@@ -19,6 +21,7 @@ export class AppComponent {
|
|
|
19
21
|
initializeApp() {
|
|
20
22
|
this.platform.ready().then(() => {
|
|
21
23
|
this.statusBar.styleDefault();
|
|
24
|
+
this.splashScreen.hide();
|
|
22
25
|
});
|
|
23
26
|
}
|
|
24
27
|
}
|
|
@@ -3,6 +3,7 @@ import { BrowserModule } from '@angular/platform-browser';
|
|
|
3
3
|
import { RouteReuseStrategy } from '@angular/router';
|
|
4
4
|
|
|
5
5
|
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
|
|
6
|
+
import { SplashScreen } from '@awesome-cordova-plugins/splash-screen/ngx';
|
|
6
7
|
import { StatusBar } from '@awesome-cordova-plugins/status-bar/ngx';
|
|
7
8
|
|
|
8
9
|
import { AppComponent } from './app.component';
|
|
@@ -14,6 +15,7 @@ import { AppRoutingModule } from './app-routing.module';
|
|
|
14
15
|
imports: [BrowserModule, IonicModule.forRoot(), AppRoutingModule],
|
|
15
16
|
providers: [
|
|
16
17
|
StatusBar,
|
|
18
|
+
SplashScreen,
|
|
17
19
|
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
|
|
18
20
|
],
|
|
19
21
|
bootstrap: [AppComponent]
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "./out-tsc/spec",
|
|
5
|
+
"types": [
|
|
6
|
+
"jasmine",
|
|
7
|
+
"node"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"src/test.ts",
|
|
12
|
+
"src/zone-flags.ts",
|
|
13
|
+
"src/polyfills.ts"
|
|
14
|
+
],
|
|
15
|
+
"include": [
|
|
16
|
+
"src/**/*.spec.ts",
|
|
17
|
+
"src/**/*.d.ts"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "tslint:recommended",
|
|
3
|
+
"rulesDirectory": [
|
|
4
|
+
"codelyzer"
|
|
5
|
+
],
|
|
6
|
+
"rules": {
|
|
7
|
+
"array-type": false,
|
|
8
|
+
"arrow-parens": false,
|
|
9
|
+
"deprecation": {
|
|
10
|
+
"severity": "warn"
|
|
11
|
+
},
|
|
12
|
+
"import-blacklist": [
|
|
13
|
+
true,
|
|
14
|
+
"rxjs/Rx"
|
|
15
|
+
],
|
|
16
|
+
"interface-name": false,
|
|
17
|
+
"max-classes-per-file": false,
|
|
18
|
+
"max-line-length": [
|
|
19
|
+
true,
|
|
20
|
+
140
|
|
21
|
+
],
|
|
22
|
+
"member-access": false,
|
|
23
|
+
"member-ordering": [
|
|
24
|
+
true,
|
|
25
|
+
{
|
|
26
|
+
"order": [
|
|
27
|
+
"static-field",
|
|
28
|
+
"instance-field",
|
|
29
|
+
"static-method",
|
|
30
|
+
"instance-method"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"no-consecutive-blank-lines": false,
|
|
35
|
+
"no-console": [
|
|
36
|
+
true,
|
|
37
|
+
"debug",
|
|
38
|
+
"info",
|
|
39
|
+
"time",
|
|
40
|
+
"timeEnd",
|
|
41
|
+
"trace"
|
|
42
|
+
],
|
|
43
|
+
"no-empty": false,
|
|
44
|
+
"no-inferrable-types": [
|
|
45
|
+
true,
|
|
46
|
+
"ignore-params"
|
|
47
|
+
],
|
|
48
|
+
"no-non-null-assertion": true,
|
|
49
|
+
"no-redundant-jsdoc": true,
|
|
50
|
+
"no-switch-case-fall-through": true,
|
|
51
|
+
"no-use-before-declare": true,
|
|
52
|
+
"no-var-requires": false,
|
|
53
|
+
"object-literal-key-quotes": [
|
|
54
|
+
true,
|
|
55
|
+
"as-needed"
|
|
56
|
+
],
|
|
57
|
+
"object-literal-sort-keys": false,
|
|
58
|
+
"ordered-imports": false,
|
|
59
|
+
"quotemark": [
|
|
60
|
+
true,
|
|
61
|
+
"single"
|
|
62
|
+
],
|
|
63
|
+
"trailing-comma": false,
|
|
64
|
+
"no-output-on-prefix": true,
|
|
65
|
+
"no-inputs-metadata-property": true,
|
|
66
|
+
"no-host-metadata-property": true,
|
|
67
|
+
"no-input-rename": true,
|
|
68
|
+
"no-output-rename": true,
|
|
69
|
+
"use-lifecycle-interface": true,
|
|
70
|
+
"use-pipe-transform-interface": true,
|
|
71
|
+
"one-variable-per-declaration": false,
|
|
72
|
+
"component-class-suffix": [true, "Page", "Component"],
|
|
73
|
+
"directive-class-suffix": true,
|
|
74
|
+
"directive-selector": [
|
|
75
|
+
true,
|
|
76
|
+
"attribute",
|
|
77
|
+
"app",
|
|
78
|
+
"camelCase"
|
|
79
|
+
],
|
|
80
|
+
"component-selector": [
|
|
81
|
+
true,
|
|
82
|
+
"element",
|
|
83
|
+
"app",
|
|
84
|
+
"page",
|
|
85
|
+
"kebab-case"
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
}
|
package/package.json
CHANGED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"lint": "eslint"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@regulaforensics/ionic-native-document-reader": "9.7.
|
|
16
|
-
"@regulaforensics/cordova-plugin-document-reader-api": "9.7.
|
|
17
|
-
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.7.
|
|
15
|
+
"@regulaforensics/ionic-native-document-reader": "9.7.630-rc",
|
|
16
|
+
"@regulaforensics/cordova-plugin-document-reader-api": "9.7.692-rc",
|
|
17
|
+
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.7.2973-rc",
|
|
18
18
|
"@awesome-cordova-plugins/camera": "6.6.0",
|
|
19
19
|
"@awesome-cordova-plugins/file": "6.6.0",
|
|
20
20
|
"@capacitor/android": "5.6.0",
|