@regulaforensics/ionic-native-document-reader 9.7.619-rc → 9.7.621-nightly
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/config.xml +17 -100
- package/example/package.json +5 -9
- package/example/src/app/app.component.spec.ts +1 -5
- package/example/src/app/app.component.ts +0 -3
- package/example/src/app/app.module.ts +0 -2
- package/package.json +1 -1
- package/reactExample/package.json +3 -3
- package/example/browserslist +0 -12
- package/example/e2e/protractor.conf.js +0 -28
- package/example/e2e/src/app.e2e-spec.ts +0 -14
- package/example/e2e/src/app.po.ts +0 -11
- package/example/e2e/tsconfig.json +0 -13
- package/example/karma.conf.js +0 -31
- package/example/tsconfig.spec.json +0 -19
- package/example/tslint.json +0 -88
package/example/config.xml
CHANGED
|
@@ -1,61 +1,22 @@
|
|
|
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" />
|
|
21
4
|
<platform name="android">
|
|
22
|
-
<preference name="orientation" value="portrait" />
|
|
23
5
|
<resource-file src="src/assets/db.dat" target="app/src/main/assets/Regula/db.dat"/>
|
|
24
|
-
<
|
|
6
|
+
<preference name="orientation" value="portrait" />
|
|
7
|
+
<preference name="AndroidEdgeToEdge" value="true" />
|
|
25
8
|
<config-file parent="/*" target="AndroidManifest.xml">
|
|
26
9
|
<uses-permission android:name="android.permission.NFC" />
|
|
27
10
|
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
|
|
28
|
-
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
|
|
29
11
|
</config-file>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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" />
|
|
12
|
+
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
|
|
13
|
+
<application android:usesCleartextTraffic="true" />
|
|
14
|
+
</edit-config>
|
|
55
15
|
</platform>
|
|
56
16
|
<platform name="ios">
|
|
57
|
-
<preference name="orientation" value="portrait" />
|
|
58
17
|
<resource-file src="src/assets/db.dat" />
|
|
18
|
+
<preference name="deployment-target" value="14.0" />
|
|
19
|
+
<preference name="orientation" value="portrait" />
|
|
59
20
|
<allow-intent href="itms:*" />
|
|
60
21
|
<allow-intent href="itms-apps:*" />
|
|
61
22
|
<config-file parent="NSCameraUsageDescription" target="*-Info.plist">
|
|
@@ -64,10 +25,16 @@
|
|
|
64
25
|
<config-file parent="NSPhotoLibraryUsageDescription" target="*-Info.plist">
|
|
65
26
|
<string>To pick images</string>
|
|
66
27
|
</config-file>
|
|
67
|
-
<config-file
|
|
28
|
+
<config-file target="*-Info.plist" parent="NSCameraUsageDescription">
|
|
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">
|
|
68
35
|
<string>To use NFC</string>
|
|
69
36
|
</config-file>
|
|
70
|
-
<config-file parent="com.apple.developer.nfc.readersession.iso7816.select-identifiers"
|
|
37
|
+
<config-file target="*-Info.plist" parent="com.apple.developer.nfc.readersession.iso7816.select-identifiers">
|
|
71
38
|
<array>
|
|
72
39
|
<string>A0000002471001</string>
|
|
73
40
|
<string>E80704007F00070302</string>
|
|
@@ -78,67 +45,17 @@
|
|
|
78
45
|
<string>A00000045645444C2D3031</string>
|
|
79
46
|
</array>
|
|
80
47
|
</config-file>
|
|
81
|
-
<config-file parent="com.apple.developer.nfc.readersession.formats"
|
|
48
|
+
<config-file target="*-Debug.plist" parent="com.apple.developer.nfc.readersession.formats">
|
|
82
49
|
<array>
|
|
83
50
|
<string>NDEF</string>
|
|
84
51
|
<string>TAG</string>
|
|
85
52
|
</array>
|
|
86
53
|
</config-file>
|
|
87
|
-
<config-file parent="com.apple.developer.nfc.readersession.formats"
|
|
54
|
+
<config-file target="*-Release.plist" parent="com.apple.developer.nfc.readersession.formats">
|
|
88
55
|
<array>
|
|
89
56
|
<string>NDEF</string>
|
|
90
57
|
<string>TAG</string>
|
|
91
58
|
</array>
|
|
92
59
|
</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" />
|
|
138
60
|
</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" />
|
|
144
61
|
</widget>
|
package/example/package.json
CHANGED
|
@@ -13,14 +13,13 @@
|
|
|
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.621-nightly",
|
|
17
|
+
"@regulaforensics/cordova-plugin-document-reader-api": "9.7.684-nightly",
|
|
18
|
+
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.7.2939-nightly",
|
|
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",
|
|
24
23
|
"@awesome-cordova-plugins/status-bar": "6.6.0",
|
|
25
24
|
"@angular/common": "~13.3.2",
|
|
26
25
|
"@angular/core": "~13.3.2",
|
|
@@ -30,9 +29,8 @@
|
|
|
30
29
|
"@angular/router": "~13.3.2",
|
|
31
30
|
"@ionic/angular": "^6.0.15",
|
|
32
31
|
"@ionic/cordova-builders": "^6.1.0",
|
|
33
|
-
"cordova-android": "
|
|
34
|
-
"cordova-ios": "
|
|
35
|
-
"cordova-plugin-add-swift-support": "^2.0.2",
|
|
32
|
+
"cordova-android": "15.0.0",
|
|
33
|
+
"cordova-ios": "8.1.1",
|
|
36
34
|
"cordova-plugin-file": "8.0.1",
|
|
37
35
|
"core-js": "^3.6.5",
|
|
38
36
|
"rxjs": "~6.6.3",
|
|
@@ -57,7 +55,6 @@
|
|
|
57
55
|
"cordova-plugin-device": "^2.0.3",
|
|
58
56
|
"cordova-plugin-ionic-keyboard": "^2.2.0",
|
|
59
57
|
"cordova-plugin-ionic-webview": "^5.0.0",
|
|
60
|
-
"cordova-plugin-splashscreen": "^6.0.0",
|
|
61
58
|
"cordova-plugin-statusbar": "^2.4.3",
|
|
62
59
|
"jasmine-core": "~4.0.1",
|
|
63
60
|
"jasmine-spec-reporter": "~6.0.0",
|
|
@@ -80,7 +77,6 @@
|
|
|
80
77
|
"cordova-plugin-file": {},
|
|
81
78
|
"cordova-plugin-statusbar": {},
|
|
82
79
|
"cordova-plugin-device": {},
|
|
83
|
-
"cordova-plugin-splashscreen": {},
|
|
84
80
|
"cordova-plugin-ionic-webview": {},
|
|
85
81
|
"cordova-plugin-ionic-keyboard": {}
|
|
86
82
|
},
|
|
@@ -2,18 +2,16 @@ 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';
|
|
6
5
|
import { StatusBar } from '@awesome-cordova-plugins/status-bar/ngx';
|
|
7
6
|
|
|
8
7
|
import { AppComponent } from './app.component';
|
|
9
8
|
|
|
10
9
|
describe('AppComponent', () => {
|
|
11
10
|
|
|
12
|
-
let statusBarSpy,
|
|
11
|
+
let statusBarSpy, platformReadySpy, platformSpy;
|
|
13
12
|
|
|
14
13
|
beforeEach(async(() => {
|
|
15
14
|
statusBarSpy = jasmine.createSpyObj('StatusBar', ['styleDefault']);
|
|
16
|
-
splashScreenSpy = jasmine.createSpyObj('SplashScreen', ['hide']);
|
|
17
15
|
platformReadySpy = Promise.resolve();
|
|
18
16
|
platformSpy = jasmine.createSpyObj('Platform', { ready: platformReadySpy });
|
|
19
17
|
|
|
@@ -22,7 +20,6 @@ describe('AppComponent', () => {
|
|
|
22
20
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
23
21
|
providers: [
|
|
24
22
|
{ provide: StatusBar, useValue: statusBarSpy },
|
|
25
|
-
{ provide: SplashScreen, useValue: splashScreenSpy },
|
|
26
23
|
{ provide: Platform, useValue: platformSpy },
|
|
27
24
|
],
|
|
28
25
|
}).compileComponents();
|
|
@@ -39,7 +36,6 @@ describe('AppComponent', () => {
|
|
|
39
36
|
expect(platformSpy.ready).toHaveBeenCalled();
|
|
40
37
|
await platformReadySpy;
|
|
41
38
|
expect(statusBarSpy.styleDefault).toHaveBeenCalled();
|
|
42
|
-
expect(splashScreenSpy.hide).toHaveBeenCalled();
|
|
43
39
|
});
|
|
44
40
|
|
|
45
41
|
// TODO: add more tests!
|
|
@@ -1,7 +1,6 @@
|
|
|
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';
|
|
5
4
|
import { StatusBar } from '@awesome-cordova-plugins/status-bar/ngx';
|
|
6
5
|
|
|
7
6
|
@Component({
|
|
@@ -12,7 +11,6 @@ import { StatusBar } from '@awesome-cordova-plugins/status-bar/ngx';
|
|
|
12
11
|
export class AppComponent {
|
|
13
12
|
constructor(
|
|
14
13
|
private platform: Platform,
|
|
15
|
-
private splashScreen: SplashScreen,
|
|
16
14
|
private statusBar: StatusBar
|
|
17
15
|
) {
|
|
18
16
|
this.initializeApp();
|
|
@@ -21,7 +19,6 @@ export class AppComponent {
|
|
|
21
19
|
initializeApp() {
|
|
22
20
|
this.platform.ready().then(() => {
|
|
23
21
|
this.statusBar.styleDefault();
|
|
24
|
-
this.splashScreen.hide();
|
|
25
22
|
});
|
|
26
23
|
}
|
|
27
24
|
}
|
|
@@ -3,7 +3,6 @@ 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';
|
|
7
6
|
import { StatusBar } from '@awesome-cordova-plugins/status-bar/ngx';
|
|
8
7
|
|
|
9
8
|
import { AppComponent } from './app.component';
|
|
@@ -15,7 +14,6 @@ import { AppRoutingModule } from './app-routing.module';
|
|
|
15
14
|
imports: [BrowserModule, IonicModule.forRoot(), AppRoutingModule],
|
|
16
15
|
providers: [
|
|
17
16
|
StatusBar,
|
|
18
|
-
SplashScreen,
|
|
19
17
|
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
|
|
20
18
|
],
|
|
21
19
|
bootstrap: [AppComponent]
|
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.621-nightly",
|
|
16
|
+
"@regulaforensics/cordova-plugin-document-reader-api": "9.7.684-nightly",
|
|
17
|
+
"@regulaforensics/cordova-plugin-document-reader-core-fullauthrfid": "9.7.2939-nightly",
|
|
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",
|
package/example/browserslist
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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'.
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
});
|
package/example/karma.conf.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
}
|
package/example/tslint.json
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
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
|
-
}
|