@regulaforensics/face-sdk 7.1.210-rc → 7.1.252-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 +1 -1
- package/RNFaceSDK.podspec +3 -3
- package/android/CVDFaceSDK.kt +22 -8
- package/android/build.gradle +1 -1
- package/android/cordova.gradle +1 -1
- package/android/src/main/java/com/regula/plugin/facesdk/Config.kt +9 -1
- package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +2 -0
- package/android/src/main/java/com/regula/plugin/facesdk/Main.kt +15 -9
- package/android/src/main/java/com/regula/plugin/facesdk/RNFaceApiModule.kt +16 -6
- package/android/src/main/java/com/regula/plugin/facesdk/Utils.kt +32 -2
- package/examples/capacitor/README.md +3 -8
- package/examples/capacitor/android/app/build.gradle +2 -6
- package/examples/capacitor/android/app/capacitor.build.gradle +4 -4
- package/examples/capacitor/android/app/src/main/AndroidManifest.xml +3 -16
- package/examples/capacitor/android/app/src/main/java/com/regula/{faceapi → documentreader}/MainActivity.java +1 -1
- package/examples/capacitor/android/app/src/main/res/values/strings.xml +2 -2
- package/examples/capacitor/android/build.gradle +1 -1
- package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.properties +2 -1
- package/examples/capacitor/android/gradlew +21 -13
- package/examples/capacitor/android/gradlew.bat +12 -10
- package/examples/capacitor/android/variables.gradle +11 -11
- package/examples/capacitor/index.html +8 -104
- package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +4 -4
- package/examples/capacitor/ios/App/Podfile +2 -3
- package/examples/capacitor/ios/App/Podfile.lock +57 -0
- package/examples/capacitor/package-lock.json +3536 -0
- package/examples/capacitor/package.json +19 -56
- package/examples/capacitor/public/images/portrait.png +0 -0
- package/examples/capacitor/scripts/setup.sh +2 -0
- package/examples/capacitor/src/main.css +77 -0
- package/examples/capacitor/src/main.html +22 -0
- package/examples/capacitor/src/main.tsx +152 -11
- package/examples/capacitor/tsconfig.json +1 -17
- package/examples/capacitor/vite.config.ts +10 -9
- package/examples/cordova/README.md +4 -6
- package/examples/cordova/config.xml +4 -15
- package/examples/cordova/package-lock.json +1333 -0
- package/examples/cordova/package.json +8 -12
- package/examples/cordova/scripts/setup.sh +4 -1
- package/examples/cordova/www/images/portrait.png +0 -0
- package/examples/cordova/www/index.html +19 -92
- package/examples/cordova/www/src/main.css +77 -0
- package/examples/cordova/www/src/main.html +22 -0
- package/examples/cordova/www/{js/index.js → src/main.js} +41 -43
- package/examples/ionic/README.md +3 -6
- package/examples/ionic/angular.json +6 -154
- package/examples/ionic/config.xml +4 -93
- package/examples/ionic/index.html +19 -0
- package/examples/ionic/index.ts +17 -0
- package/examples/ionic/package-lock.json +13777 -0
- package/examples/ionic/package.json +24 -75
- package/examples/ionic/scripts/setup.sh +4 -1
- package/examples/ionic/src/images/portrait.png +0 -0
- package/examples/ionic/src/main.css +77 -0
- package/examples/ionic/src/main.html +22 -0
- package/examples/ionic/src/main.ts +157 -8
- package/examples/ionic/tsconfig.json +6 -20
- package/examples/react-native/Gemfile +7 -0
- package/examples/react-native/Gemfile.lock +28 -21
- package/examples/react-native/README.md +4 -10
- package/examples/react-native/android/app/build.gradle +2 -70
- package/examples/react-native/android/app/src/main/AndroidManifest.xml +21 -21
- package/examples/react-native/android/app/src/main/java/com/regula/{face/api → documentreader}/MainActivity.kt +2 -2
- package/examples/react-native/android/app/src/main/java/com/regula/{face/api → documentreader}/MainApplication.kt +1 -1
- package/examples/react-native/android/build.gradle +3 -3
- package/examples/react-native/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/examples/react-native/android/gradle.properties +0 -34
- package/examples/react-native/android/gradlew +1 -2
- package/examples/react-native/android/settings.gradle +1 -1
- package/examples/react-native/images/portrait.png +0 -0
- package/examples/react-native/index.html +11 -0
- package/examples/react-native/index.tsx +51 -0
- package/examples/react-native/ios/{FaceSDK → App}/AppDelegate.mm +1 -1
- package/examples/react-native/ios/{FaceSDK.xcodeproj → App.xcodeproj}/project.pbxproj +52 -269
- package/examples/react-native/ios/{FaceSDK.xcodeproj/xcshareddata/xcschemes/FaceSDK.xcscheme → App.xcodeproj/xcshareddata/xcschemes/App.xcscheme} +9 -27
- package/examples/react-native/ios/{FaceSDK.xcworkspace → App.xcworkspace}/contents.xcworkspacedata +1 -1
- package/examples/react-native/ios/Podfile +3 -6
- package/examples/react-native/ios/Podfile.lock +565 -512
- package/examples/react-native/metro.config.js +16 -11
- package/examples/react-native/package-lock.json +2121 -6901
- package/examples/react-native/package.json +12 -34
- package/examples/react-native/patches/react-native-webview+13.13.5.patch +36 -0
- package/examples/react-native/scripts/android.sh +5 -0
- package/examples/react-native/scripts/ios.sh +5 -1
- package/examples/react-native/src/main.css +77 -0
- package/examples/react-native/src/main.html +22 -0
- package/examples/react-native/{App.tsx → src/main.tsx} +19 -86
- package/ios/RFSWConfig.m +7 -1
- package/ios/RFSWJSONConstructor.h +2 -0
- package/ios/RFSWJSONConstructor.m +32 -15
- package/ios/RFSWMain.m +1 -1
- package/package.json +1 -1
- package/plugin.xml +4 -4
- package/www/capacitor/detect_faces/detect_faces_request.js +2 -0
- package/www/capacitor/face_capture/face_capture_config.js +6 -2
- package/www/capacitor/image_quality/image_quality_characteristic.js +2 -0
- package/www/capacitor/image_quality/image_quality_group.js +1 -0
- package/www/capacitor/init/init_config.js +8 -0
- package/www/capacitor/internal/bridge.js +8 -7
- package/www/capacitor/liveness/liveness_backend_exception.js +8 -0
- package/www/capacitor/liveness/liveness_config.js +3 -3
- package/www/capacitor/person_database/person_database.js +1 -1
- package/www/cordova.js +109 -80
- package/www/react-native/detect_faces/detect_faces_request.js +2 -0
- package/www/react-native/face_capture/face_capture_config.js +6 -2
- package/www/react-native/image_quality/image_quality_characteristic.js +2 -0
- package/www/react-native/image_quality/image_quality_group.js +1 -0
- package/www/react-native/init/init_config.js +8 -0
- package/www/react-native/internal/bridge.js +8 -7
- package/www/react-native/liveness/liveness_backend_exception.js +8 -0
- package/www/react-native/liveness/liveness_config.js +3 -3
- package/www/react-native/person_database/person_database.js +1 -1
- package/www/types/face_capture/face_capture_config.d.ts +6 -1
- package/www/types/init/init_config.d.ts +7 -1
- package/www/types/liveness/liveness_backend_exception.d.ts +9 -1
- package/www/types/liveness/liveness_config.d.ts +1 -1
- package/www/types/person_database/person_database.d.ts +1 -1
- package/.gitlab/report.yaml +0 -75
- package/.gitlab-ci.yml +0 -49
- package/examples/capacitor/.browserslistrc +0 -6
- package/examples/capacitor/.eslintrc.js +0 -17
- package/examples/capacitor/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java +0 -26
- package/examples/capacitor/android/app/src/main/res/drawable/ic_launcher_background.xml +0 -170
- package/examples/capacitor/android/app/src/main/res/drawable-land-hdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-land-mdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-land-xhdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-land-xxhdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-land-xxxhdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-port-hdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-port-mdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-port-xhdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-port-xxhdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-port-xxxhdpi/splash.png +0 -0
- package/examples/capacitor/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +0 -34
- package/examples/capacitor/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -5
- package/examples/capacitor/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -5
- package/examples/capacitor/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/examples/capacitor/android/app/src/main/res/values/ic_launcher_background.xml +0 -4
- package/examples/capacitor/android/app/src/main/res/xml/file_paths.xml +0 -5
- package/examples/capacitor/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java +0 -18
- package/examples/capacitor/capacitor.config.ts +0 -12
- package/examples/capacitor/cypress/e2e/test.cy.ts +0 -6
- package/examples/capacitor/cypress/fixtures/example.json +0 -5
- package/examples/capacitor/cypress/support/commands.ts +0 -37
- package/examples/capacitor/cypress/support/e2e.ts +0 -20
- package/examples/capacitor/cypress.config.ts +0 -10
- package/examples/capacitor/public/assets/img/id.png +0 -0
- package/examples/capacitor/public/assets/img/portrait.png +0 -0
- package/examples/capacitor/public/favicon.png +0 -0
- package/examples/capacitor/public/manifest.json +0 -21
- package/examples/capacitor/src/App.test.tsx +0 -8
- package/examples/capacitor/src/App.tsx +0 -42
- package/examples/capacitor/src/components/ExploreContainer.css +0 -24
- package/examples/capacitor/src/components/ExploreContainer.tsx +0 -14
- package/examples/capacitor/src/pages/Home.tsx +0 -159
- package/examples/capacitor/src/setupTests.ts +0 -14
- package/examples/capacitor/src/theme/variables.css +0 -242
- package/examples/capacitor/src/vite-env.d.ts +0 -1
- package/examples/capacitor/tsconfig.node.json +0 -9
- package/examples/cordova/jsconfig.json +0 -1
- package/examples/cordova/www/css/index.css +0 -107
- package/examples/cordova/www/img/id.png +0 -0
- package/examples/cordova/www/img/portrait.png +0 -0
- package/examples/ionic/browserslist +0 -12
- package/examples/ionic/e2e/protractor.conf.js +0 -28
- package/examples/ionic/e2e/src/app.e2e-spec.ts +0 -14
- package/examples/ionic/e2e/src/app.po.ts +0 -11
- package/examples/ionic/e2e/tsconfig.json +0 -13
- package/examples/ionic/karma.conf.js +0 -31
- package/examples/ionic/resources/README.md +0 -8
- package/examples/ionic/resources/android/icon/drawable-hdpi-icon.png +0 -0
- package/examples/ionic/resources/android/icon/drawable-ldpi-icon.png +0 -0
- package/examples/ionic/resources/android/icon/drawable-mdpi-icon.png +0 -0
- package/examples/ionic/resources/android/icon/drawable-xhdpi-icon.png +0 -0
- package/examples/ionic/resources/android/icon/drawable-xxhdpi-icon.png +0 -0
- package/examples/ionic/resources/android/icon/drawable-xxxhdpi-icon.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-land-hdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-land-ldpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-land-mdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-land-xhdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-land-xxhdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-land-xxxhdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-port-hdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-port-ldpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-port-mdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-port-xhdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-port-xxhdpi-screen.png +0 -0
- package/examples/ionic/resources/android/splash/drawable-port-xxxhdpi-screen.png +0 -0
- package/examples/ionic/resources/android/xml/network_security_config.xml +0 -6
- package/examples/ionic/resources/ios/icon/icon-1024.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-20.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-20@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-20@3x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-24@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-27.5@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-29.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-29@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-29@3x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-40.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-40@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-40@3x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-44@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-50.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-50@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-60.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-60@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-60@3x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-72.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-72@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-76.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-76@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-83.5@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-86@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-98@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-small.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-small@2x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon-small@3x.png +0 -0
- package/examples/ionic/resources/ios/icon/icon.png +0 -0
- package/examples/ionic/resources/ios/icon/icon@2x.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-2436h.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-568h@2x~iphone.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-667h.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-736h.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Landscape-2436h.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Landscape-736h.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Landscape@2x~ipad.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Landscape@~ipadpro.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Landscape~ipad.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Portrait@2x~ipad.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Portrait@~ipadpro.png +0 -0
- package/examples/ionic/resources/ios/splash/Default-Portrait~ipad.png +0 -0
- package/examples/ionic/resources/ios/splash/Default@2x~iphone.png +0 -0
- package/examples/ionic/resources/ios/splash/Default@2x~universal~anyany.png +0 -0
- package/examples/ionic/resources/ios/splash/Default~iphone.png +0 -0
- package/examples/ionic/resources/splash.png +0 -0
- package/examples/ionic/src/app/app-routing.module.ts +0 -15
- package/examples/ionic/src/app/app.component.html +0 -3
- package/examples/ionic/src/app/app.component.spec.ts +0 -47
- package/examples/ionic/src/app/app.component.ts +0 -27
- package/examples/ionic/src/app/app.module.ts +0 -23
- package/examples/ionic/src/app/home/home.module.ts +0 -29
- package/examples/ionic/src/app/home/home.page.html +0 -75
- package/examples/ionic/src/app/home/home.page.scss +0 -1
- package/examples/ionic/src/app/home/home.page.spec.ts +0 -24
- package/examples/ionic/src/app/home/home.page.ts +0 -166
- package/examples/ionic/src/assets/icon/favicon.png +0 -0
- package/examples/ionic/src/assets/img/portrait.png +0 -0
- package/examples/ionic/src/assets/shapes.svg +0 -1
- package/examples/ionic/src/environments/environment.prod.ts +0 -3
- package/examples/ionic/src/environments/environment.ts +0 -16
- package/examples/ionic/src/global.scss +0 -31
- package/examples/ionic/src/index.html +0 -25
- package/examples/ionic/src/polyfills.ts +0 -66
- package/examples/ionic/src/test.ts +0 -20
- package/examples/ionic/src/theme/variables.scss +0 -77
- package/examples/ionic/src/zone-flags.ts +0 -5
- package/examples/ionic/tsconfig.app.json +0 -14
- package/examples/ionic/tsconfig.spec.json +0 -19
- package/examples/ionic/tslint.json +0 -88
- package/examples/react-native/.watchmanconfig +0 -1
- package/examples/react-native/android/app/proguard-rules.pro +0 -10
- package/examples/react-native/android/app/src/debug/AndroidManifest.xml +0 -9
- package/examples/react-native/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
- package/examples/react-native/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/examples/react-native/android/app/src/main/res/values/strings.xml +0 -3
- package/examples/react-native/android/app/src/main/res/values/styles.xml +0 -9
- package/examples/react-native/app.json +0 -5
- package/examples/react-native/index.js +0 -5
- package/examples/react-native/ios/FaceSDKTests/FaceSDKTests.m +0 -66
- package/examples/react-native/ios/FaceSDKTests/Info.plist +0 -24
- /package/examples/capacitor/android/app/src/main/res/{mipmap-xxxhdpi → drawable}/ic_launcher.png +0 -0
- /package/examples/cordova/www/{img → images}/logo.png +0 -0
- /package/examples/ionic/src/{app/app.component.scss → assets/.gitkeep} +0 -0
- /package/examples/ionic/{resources → src/images}/icon.png +0 -0
- /package/examples/react-native/android/app/src/main/res/{mipmap-xxxhdpi → drawable}/ic_launcher.png +0 -0
- /package/examples/react-native/android/app/src/main/res/{mipmap-xxxhdpi → drawable}/ic_launcher_round.png +0 -0
- /package/examples/react-native/ios/{FaceSDK → App}/AppDelegate.h +0 -0
- /package/examples/react-native/ios/{FaceSDK → App}/Images.xcassets/AppIcon.appiconset/Contents.json +0 -0
- /package/examples/react-native/ios/{FaceSDK → App}/Images.xcassets/Contents.json +0 -0
- /package/examples/react-native/ios/{FaceSDK → App}/Info.plist +0 -0
- /package/examples/react-native/ios/{FaceSDK → App}/LaunchScreen.storyboard +0 -0
- /package/examples/react-native/ios/{FaceSDK → App}/PrivacyInfo.xcprivacy +0 -0
- /package/examples/react-native/ios/{FaceSDK → App}/main.m +0 -0
- /package/examples/react-native/ios/{FaceSDK.xcworkspace → App.xcworkspace}/xcshareddata/IDEWorkspaceChecks.plist +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
|
|
3
|
-
|
|
4
|
-
const routes: Routes = [
|
|
5
|
-
{ path: '', redirectTo: 'home', pathMatch: 'full' },
|
|
6
|
-
{ path: 'home', loadChildren: () => import('./home/home.module').then( m => m.HomePageModule)},
|
|
7
|
-
];
|
|
8
|
-
|
|
9
|
-
@NgModule({
|
|
10
|
-
imports: [
|
|
11
|
-
RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
|
|
12
|
-
],
|
|
13
|
-
exports: [RouterModule]
|
|
14
|
-
})
|
|
15
|
-
export class AppRoutingModule { }
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
2
|
-
import { TestBed, async } from '@angular/core/testing';
|
|
3
|
-
|
|
4
|
-
import { Platform } from '@ionic/angular';
|
|
5
|
-
import { SplashScreen } from '@awesome-cordova-plugins/splash-screen/ngx';
|
|
6
|
-
import { StatusBar } from '@awesome-cordova-plugins/status-bar/ngx';
|
|
7
|
-
|
|
8
|
-
import { AppComponent } from './app.component';
|
|
9
|
-
|
|
10
|
-
describe('AppComponent', () => {
|
|
11
|
-
|
|
12
|
-
let statusBarSpy, splashScreenSpy, platformReadySpy, platformSpy;
|
|
13
|
-
|
|
14
|
-
beforeEach(async(() => {
|
|
15
|
-
statusBarSpy = jasmine.createSpyObj('StatusBar', ['styleDefault']);
|
|
16
|
-
splashScreenSpy = jasmine.createSpyObj('SplashScreen', ['hide']);
|
|
17
|
-
platformReadySpy = Promise.resolve();
|
|
18
|
-
platformSpy = jasmine.createSpyObj('Platform', { ready: platformReadySpy });
|
|
19
|
-
|
|
20
|
-
TestBed.configureTestingModule({
|
|
21
|
-
declarations: [AppComponent],
|
|
22
|
-
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
23
|
-
providers: [
|
|
24
|
-
{ provide: StatusBar, useValue: statusBarSpy },
|
|
25
|
-
{ provide: SplashScreen, useValue: splashScreenSpy },
|
|
26
|
-
{ provide: Platform, useValue: platformSpy },
|
|
27
|
-
],
|
|
28
|
-
}).compileComponents();
|
|
29
|
-
}));
|
|
30
|
-
|
|
31
|
-
it('should create the app', () => {
|
|
32
|
-
const fixture = TestBed.createComponent(AppComponent);
|
|
33
|
-
const app = fixture.debugElement.componentInstance;
|
|
34
|
-
expect(app).toBeTruthy();
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
it('should initialize the app', async () => {
|
|
38
|
-
TestBed.createComponent(AppComponent);
|
|
39
|
-
expect(platformSpy.ready).toHaveBeenCalled();
|
|
40
|
-
await platformReadySpy;
|
|
41
|
-
expect(statusBarSpy.styleDefault).toHaveBeenCalled();
|
|
42
|
-
expect(splashScreenSpy.hide).toHaveBeenCalled();
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
// TODO: add more tests!
|
|
46
|
-
|
|
47
|
-
});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
import { Platform } from '@ionic/angular';
|
|
4
|
-
import { SplashScreen } from '@awesome-cordova-plugins/splash-screen/ngx';
|
|
5
|
-
import { StatusBar } from '@awesome-cordova-plugins/status-bar/ngx';
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'app-root',
|
|
9
|
-
templateUrl: 'app.component.html',
|
|
10
|
-
styleUrls: ['app.component.scss']
|
|
11
|
-
})
|
|
12
|
-
export class AppComponent {
|
|
13
|
-
constructor(
|
|
14
|
-
private platform: Platform,
|
|
15
|
-
private splashScreen: SplashScreen,
|
|
16
|
-
private statusBar: StatusBar
|
|
17
|
-
) {
|
|
18
|
-
this.initializeApp();
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
initializeApp() {
|
|
22
|
-
this.platform.ready().then(() => {
|
|
23
|
-
this.statusBar.styleDefault();
|
|
24
|
-
this.splashScreen.hide();
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { BrowserModule } from '@angular/platform-browser';
|
|
3
|
-
import { RouteReuseStrategy } from '@angular/router';
|
|
4
|
-
|
|
5
|
-
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
|
|
6
|
-
import { SplashScreen } from '@awesome-cordova-plugins/splash-screen/ngx';
|
|
7
|
-
import { StatusBar } from '@awesome-cordova-plugins/status-bar/ngx';
|
|
8
|
-
|
|
9
|
-
import { AppComponent } from './app.component';
|
|
10
|
-
import { AppRoutingModule } from './app-routing.module';
|
|
11
|
-
|
|
12
|
-
@NgModule({
|
|
13
|
-
declarations: [AppComponent],
|
|
14
|
-
entryComponents: [],
|
|
15
|
-
imports: [BrowserModule, IonicModule.forRoot(), AppRoutingModule],
|
|
16
|
-
providers: [
|
|
17
|
-
StatusBar,
|
|
18
|
-
SplashScreen,
|
|
19
|
-
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
|
|
20
|
-
],
|
|
21
|
-
bootstrap: [AppComponent]
|
|
22
|
-
})
|
|
23
|
-
export class AppModule {}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core'
|
|
2
|
-
import { CommonModule } from '@angular/common'
|
|
3
|
-
import { IonicModule } from '@ionic/angular'
|
|
4
|
-
import { FormsModule } from '@angular/forms'
|
|
5
|
-
import { RouterModule } from '@angular/router'
|
|
6
|
-
import { Dialogs } from "@awesome-cordova-plugins/dialogs/ngx"
|
|
7
|
-
import { Camera } from "@awesome-cordova-plugins/camera/ngx"
|
|
8
|
-
|
|
9
|
-
import { HomePage } from './home.page'
|
|
10
|
-
|
|
11
|
-
@NgModule({
|
|
12
|
-
imports: [
|
|
13
|
-
CommonModule,
|
|
14
|
-
FormsModule,
|
|
15
|
-
IonicModule,
|
|
16
|
-
RouterModule.forChild([
|
|
17
|
-
{
|
|
18
|
-
path: '',
|
|
19
|
-
component: HomePage
|
|
20
|
-
}
|
|
21
|
-
])
|
|
22
|
-
],
|
|
23
|
-
providers: [
|
|
24
|
-
Dialogs,
|
|
25
|
-
Camera
|
|
26
|
-
],
|
|
27
|
-
declarations: [HomePage]
|
|
28
|
-
})
|
|
29
|
-
export class HomePageModule { }
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
<ion-header>
|
|
2
|
-
</ion-header>
|
|
3
|
-
|
|
4
|
-
<ion-content>
|
|
5
|
-
<div #mainUI style="
|
|
6
|
-
text-align: center;
|
|
7
|
-
background-color: #F5FCFF;
|
|
8
|
-
height: 100%;">
|
|
9
|
-
<br>
|
|
10
|
-
<h1><span #status></span></h1>
|
|
11
|
-
<br>
|
|
12
|
-
<div>
|
|
13
|
-
<img style="width: 150px" src="assets/img/portrait.png" #img1/><br>
|
|
14
|
-
<img style="width: 150px" src="assets/img/portrait.png" #img2/>
|
|
15
|
-
</div>
|
|
16
|
-
|
|
17
|
-
<div>
|
|
18
|
-
<br>
|
|
19
|
-
<button #matchFacesButton style="margin: 3px; width:75%">Match</button>
|
|
20
|
-
<br>
|
|
21
|
-
<button #livenessButton style="margin: 3px; width:75%">Liveness</button>
|
|
22
|
-
<br>
|
|
23
|
-
<button #clearResultsButton style="margin: 3px; width:75%">Clear</button>
|
|
24
|
-
</div>
|
|
25
|
-
<br>
|
|
26
|
-
<div>
|
|
27
|
-
Similarity: <span style="margin-right: 15px" #similarityResult>nil</span> Liveness: <span #livenessResult>nil</span>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
<style type="text/css">
|
|
32
|
-
button {
|
|
33
|
-
width: 40%;
|
|
34
|
-
-moz-box-shadow: inset 0px -3px 7px 0px #29bbff;
|
|
35
|
-
-webkit-box-shadow: inset 0px -3px 7px 0px #29bbff;
|
|
36
|
-
box-shadow: inset 0px -3px 7px 0px #29bbff;
|
|
37
|
-
background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #2dabf9), color-stop(1, #0688fa));
|
|
38
|
-
background: -moz-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
|
|
39
|
-
background: -webkit-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
|
|
40
|
-
background: -o-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
|
|
41
|
-
background: -ms-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
|
|
42
|
-
background: linear-gradient(to bottom, #2dabf9 5%, #0688fa 100%);
|
|
43
|
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#2dabf9', endColorstr='#0688fa', GradientType=0);
|
|
44
|
-
background-color: #2dabf9;
|
|
45
|
-
-moz-border-radius: 3px;
|
|
46
|
-
-webkit-border-radius: 3px;
|
|
47
|
-
border-radius: 3px;
|
|
48
|
-
border: 1px solid #0b0e07;
|
|
49
|
-
display: inline-block;
|
|
50
|
-
cursor: pointer;
|
|
51
|
-
color: #ffffff;
|
|
52
|
-
font-family: Arial;
|
|
53
|
-
font-size: 15px;
|
|
54
|
-
padding: 9px 23px;
|
|
55
|
-
text-decoration: none;
|
|
56
|
-
text-shadow: 0px 1px 0px #263666;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
button:hover {
|
|
60
|
-
background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #0688fa), color-stop(1, #2dabf9));
|
|
61
|
-
background: -moz-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
|
|
62
|
-
background: -webkit-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
|
|
63
|
-
background: -o-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
|
|
64
|
-
background: -ms-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
|
|
65
|
-
background: linear-gradient(to bottom, #0688fa 5%, #2dabf9 100%);
|
|
66
|
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0688fa', endColorstr='#2dabf9', GradientType=0);
|
|
67
|
-
background-color: #0688fa;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
button:active {
|
|
71
|
-
position: relative;
|
|
72
|
-
top: 1px;
|
|
73
|
-
}
|
|
74
|
-
</style>
|
|
75
|
-
</ion-content>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
import { IonicModule } from '@ionic/angular';
|
|
3
|
-
|
|
4
|
-
import { HomePage } from './home.page';
|
|
5
|
-
|
|
6
|
-
describe('HomePage', () => {
|
|
7
|
-
let component: HomePage;
|
|
8
|
-
let fixture: ComponentFixture<HomePage>;
|
|
9
|
-
|
|
10
|
-
beforeEach(async(() => {
|
|
11
|
-
TestBed.configureTestingModule({
|
|
12
|
-
declarations: [ HomePage ],
|
|
13
|
-
imports: [IonicModule.forRoot()]
|
|
14
|
-
}).compileComponents();
|
|
15
|
-
|
|
16
|
-
fixture = TestBed.createComponent(HomePage);
|
|
17
|
-
component = fixture.componentInstance;
|
|
18
|
-
fixture.detectChanges();
|
|
19
|
-
}));
|
|
20
|
-
|
|
21
|
-
it('should create', () => {
|
|
22
|
-
expect(component).toBeTruthy();
|
|
23
|
-
});
|
|
24
|
-
});
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { Component, ViewChild, ElementRef } from '@angular/core'
|
|
2
|
-
import { Dialogs } from '@awesome-cordova-plugins/dialogs/ngx'
|
|
3
|
-
import { File } from '@awesome-cordova-plugins/file'
|
|
4
|
-
import { Camera, DestinationType, MediaType, PictureSourceType } from '@awesome-cordova-plugins/camera/ngx'
|
|
5
|
-
import { Platform } from '@ionic/angular'
|
|
6
|
-
import { FaceSDK, MatchFacesRequest, MatchFacesImage, InitConfig, LivenessSkipStep, ImageType, LivenessStatus, LivenessConfig } from '@regulaforensics/face-sdk'
|
|
7
|
-
|
|
8
|
-
async function init() {
|
|
9
|
-
if (!await initialize()) return
|
|
10
|
-
setStatus("Ready")
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
async function startLiveness() {
|
|
14
|
-
var response = await faceSdk.startLiveness({
|
|
15
|
-
config: new LivenessConfig({
|
|
16
|
-
skipStep: [LivenessSkipStep.ONBOARDING_STEP]
|
|
17
|
-
}),
|
|
18
|
-
notificationCompletion: (notification) => {
|
|
19
|
-
console.log("LivenessStatus: " + notification.status)
|
|
20
|
-
}
|
|
21
|
-
})
|
|
22
|
-
if (response.image == null) return
|
|
23
|
-
setImage(response.image, ImageType.LIVE, 1)
|
|
24
|
-
setLivenessStatus(response.liveness == LivenessStatus.PASSED ? "passed" : "unknown")
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
async function matchFaces() {
|
|
28
|
-
if (image1 == null || image2 == null) {
|
|
29
|
-
setStatus("Both images required!")
|
|
30
|
-
return
|
|
31
|
-
}
|
|
32
|
-
setStatus("Processing...")
|
|
33
|
-
var request = new MatchFacesRequest([image1, image2])
|
|
34
|
-
var response = await faceSdk.matchFaces(request)
|
|
35
|
-
var split = await faceSdk.splitComparedFaces(response.results, 0.75)
|
|
36
|
-
var match = split.matchedFaces
|
|
37
|
-
setSimilarityStatus("failed")
|
|
38
|
-
if (match.length > 0)
|
|
39
|
-
setSimilarityStatus((match[0].similarity * 100).toFixed(2) + "%")
|
|
40
|
-
setStatus("Ready")
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function clearResults() {
|
|
44
|
-
setStatus("Ready")
|
|
45
|
-
setSimilarityStatus("null")
|
|
46
|
-
setLivenessStatus("null")
|
|
47
|
-
resetImages()
|
|
48
|
-
image1 = null
|
|
49
|
-
image2 = null
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// If 'regula.license' exists, init using license(enables offline match)
|
|
53
|
-
// otherwise init without license.
|
|
54
|
-
async function initialize() {
|
|
55
|
-
setStatus("Initializing...")
|
|
56
|
-
var license = await loadAssetIfExists("regula.license")
|
|
57
|
-
var config: InitConfig | undefined
|
|
58
|
-
if (license != null) config = new InitConfig(license)
|
|
59
|
-
var [success, error] = await faceSdk.initialize({ config: config })
|
|
60
|
-
if (!success && error != null) {
|
|
61
|
-
setStatus(error.message)
|
|
62
|
-
console.log(error.code + ": " + error.message)
|
|
63
|
-
}
|
|
64
|
-
return success
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function setImage(base64: string, type: number, position: number) {
|
|
68
|
-
setSimilarityStatus("null")
|
|
69
|
-
var mfImage = new MatchFacesImage(base64, type)
|
|
70
|
-
if (position == 1) {
|
|
71
|
-
image1 = mfImage
|
|
72
|
-
setUiImage1("data:image/png;base64," + base64)
|
|
73
|
-
setLivenessStatus("null")
|
|
74
|
-
}
|
|
75
|
-
if (position == 2) {
|
|
76
|
-
image2 = mfImage
|
|
77
|
-
setUiImage2("data:image/png;base64," + base64)
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
async function useCamera(position: number) {
|
|
82
|
-
var response = await faceSdk.startFaceCapture()
|
|
83
|
-
if (response.image == null) return
|
|
84
|
-
var image = response.image
|
|
85
|
-
setImage(image.image, image.imageType, position)
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function useGallery(position: number) {
|
|
89
|
-
app.camera.getPicture({
|
|
90
|
-
destinationType: DestinationType.DATA_URL,
|
|
91
|
-
mediaType: MediaType.PICTURE,
|
|
92
|
-
sourceType: PictureSourceType.PHOTOLIBRARY
|
|
93
|
-
}).then((result: string) => setImage(result, ImageType.PRINTED, position))
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
function pickImage(position: number) {
|
|
97
|
-
app.dialogs.confirm("", "Select option", ["Use gallery", "Use camera"]).then(button => {
|
|
98
|
-
if (button == 1) useGallery(position)
|
|
99
|
-
else useCamera(position)
|
|
100
|
-
})
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
async function loadAssetIfExists(path: string): Promise<string | null> {
|
|
104
|
-
try {
|
|
105
|
-
var dir = await File.resolveDirectoryUrl(File.applicationDirectory + "www/assets")
|
|
106
|
-
var fileEntry = await File.getFile(dir, path, null)
|
|
107
|
-
var result = await new Promise<string | null>((resolve, _) => {
|
|
108
|
-
fileEntry.file(file => {
|
|
109
|
-
var reader = new FileReader()
|
|
110
|
-
reader.onloadend = (_) => resolve(reader.result as string)
|
|
111
|
-
reader.readAsDataURL(file)
|
|
112
|
-
}, _ => resolve(null))
|
|
113
|
-
})
|
|
114
|
-
return result
|
|
115
|
-
} catch (_) {
|
|
116
|
-
return null
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
var app: HomePage
|
|
121
|
-
var faceSdk = FaceSDK.instance
|
|
122
|
-
|
|
123
|
-
var image1: MatchFacesImage | null
|
|
124
|
-
var image2: MatchFacesImage | null
|
|
125
|
-
|
|
126
|
-
var setStatus = (data: string) => app.status.nativeElement.innerHTML = data
|
|
127
|
-
var setSimilarityStatus = (data: string) => app.similarityResult.nativeElement.innerHTML = data
|
|
128
|
-
var setLivenessStatus = (data: string) => app.livenessResult.nativeElement.innerHTML = data
|
|
129
|
-
var setUiImage1 = (data: string) => app.img1.nativeElement.src = data
|
|
130
|
-
var setUiImage2 = (data: string) => app.img2.nativeElement.src = data
|
|
131
|
-
var resetImages = () => {
|
|
132
|
-
setUiImage1("assets/img/portrait.png")
|
|
133
|
-
setUiImage2("assets/img/portrait.png")
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
@Component({
|
|
137
|
-
selector: 'app-home',
|
|
138
|
-
templateUrl: 'home.page.html',
|
|
139
|
-
styleUrls: ['home.page.scss'],
|
|
140
|
-
})
|
|
141
|
-
export class HomePage {
|
|
142
|
-
@ViewChild('status', { static: true }) status: ElementRef
|
|
143
|
-
@ViewChild('similarityResult', { static: true }) similarityResult: ElementRef
|
|
144
|
-
@ViewChild('livenessResult', { static: true }) livenessResult: ElementRef
|
|
145
|
-
@ViewChild('img1', { static: true }) img1: ElementRef
|
|
146
|
-
@ViewChild('img2', { static: true }) img2: ElementRef
|
|
147
|
-
@ViewChild('matchFacesButton', { static: true }) matchFacesButton: ElementRef
|
|
148
|
-
@ViewChild('livenessButton', { static: true }) livenessButton: ElementRef
|
|
149
|
-
@ViewChild('clearResultsButton', { static: true }) clearResultsButton: ElementRef
|
|
150
|
-
|
|
151
|
-
constructor(private platform: Platform, public dialogs: Dialogs, public camera: Camera) {
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
async ionViewDidEnter() {
|
|
155
|
-
app = this
|
|
156
|
-
|
|
157
|
-
app.img1.nativeElement.onclick = () => pickImage(1)
|
|
158
|
-
app.img2.nativeElement.onclick = () => pickImage(2)
|
|
159
|
-
app.matchFacesButton.nativeElement.addEventListener("click", matchFaces)
|
|
160
|
-
app.livenessButton.nativeElement.addEventListener("click", startLiveness)
|
|
161
|
-
app.clearResultsButton.nativeElement.addEventListener("click", clearResults)
|
|
162
|
-
|
|
163
|
-
await app.platform.ready()
|
|
164
|
-
init()
|
|
165
|
-
}
|
|
166
|
-
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg width="350" height="140" xmlns="http://www.w3.org/2000/svg" style="background:#f6f7f9"><g fill="none" fill-rule="evenodd"><path fill="#F04141" style="mix-blend-mode:multiply" d="M61.905-34.23l96.194 54.51-66.982 54.512L22 34.887z"/><circle fill="#10DC60" style="mix-blend-mode:multiply" cx="155.5" cy="135.5" r="57.5"/><path fill="#3880FF" style="mix-blend-mode:multiply" d="M208.538 9.513l84.417 15.392L223.93 93.93z"/><path fill="#FFCE00" style="mix-blend-mode:multiply" d="M268.625 106.557l46.332-26.75 46.332 26.75v53.5l-46.332 26.75-46.332-26.75z"/><circle fill="#7044FF" style="mix-blend-mode:multiply" cx="299.5" cy="9.5" r="38.5"/><rect fill="#11D3EA" style="mix-blend-mode:multiply" transform="rotate(-60 148.47 37.886)" x="143.372" y="-7.056" width="10.196" height="89.884" rx="5.098"/><path d="M-25.389 74.253l84.86 8.107c5.498.525 9.53 5.407 9.004 10.905a10 10 0 0 1-.057.477l-12.36 85.671a10.002 10.002 0 0 1-11.634 8.42l-86.351-15.226c-5.44-.959-9.07-6.145-8.112-11.584l13.851-78.551a10 10 0 0 1 10.799-8.219z" fill="#7044FF" style="mix-blend-mode:multiply"/><circle fill="#0CD1E8" style="mix-blend-mode:multiply" cx="273.5" cy="106.5" r="20.5"/></g></svg>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// This file can be replaced during build by using the `fileReplacements` array.
|
|
2
|
-
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
|
|
3
|
-
// The list of file replacements can be found in `angular.json`.
|
|
4
|
-
|
|
5
|
-
export const environment = {
|
|
6
|
-
production: false
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
/*
|
|
10
|
-
* For easier debugging in development mode, you can import the following file
|
|
11
|
-
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
|
|
12
|
-
*
|
|
13
|
-
* This import should be commented out in production mode because it will have a negative impact
|
|
14
|
-
* on performance if an error is thrown.
|
|
15
|
-
*/
|
|
16
|
-
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* App Global CSS
|
|
3
|
-
* ----------------------------------------------------------------------------
|
|
4
|
-
* Put style rules here that you want to apply globally. These styles are for
|
|
5
|
-
* the entire app and not just one component. Additionally, this file can be
|
|
6
|
-
* used as an entry point to import other CSS/Sass files to be included in the
|
|
7
|
-
* output CSS.
|
|
8
|
-
* For more information on global stylesheets, visit the documentation:
|
|
9
|
-
* https://ionicframework.com/docs/layout/global-stylesheets
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/* Core CSS required for Ionic components to work properly */
|
|
13
|
-
@import "~@ionic/angular/css/core.css";
|
|
14
|
-
|
|
15
|
-
/* Basic CSS for apps built with Ionic */
|
|
16
|
-
@import "~@ionic/angular/css/normalize.css";
|
|
17
|
-
@import "~@ionic/angular/css/structure.css";
|
|
18
|
-
@import "~@ionic/angular/css/typography.css";
|
|
19
|
-
@import '~@ionic/angular/css/display.css';
|
|
20
|
-
|
|
21
|
-
/* Optional CSS utils that can be commented out */
|
|
22
|
-
@import "~@ionic/angular/css/padding.css";
|
|
23
|
-
@import "~@ionic/angular/css/float-elements.css";
|
|
24
|
-
@import "~@ionic/angular/css/text-alignment.css";
|
|
25
|
-
@import "~@ionic/angular/css/text-transformation.css";
|
|
26
|
-
@import "~@ionic/angular/css/flex-utils.css";
|
|
27
|
-
|
|
28
|
-
body {
|
|
29
|
-
margin-top: constant(safe-area-inset-top);
|
|
30
|
-
margin-top: env(safe-area-inset-top);
|
|
31
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="utf-8" />
|
|
6
|
-
<title>Ionic App</title>
|
|
7
|
-
|
|
8
|
-
<base href="/" />
|
|
9
|
-
|
|
10
|
-
<meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
|
11
|
-
<meta name="format-detection" content="telephone=no" />
|
|
12
|
-
<meta name="msapplication-tap-highlight" content="no" />
|
|
13
|
-
|
|
14
|
-
<link rel="icon" type="image/png" href="assets/icon/favicon.png" />
|
|
15
|
-
|
|
16
|
-
<!-- add to homescreen for ios -->
|
|
17
|
-
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
18
|
-
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
|
19
|
-
</head>
|
|
20
|
-
|
|
21
|
-
<body>
|
|
22
|
-
<app-root></app-root>
|
|
23
|
-
</body>
|
|
24
|
-
|
|
25
|
-
</html>
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file includes polyfills needed by Angular and is loaded before the app.
|
|
3
|
-
* You can add your own extra polyfills to this file.
|
|
4
|
-
*
|
|
5
|
-
* This file is divided into 2 sections:
|
|
6
|
-
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
|
|
7
|
-
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
|
|
8
|
-
* file.
|
|
9
|
-
*
|
|
10
|
-
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
|
|
11
|
-
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
|
|
12
|
-
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
|
|
13
|
-
*
|
|
14
|
-
* Learn more in https://angular.io/guide/browser-support
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
/***************************************************************************************************
|
|
18
|
-
* BROWSER POLYFILLS
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
|
22
|
-
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Web Animations `@angular/platform-browser/animations`
|
|
26
|
-
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
|
|
27
|
-
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
|
|
28
|
-
*/
|
|
29
|
-
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* By default, zone.js will patch all possible macroTask and DomEvents
|
|
33
|
-
* user can disable parts of macroTask/DomEvents patch by setting following flags
|
|
34
|
-
* because those flags need to be set before `zone.js` being loaded, and webpack
|
|
35
|
-
* will put import in the top of bundle, so user need to create a separate file
|
|
36
|
-
* in this directory (for example: zone-flags.ts), and put the following flags
|
|
37
|
-
* into that file, and then add the following code before importing zone.js.
|
|
38
|
-
* import './zone-flags.ts';
|
|
39
|
-
*
|
|
40
|
-
* The flags allowed in zone-flags.ts are listed here.
|
|
41
|
-
*
|
|
42
|
-
* The following flags will work for all browsers.
|
|
43
|
-
*
|
|
44
|
-
* (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
|
|
45
|
-
* (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
|
|
46
|
-
* (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
|
|
47
|
-
*
|
|
48
|
-
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
|
|
49
|
-
* with the following flag, it will bypass `zone.js` patch for IE/Edge
|
|
50
|
-
*
|
|
51
|
-
* (window as any).__Zone_enable_cross_context_check = true;
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
54
|
-
|
|
55
|
-
import './zone-flags.ts';
|
|
56
|
-
|
|
57
|
-
/***************************************************************************************************
|
|
58
|
-
* Zone JS is required by default for Angular itself.
|
|
59
|
-
*/
|
|
60
|
-
|
|
61
|
-
import 'zone.js/dist/zone'; // Included with Angular CLI.
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
/***************************************************************************************************
|
|
65
|
-
* APPLICATION IMPORTS
|
|
66
|
-
*/
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
|
2
|
-
|
|
3
|
-
import 'zone.js/dist/zone-testing';
|
|
4
|
-
import { getTestBed } from '@angular/core/testing';
|
|
5
|
-
import {
|
|
6
|
-
BrowserDynamicTestingModule,
|
|
7
|
-
platformBrowserDynamicTesting
|
|
8
|
-
} from '@angular/platform-browser-dynamic/testing';
|
|
9
|
-
|
|
10
|
-
declare const require: any;
|
|
11
|
-
|
|
12
|
-
// First, initialize the Angular testing environment.
|
|
13
|
-
getTestBed().initTestEnvironment(
|
|
14
|
-
BrowserDynamicTestingModule,
|
|
15
|
-
platformBrowserDynamicTesting()
|
|
16
|
-
);
|
|
17
|
-
// Then we find all the tests.
|
|
18
|
-
const context = require.context('./', true, /\.spec\.ts$/);
|
|
19
|
-
// And load the modules.
|
|
20
|
-
context.keys().map(context);
|