@regulaforensics/face-sdk 6.3.3-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 +23 -0
- package/RNFaceSDK.podspec +21 -0
- package/android/CVDFaceSDK.kt +34 -0
- package/android/build.gradle +48 -0
- package/android/cordova.gradle +18 -0
- package/android/src/main/AndroidManifest.xml +1 -0
- package/android/src/main/java/com/regula/plugin/facesdk/Config.kt +165 -0
- package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +904 -0
- package/android/src/main/java/com/regula/plugin/facesdk/Main.kt +370 -0
- package/android/src/main/java/com/regula/plugin/facesdk/RNFaceApiModule.kt +54 -0
- package/android/src/main/java/com/regula/plugin/facesdk/RNFaceApiPackage.kt +11 -0
- package/android/src/main/java/com/regula/plugin/facesdk/Utils.kt +287 -0
- package/examples/capacitor/.browserslistrc +6 -0
- package/examples/capacitor/.eslintrc.js +17 -0
- package/examples/capacitor/README.md +27 -0
- package/examples/capacitor/android/app/build.gradle +54 -0
- package/examples/capacitor/android/app/capacitor.build.gradle +22 -0
- package/examples/capacitor/android/app/proguard-rules.pro +21 -0
- package/examples/capacitor/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java +26 -0
- package/examples/capacitor/android/app/src/main/AndroidManifest.xml +43 -0
- package/examples/capacitor/android/app/src/main/java/com/regula/faceapi/MainActivity.java +5 -0
- package/examples/capacitor/android/app/src/main/res/drawable/ic_launcher_background.xml +170 -0
- package/examples/capacitor/android/app/src/main/res/drawable/splash.png +0 -0
- 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 +34 -0
- package/examples/capacitor/android/app/src/main/res/layout/activity_main.xml +12 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
- package/examples/capacitor/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
- 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.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 +4 -0
- package/examples/capacitor/android/app/src/main/res/values/strings.xml +7 -0
- package/examples/capacitor/android/app/src/main/res/values/styles.xml +22 -0
- package/examples/capacitor/android/app/src/main/res/xml/file_paths.xml +5 -0
- package/examples/capacitor/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java +18 -0
- package/examples/capacitor/android/build.gradle +30 -0
- package/examples/capacitor/android/capacitor.settings.gradle +15 -0
- package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/examples/capacitor/android/gradle.properties +22 -0
- package/examples/capacitor/android/gradlew +244 -0
- package/examples/capacitor/android/gradlew.bat +92 -0
- package/examples/capacitor/android/settings.gradle +5 -0
- package/examples/capacitor/android/variables.gradle +16 -0
- package/examples/capacitor/capacitor.config.ts +12 -0
- package/examples/capacitor/cypress/e2e/test.cy.ts +6 -0
- package/examples/capacitor/cypress/fixtures/example.json +5 -0
- package/examples/capacitor/cypress/support/commands.ts +37 -0
- package/examples/capacitor/cypress/support/e2e.ts +20 -0
- package/examples/capacitor/cypress.config.ts +10 -0
- package/examples/capacitor/index.html +106 -0
- package/examples/capacitor/ionic.config.json +7 -0
- package/examples/capacitor/ios/App/App/App.entitlements +5 -0
- package/examples/capacitor/ios/App/App/AppDelegate.swift +49 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png +0 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Contents.json +6 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +23 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png +0 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png +0 -0
- package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png +0 -0
- package/examples/capacitor/ios/App/App/Base.lproj/LaunchScreen.storyboard +32 -0
- package/examples/capacitor/ios/App/App/Base.lproj/Main.storyboard +19 -0
- package/examples/capacitor/ios/App/App/Info.plist +53 -0
- package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +410 -0
- package/examples/capacitor/ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/examples/capacitor/ios/App/App.xcworkspace/contents.xcworkspacedata +10 -0
- package/examples/capacitor/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/examples/capacitor/ios/App/Podfile +27 -0
- package/examples/capacitor/package.json +64 -0
- package/examples/capacitor/public/assets/.gitkeep +0 -0
- 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 +21 -0
- package/examples/capacitor/src/App.test.tsx +8 -0
- package/examples/capacitor/src/App.tsx +42 -0
- package/examples/capacitor/src/components/ExploreContainer.css +24 -0
- package/examples/capacitor/src/components/ExploreContainer.tsx +14 -0
- package/examples/capacitor/src/main.tsx +11 -0
- package/examples/capacitor/src/pages/Home.tsx +159 -0
- package/examples/capacitor/src/setupTests.ts +14 -0
- package/examples/capacitor/src/theme/variables.css +242 -0
- package/examples/capacitor/src/vite-env.d.ts +1 -0
- package/examples/capacitor/tsconfig.json +21 -0
- package/examples/capacitor/tsconfig.node.json +9 -0
- package/examples/capacitor/vite.config.ts +16 -0
- package/examples/cordova/.vscode/launch.json +28 -0
- package/examples/cordova/config.xml +37 -0
- package/examples/cordova/jsconfig.json +1 -0
- package/examples/cordova/package.json +40 -0
- package/examples/cordova/www/css/index.css +107 -0
- package/examples/cordova/www/img/id.png +0 -0
- package/examples/cordova/www/img/logo.png +0 -0
- package/examples/cordova/www/img/portrait.png +0 -0
- package/examples/cordova/www/index.html +94 -0
- package/examples/cordova/www/js/index.js +154 -0
- package/examples/ionic/angular.json +187 -0
- package/examples/ionic/browserslist +12 -0
- package/examples/ionic/config.xml +114 -0
- package/examples/ionic/e2e/protractor.conf.js +28 -0
- package/examples/ionic/e2e/src/app.e2e-spec.ts +14 -0
- package/examples/ionic/e2e/src/app.po.ts +11 -0
- package/examples/ionic/e2e/tsconfig.json +13 -0
- package/examples/ionic/ionic.config.json +7 -0
- package/examples/ionic/karma.conf.js +31 -0
- package/examples/ionic/package.json +97 -0
- package/examples/ionic/resources/README.md +8 -0
- 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 +6 -0
- package/examples/ionic/resources/icon.png +0 -0
- 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 +15 -0
- package/examples/ionic/src/app/app.component.html +3 -0
- package/examples/ionic/src/app/app.component.scss +0 -0
- package/examples/ionic/src/app/app.component.spec.ts +47 -0
- package/examples/ionic/src/app/app.component.ts +27 -0
- package/examples/ionic/src/app/app.module.ts +23 -0
- package/examples/ionic/src/app/home/home.module.ts +29 -0
- package/examples/ionic/src/app/home/home.page.html +75 -0
- package/examples/ionic/src/app/home/home.page.scss +1 -0
- package/examples/ionic/src/app/home/home.page.spec.ts +24 -0
- package/examples/ionic/src/app/home/home.page.ts +166 -0
- 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 +1 -0
- package/examples/ionic/src/environments/environment.prod.ts +3 -0
- package/examples/ionic/src/environments/environment.ts +16 -0
- package/examples/ionic/src/global.scss +31 -0
- package/examples/ionic/src/index.html +25 -0
- package/examples/ionic/src/main.ts +12 -0
- package/examples/ionic/src/polyfills.ts +66 -0
- package/examples/ionic/src/test.ts +20 -0
- package/examples/ionic/src/theme/variables.scss +77 -0
- package/examples/ionic/src/zone-flags.ts +5 -0
- package/examples/ionic/tsconfig.app.json +14 -0
- package/examples/ionic/tsconfig.json +26 -0
- package/examples/ionic/tsconfig.spec.json +19 -0
- package/examples/ionic/tslint.json +88 -0
- package/examples/react-native/.vscode/launch.json +26 -0
- package/examples/react-native/.watchmanconfig +1 -0
- package/examples/react-native/App.tsx +206 -0
- package/examples/react-native/Gemfile +8 -0
- package/examples/react-native/Gemfile.lock +134 -0
- package/examples/react-native/android/app/build.gradle +123 -0
- package/examples/react-native/android/app/debug.keystore +0 -0
- package/examples/react-native/android/app/proguard-rules.pro +10 -0
- package/examples/react-native/android/app/src/debug/AndroidManifest.xml +9 -0
- package/examples/react-native/android/app/src/main/AndroidManifest.xml +27 -0
- package/examples/react-native/android/app/src/main/assets/.gitkeep +0 -0
- package/examples/react-native/android/app/src/main/java/com/regula/face/api/MainActivity.kt +22 -0
- package/examples/react-native/android/app/src/main/java/com/regula/face/api/MainApplication.kt +43 -0
- package/examples/react-native/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
- 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/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/examples/react-native/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/examples/react-native/android/app/src/main/res/values/strings.xml +3 -0
- package/examples/react-native/android/app/src/main/res/values/styles.xml +9 -0
- package/examples/react-native/android/build.gradle +21 -0
- package/examples/react-native/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/examples/react-native/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/examples/react-native/android/gradle.properties +39 -0
- package/examples/react-native/android/gradlew +249 -0
- package/examples/react-native/android/gradlew.bat +92 -0
- package/examples/react-native/android/settings.gradle +6 -0
- package/examples/react-native/images/portrait.png +0 -0
- package/examples/react-native/index.js +4 -0
- package/examples/react-native/ios/.xcode.env +11 -0
- package/examples/react-native/ios/FaceSDK/AppDelegate.h +6 -0
- package/examples/react-native/ios/FaceSDK/AppDelegate.mm +31 -0
- package/examples/react-native/ios/FaceSDK/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
- package/examples/react-native/ios/FaceSDK/Images.xcassets/Contents.json +6 -0
- package/examples/react-native/ios/FaceSDK/Info.plist +51 -0
- package/examples/react-native/ios/FaceSDK/LaunchScreen.storyboard +47 -0
- package/examples/react-native/ios/FaceSDK/PrivacyInfo.xcprivacy +38 -0
- package/examples/react-native/ios/FaceSDK/main.m +10 -0
- package/examples/react-native/ios/FaceSDK.xcodeproj/project.pbxproj +719 -0
- package/examples/react-native/ios/FaceSDK.xcodeproj/xcshareddata/xcschemes/FaceSDK.xcscheme +88 -0
- package/examples/react-native/ios/FaceSDK.xcworkspace/contents.xcworkspacedata +10 -0
- package/examples/react-native/ios/FaceSDK.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/examples/react-native/ios/FaceSDKTests/FaceSDKTests.m +66 -0
- package/examples/react-native/ios/FaceSDKTests/Info.plist +24 -0
- package/examples/react-native/ios/Podfile +40 -0
- package/examples/react-native/ios/Podfile.lock +1822 -0
- package/examples/react-native/ios/license/.gitkeep +0 -0
- package/examples/react-native/metro.config.js +15 -0
- package/examples/react-native/package-lock.json +13098 -0
- package/examples/react-native/package.json +42 -0
- package/ios/CVDFaceSDK.h +7 -0
- package/ios/CVDFaceSDK.m +34 -0
- package/ios/RFSWConfig.h +27 -0
- package/ios/RFSWConfig.m +189 -0
- package/ios/RFSWJSONConstructor.h +134 -0
- package/ios/RFSWJSONConstructor.m +977 -0
- package/ios/RFSWMain.h +23 -0
- package/ios/RFSWMain.m +352 -0
- package/ios/RNFaceSDK.h +8 -0
- package/ios/RNFaceSDK.m +42 -0
- package/ios-ci/.gitlab-ci.yml +41 -0
- package/ios-ci/.sample-env +22 -0
- package/ios-ci/README.md +97 -0
- package/ios-ci/RegulaDanger/Package.swift +34 -0
- package/ios-ci/RegulaDanger/Sources/RegulaDanger/RegulaDanger.swift +44 -0
- package/ios-ci/RegulaDanger/Tests/LinuxMain.swift +7 -0
- package/ios-ci/RegulaDanger/Tests/RegulaDangerTests/RegulaDangerTests.swift +15 -0
- package/ios-ci/RegulaDanger/Tests/RegulaDangerTests/XCTestManifests.swift +9 -0
- package/ios-ci/install.sh +9 -0
- package/ios-ci/ios_ci/__init__.py +8 -0
- package/ios-ci/ios_ci/cli.py +408 -0
- package/ios-ci/ios_ci/common/__init__.py +0 -0
- package/ios-ci/ios_ci/common/build_index.py +70 -0
- package/ios-ci/ios_ci/common/clean_cocoapod.sh +13 -0
- package/ios-ci/ios_ci/common/dependency.py +466 -0
- package/ios-ci/ios_ci/common/ftp.py +314 -0
- package/ios-ci/ios_ci/common/searchpod.sh +6 -0
- package/ios-ci/ios_ci/common/wait_for_cocopod.sh +21 -0
- package/ios-ci/ios_ci/inject.py +145 -0
- package/ios-ci/ios_ci/podspec/__init__.py +0 -0
- package/ios-ci/ios_ci/podspec/podspec.py +88 -0
- package/ios-ci/ios_ci/podspec/templates/BTDevice.podspec +17 -0
- package/ios-ci/ios_ci/podspec/templates/Core.podspec +17 -0
- package/ios-ci/ios_ci/podspec/templates/DocumentReader.podspec +19 -0
- package/ios-ci/ios_ci/podspec/templates/FaceCore.podspec +17 -0
- package/ios-ci/ios_ci/podspec/templates/FaceSDK.podspec +18 -0
- package/ios-ci/ios_ci/podspec/templates/IRS.podspec +17 -0
- package/ios-ci/ios_ci/podspec/templates/RegulaCommon.podspec +17 -0
- package/ios-ci/ios_ci/resolve_podfile_common.py +76 -0
- package/ios-ci/ios_ci/spm/AppleRootCA-G3.cer +0 -0
- package/ios-ci/ios_ci/spm/AppleWWDRCAG3.cer +0 -0
- package/ios-ci/ios_ci/spm/SwiftPackageGenerator+Common.sh +48 -0
- package/ios-ci/ios_ci/spm/SwiftPackageGenerator.sh +33 -0
- package/ios-ci/ios_ci/spm/XcodeSPMCollection.json +29 -0
- package/ios-ci/ios_ci/spm/__init__.py +0 -0
- package/ios-ci/ios_ci/spm/askpass.py +19 -0
- package/ios-ci/ios_ci/spm/spm.py +227 -0
- package/ios-ci/ios_ci/upload_build.py +158 -0
- package/ios-ci/ios_ci/version.py +14 -0
- package/ios-ci/poetry.lock +342 -0
- package/ios-ci/pyproject.toml +26 -0
- package/ios-ci/scripts.py +9 -0
- package/ios-ci/tests/__init__.py +0 -0
- package/ios-ci/tests/podspec/fixtures/BTDevice.podspec +17 -0
- package/ios-ci/tests/podspec/fixtures/BTDeviceBeta.podspec +17 -0
- package/ios-ci/tests/podspec/fixtures/DocumentReaderBeta_RegulaCommon_Beta.podspec +19 -0
- package/ios-ci/tests/podspec/fixtures/DocumentReaderBeta_RegulaCommon_Release.podspec +19 -0
- package/ios-ci/tests/podspec/fixtures/DocumentReaderFullRFID.podspec +17 -0
- package/ios-ci/tests/podspec/fixtures/DocumentReaderFullRFIDBeta.podspec +17 -0
- package/ios-ci/tests/podspec/fixtures/DocumentReader_RegulaCommon_Beta.podspec +19 -0
- package/ios-ci/tests/podspec/fixtures/DocumentReader_RegulaCommon_Release.podspec +19 -0
- package/ios-ci/tests/podspec/fixtures/FaceSDK.podspec +18 -0
- package/ios-ci/tests/podspec/fixtures/FaceSDKBeta.podspec +18 -0
- package/ios-ci/tests/podspec/fixtures/IRS.podspec +17 -0
- package/ios-ci/tests/podspec/fixtures/IRSBeta.podspec +17 -0
- package/ios-ci/tests/podspec/fixtures/RegulaCommon.podspec +17 -0
- package/ios-ci/tests/podspec/fixtures/RegulaCommonBeta.podspec +17 -0
- package/ios-ci/tests/podspec/test_podspec.py +188 -0
- package/ios-ci/tests/test_build_index.py +117 -0
- package/ios-ci/tests/test_dependency.py +139 -0
- package/ios-ci/tests/test_ios_ci.py +5 -0
- package/package.json +36 -0
- package/plugin.xml +48 -0
- package/www/capacitor/customization/camera_position.js +4 -0
- package/www/capacitor/customization/customization.js +66 -0
- package/www/capacitor/customization/customization_colors.js +233 -0
- package/www/capacitor/customization/customization_fonts.js +106 -0
- package/www/capacitor/customization/customization_images.js +129 -0
- package/www/capacitor/customization/font.js +23 -0
- package/www/capacitor/customization/screen_orientation.js +4 -0
- package/www/capacitor/detect_faces/detect_face_result.js +38 -0
- package/www/capacitor/detect_faces/detect_faces_attribute.js +15 -0
- package/www/capacitor/detect_faces/detect_faces_attribute_result.js +20 -0
- package/www/capacitor/detect_faces/detect_faces_backend_exception.js +23 -0
- package/www/capacitor/detect_faces/detect_faces_config.js +14 -0
- package/www/capacitor/detect_faces/detect_faces_exception.js +30 -0
- package/www/capacitor/detect_faces/detect_faces_request.js +67 -0
- package/www/capacitor/detect_faces/detect_faces_response.js +24 -0
- package/www/capacitor/detect_faces/detect_faces_scenario.js +10 -0
- package/www/capacitor/face_capture/face_capture_config.js +28 -0
- package/www/capacitor/face_capture/face_capture_exception.js +25 -0
- package/www/capacitor/face_capture/face_capture_image.js +26 -0
- package/www/capacitor/face_capture/face_capture_response.js +17 -0
- package/www/capacitor/image_params/output_image_crop.js +21 -0
- package/www/capacitor/image_params/output_image_params.js +9 -0
- package/www/capacitor/image_params/point.js +14 -0
- package/www/capacitor/image_params/rect.js +18 -0
- package/www/capacitor/image_params/size.js +9 -0
- package/www/capacitor/image_quality/image_quality_characteristic.js +24 -0
- package/www/capacitor/image_quality/image_quality_characteristic_name.js +58 -0
- package/www/capacitor/image_quality/image_quality_group.js +332 -0
- package/www/capacitor/image_quality/image_quality_range.js +26 -0
- package/www/capacitor/image_quality/image_quality_result.js +40 -0
- package/www/capacitor/index.js +219 -0
- package/www/capacitor/init/face_sdk_version.js +16 -0
- package/www/capacitor/init/init_config.js +9 -0
- package/www/capacitor/init/init_exception.js +29 -0
- package/www/capacitor/init/license_exception.js +29 -0
- package/www/capacitor/internal/bridge.js +39 -0
- package/www/capacitor/internal/cordova.js +17 -0
- package/www/capacitor/internal/webpack.config.js +11 -0
- package/www/capacitor/liveness/liveness_backend_exception.js +38 -0
- package/www/capacitor/liveness/liveness_config.js +54 -0
- package/www/capacitor/liveness/liveness_exception.js +35 -0
- package/www/capacitor/liveness/liveness_notification.js +34 -0
- package/www/capacitor/liveness/liveness_response.js +30 -0
- package/www/capacitor/match_faces/compared_face.js +21 -0
- package/www/capacitor/match_faces/compared_faces_pair.js +23 -0
- package/www/capacitor/match_faces/compared_faces_split.js +22 -0
- package/www/capacitor/match_faces/match_faces_backend_exception.js +14 -0
- package/www/capacitor/match_faces/match_faces_config.js +12 -0
- package/www/capacitor/match_faces/match_faces_detection.js +25 -0
- package/www/capacitor/match_faces/match_faces_detection_face.js +28 -0
- package/www/capacitor/match_faces/match_faces_exception.js +30 -0
- package/www/capacitor/match_faces/match_faces_image.js +25 -0
- package/www/capacitor/match_faces/match_faces_request.js +13 -0
- package/www/capacitor/match_faces/match_faces_response.js +28 -0
- package/www/capacitor/person_database/edit_group_persons_request.js +9 -0
- package/www/capacitor/person_database/image_upload.js +16 -0
- package/www/capacitor/person_database/pageable_item_list.js +22 -0
- package/www/capacitor/person_database/person.js +22 -0
- package/www/capacitor/person_database/person_database.js +145 -0
- package/www/capacitor/person_database/person_group.js +18 -0
- package/www/capacitor/person_database/person_image.js +22 -0
- package/www/capacitor/person_database/search_person.js +31 -0
- package/www/capacitor/person_database/search_person_detection.js +22 -0
- package/www/capacitor/person_database/search_person_image.js +26 -0
- package/www/capacitor/person_database/search_person_request.js +17 -0
- package/www/cordova.js +3738 -0
- package/www/react-native/customization/camera_position.js +4 -0
- package/www/react-native/customization/customization.js +66 -0
- package/www/react-native/customization/customization_colors.js +233 -0
- package/www/react-native/customization/customization_fonts.js +106 -0
- package/www/react-native/customization/customization_images.js +129 -0
- package/www/react-native/customization/font.js +23 -0
- package/www/react-native/customization/screen_orientation.js +4 -0
- package/www/react-native/detect_faces/detect_face_result.js +38 -0
- package/www/react-native/detect_faces/detect_faces_attribute.js +15 -0
- package/www/react-native/detect_faces/detect_faces_attribute_result.js +20 -0
- package/www/react-native/detect_faces/detect_faces_backend_exception.js +23 -0
- package/www/react-native/detect_faces/detect_faces_config.js +14 -0
- package/www/react-native/detect_faces/detect_faces_exception.js +30 -0
- package/www/react-native/detect_faces/detect_faces_request.js +67 -0
- package/www/react-native/detect_faces/detect_faces_response.js +24 -0
- package/www/react-native/detect_faces/detect_faces_scenario.js +10 -0
- package/www/react-native/face_capture/face_capture_config.js +28 -0
- package/www/react-native/face_capture/face_capture_exception.js +25 -0
- package/www/react-native/face_capture/face_capture_image.js +26 -0
- package/www/react-native/face_capture/face_capture_response.js +17 -0
- package/www/react-native/image_params/output_image_crop.js +21 -0
- package/www/react-native/image_params/output_image_params.js +9 -0
- package/www/react-native/image_params/point.js +14 -0
- package/www/react-native/image_params/rect.js +18 -0
- package/www/react-native/image_params/size.js +9 -0
- package/www/react-native/image_quality/image_quality_characteristic.js +24 -0
- package/www/react-native/image_quality/image_quality_characteristic_name.js +58 -0
- package/www/react-native/image_quality/image_quality_group.js +332 -0
- package/www/react-native/image_quality/image_quality_range.js +26 -0
- package/www/react-native/image_quality/image_quality_result.js +40 -0
- package/www/react-native/index.js +219 -0
- package/www/react-native/init/face_sdk_version.js +16 -0
- package/www/react-native/init/init_config.js +9 -0
- package/www/react-native/init/init_exception.js +29 -0
- package/www/react-native/init/license_exception.js +29 -0
- package/www/react-native/internal/bridge.js +39 -0
- package/www/react-native/liveness/liveness_backend_exception.js +38 -0
- package/www/react-native/liveness/liveness_config.js +54 -0
- package/www/react-native/liveness/liveness_exception.js +35 -0
- package/www/react-native/liveness/liveness_notification.js +34 -0
- package/www/react-native/liveness/liveness_response.js +30 -0
- package/www/react-native/match_faces/compared_face.js +21 -0
- package/www/react-native/match_faces/compared_faces_pair.js +23 -0
- package/www/react-native/match_faces/compared_faces_split.js +22 -0
- package/www/react-native/match_faces/match_faces_backend_exception.js +14 -0
- package/www/react-native/match_faces/match_faces_config.js +12 -0
- package/www/react-native/match_faces/match_faces_detection.js +25 -0
- package/www/react-native/match_faces/match_faces_detection_face.js +28 -0
- package/www/react-native/match_faces/match_faces_exception.js +30 -0
- package/www/react-native/match_faces/match_faces_image.js +25 -0
- package/www/react-native/match_faces/match_faces_request.js +13 -0
- package/www/react-native/match_faces/match_faces_response.js +28 -0
- package/www/react-native/person_database/edit_group_persons_request.js +9 -0
- package/www/react-native/person_database/image_upload.js +16 -0
- package/www/react-native/person_database/pageable_item_list.js +22 -0
- package/www/react-native/person_database/person.js +22 -0
- package/www/react-native/person_database/person_database.js +145 -0
- package/www/react-native/person_database/person_group.js +18 -0
- package/www/react-native/person_database/person_image.js +22 -0
- package/www/react-native/person_database/search_person.js +31 -0
- package/www/react-native/person_database/search_person_detection.js +22 -0
- package/www/react-native/person_database/search_person_image.js +26 -0
- package/www/react-native/person_database/search_person_request.js +17 -0
- package/www/types/customization/camera_position.d.ts +4 -0
- package/www/types/customization/customization.d.ts +24 -0
- package/www/types/customization/customization_colors.d.ts +31 -0
- package/www/types/customization/customization_fonts.d.ts +17 -0
- package/www/types/customization/customization_images.d.ts +18 -0
- package/www/types/customization/font.d.ts +14 -0
- package/www/types/customization/screen_orientation.d.ts +4 -0
- package/www/types/detect_faces/detect_face_result.d.ts +16 -0
- package/www/types/detect_faces/detect_faces_attribute.d.ts +15 -0
- package/www/types/detect_faces/detect_faces_attribute_result.d.ts +11 -0
- package/www/types/detect_faces/detect_faces_backend_exception.d.ts +15 -0
- package/www/types/detect_faces/detect_faces_config.d.ts +19 -0
- package/www/types/detect_faces/detect_faces_exception.d.ts +21 -0
- package/www/types/detect_faces/detect_faces_request.d.ts +27 -0
- package/www/types/detect_faces/detect_faces_response.d.ts +12 -0
- package/www/types/detect_faces/detect_faces_scenario.d.ts +10 -0
- package/www/types/face_capture/face_capture_config.d.ts +30 -0
- package/www/types/face_capture/face_capture_exception.d.ts +17 -0
- package/www/types/face_capture/face_capture_image.d.ts +15 -0
- package/www/types/face_capture/face_capture_response.d.ts +9 -0
- package/www/types/image_params/output_image_crop.d.ts +25 -0
- package/www/types/image_params/output_image_params.d.ts +13 -0
- package/www/types/image_params/point.d.ts +6 -0
- package/www/types/image_params/rect.d.ts +8 -0
- package/www/types/image_params/size.d.ts +6 -0
- package/www/types/image_quality/image_quality_characteristic.d.ts +4 -0
- package/www/types/image_quality/image_quality_characteristic_name.d.ts +58 -0
- package/www/types/image_quality/image_quality_group.d.ts +155 -0
- package/www/types/image_quality/image_quality_range.d.ts +8 -0
- package/www/types/image_quality/image_quality_result.d.ts +30 -0
- package/www/types/index.d.ts +159 -0
- package/www/types/init/face_sdk_version.d.ts +7 -0
- package/www/types/init/init_config.d.ts +7 -0
- package/www/types/init/init_exception.d.ts +20 -0
- package/www/types/init/license_exception.d.ts +21 -0
- package/www/types/liveness/liveness_backend_exception.d.ts +30 -0
- package/www/types/liveness/liveness_config.d.ts +56 -0
- package/www/types/liveness/liveness_exception.d.ts +26 -0
- package/www/types/liveness/liveness_notification.d.ts +28 -0
- package/www/types/liveness/liveness_response.d.ts +18 -0
- package/www/types/match_faces/compared_face.d.ts +11 -0
- package/www/types/match_faces/compared_faces_pair.d.ts +12 -0
- package/www/types/match_faces/compared_faces_split.d.ts +8 -0
- package/www/types/match_faces/match_faces_backend_exception.d.ts +6 -0
- package/www/types/match_faces/match_faces_config.d.ts +14 -0
- package/www/types/match_faces/match_faces_detection.d.ts +12 -0
- package/www/types/match_faces/match_faces_detection_face.d.ts +13 -0
- package/www/types/match_faces/match_faces_exception.d.ts +21 -0
- package/www/types/match_faces/match_faces_image.d.ts +16 -0
- package/www/types/match_faces/match_faces_request.d.ts +18 -0
- package/www/types/match_faces/match_faces_response.d.ts +12 -0
- package/www/types/person_database/edit_group_persons_request.d.ts +8 -0
- package/www/types/person_database/image_upload.d.ts +6 -0
- package/www/types/person_database/pageable_item_list.d.ts +7 -0
- package/www/types/person_database/person.d.ts +10 -0
- package/www/types/person_database/person_database.d.ts +92 -0
- package/www/types/person_database/person_group.d.ts +8 -0
- package/www/types/person_database/person_image.d.ts +10 -0
- package/www/types/person_database/search_person.d.ts +15 -0
- package/www/types/person_database/search_person_detection.d.ts +11 -0
- package/www/types/person_database/search_person_image.d.ts +12 -0
- package/www/types/person_database/search_person_request.d.ts +15 -0
|
Binary file
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta http-equiv="Content-Security-Policy"
|
|
6
|
+
content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;">
|
|
7
|
+
<meta name="format-detection" content="telephone=no">
|
|
8
|
+
<meta name="msapplication-tap-highlight" content="no">
|
|
9
|
+
<meta name="viewport" content="initial-scale=1, width=device-width, viewport-fit=cover">
|
|
10
|
+
<link rel="stylesheet" type="text/css" href="css/index.css">
|
|
11
|
+
<link rel="icon" href="data:,">
|
|
12
|
+
<title>FaceSDK</title>
|
|
13
|
+
</head>
|
|
14
|
+
|
|
15
|
+
<body>
|
|
16
|
+
<div id="mainUI" style="
|
|
17
|
+
text-align: center;
|
|
18
|
+
background-color: #F5FCFF;
|
|
19
|
+
height: 100%;">
|
|
20
|
+
<br>
|
|
21
|
+
<br>
|
|
22
|
+
<br>
|
|
23
|
+
<br>
|
|
24
|
+
<h1><span id="status"></span></h1>
|
|
25
|
+
<br>
|
|
26
|
+
<br>
|
|
27
|
+
<div>
|
|
28
|
+
<img style="width: 150px" src="img/portrait.png" id="img1" /><br>
|
|
29
|
+
<img style="width: 150px" src="img/portrait.png" id="img2" />
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<div>
|
|
33
|
+
<br>
|
|
34
|
+
<button id="matchFaces" style="margin: 3px; width:75%">Match</button>
|
|
35
|
+
<br>
|
|
36
|
+
<button id="liveness" style="margin: 3px; width:75%">Liveness</button>
|
|
37
|
+
<br>
|
|
38
|
+
<button id="clearResults" style="margin: 3px; width:75%">Clear</button>
|
|
39
|
+
</div>
|
|
40
|
+
<br>
|
|
41
|
+
<div>
|
|
42
|
+
Similarity: <span style="margin-right: 15px" id="similarityResult"></span> Liveness: <span
|
|
43
|
+
id="livenessResult"></span>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
<script type="text/javascript" src="cordova.js"></script>
|
|
47
|
+
<script type="text/javascript" src="js/index.js"></script>
|
|
48
|
+
<style type="text/css">
|
|
49
|
+
button {
|
|
50
|
+
width: 40%;
|
|
51
|
+
-moz-box-shadow: inset 0px -3px 7px 0px #29bbff;
|
|
52
|
+
-webkit-box-shadow: inset 0px -3px 7px 0px #29bbff;
|
|
53
|
+
box-shadow: inset 0px -3px 7px 0px #29bbff;
|
|
54
|
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #2dabf9), color-stop(1, #0688fa));
|
|
55
|
+
background: -moz-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
|
|
56
|
+
background: -webkit-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
|
|
57
|
+
background: -o-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
|
|
58
|
+
background: -ms-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
|
|
59
|
+
background: linear-gradient(to bottom, #2dabf9 5%, #0688fa 100%);
|
|
60
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#2dabf9', endColorstr='#0688fa', GradientType=0);
|
|
61
|
+
background-color: #2dabf9;
|
|
62
|
+
-moz-border-radius: 3px;
|
|
63
|
+
-webkit-border-radius: 3px;
|
|
64
|
+
border-radius: 3px;
|
|
65
|
+
border: 1px solid #0b0e07;
|
|
66
|
+
display: inline-block;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
color: #ffffff;
|
|
69
|
+
font-family: Arial;
|
|
70
|
+
font-size: 15px;
|
|
71
|
+
padding: 9px 23px;
|
|
72
|
+
text-decoration: none;
|
|
73
|
+
text-shadow: 0px 1px 0px #263666;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
button:hover {
|
|
77
|
+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #0688fa), color-stop(1, #2dabf9));
|
|
78
|
+
background: -moz-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
|
|
79
|
+
background: -webkit-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
|
|
80
|
+
background: -o-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
|
|
81
|
+
background: -ms-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
|
|
82
|
+
background: linear-gradient(to bottom, #0688fa 5%, #2dabf9 100%);
|
|
83
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0688fa', endColorstr='#2dabf9', GradientType=0);
|
|
84
|
+
background-color: #0688fa;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
button:active {
|
|
88
|
+
position: relative;
|
|
89
|
+
top: 1px;
|
|
90
|
+
}
|
|
91
|
+
</style>
|
|
92
|
+
</body>
|
|
93
|
+
|
|
94
|
+
</html>
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
document.addEventListener('deviceready', onDeviceReady)
|
|
2
|
+
|
|
3
|
+
async function init() {
|
|
4
|
+
if (!await initialize()) return
|
|
5
|
+
setStatus("Ready")
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
async function startLiveness() {
|
|
9
|
+
var response = await faceSdk.startLiveness({
|
|
10
|
+
config: new LivenessConfig({
|
|
11
|
+
skipStep: [LivenessSkipStep.ONBOARDING_STEP]
|
|
12
|
+
}),
|
|
13
|
+
notificationCompletion: (notification) => {
|
|
14
|
+
console.log("LivenessStatus: " + notification.status)
|
|
15
|
+
}
|
|
16
|
+
})
|
|
17
|
+
if (response.image == null) return
|
|
18
|
+
setImage(response.image, ImageType.LIVE, 1)
|
|
19
|
+
setLivenessStatus(response.liveness == LivenessStatus.PASSED ? "passed" : "unknown")
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async function matchFaces() {
|
|
23
|
+
if (image1 == null || image2 == null) {
|
|
24
|
+
setStatus("Both images required!")
|
|
25
|
+
return
|
|
26
|
+
}
|
|
27
|
+
setStatus("Processing...")
|
|
28
|
+
var request = new MatchFacesRequest([image1, image2])
|
|
29
|
+
var response = await faceSdk.matchFaces(request)
|
|
30
|
+
var split = await faceSdk.splitComparedFaces(response.results, 0.75)
|
|
31
|
+
var match = split.matchedFaces
|
|
32
|
+
setSimilarityStatus("failed")
|
|
33
|
+
if (match.length > 0)
|
|
34
|
+
setSimilarityStatus((match[0].similarity * 100).toFixed(2) + "%")
|
|
35
|
+
setStatus("Ready")
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function clearResults() {
|
|
39
|
+
setStatus("Ready")
|
|
40
|
+
setSimilarityStatus("null")
|
|
41
|
+
setLivenessStatus("null")
|
|
42
|
+
resetImages()
|
|
43
|
+
image1 = null
|
|
44
|
+
image2 = null
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// If 'regula.license' exists, init using license(enables offline match)
|
|
48
|
+
// otherwise init without license.
|
|
49
|
+
async function initialize() {
|
|
50
|
+
setStatus("Initializing...")
|
|
51
|
+
var license = await loadAssetIfExists("regula.license")
|
|
52
|
+
var config
|
|
53
|
+
if (license != null) config = new InitConfig(license)
|
|
54
|
+
var [success, error] = await faceSdk.initialize({ config: config })
|
|
55
|
+
if (!success && error != null) {
|
|
56
|
+
setStatus(error.message)
|
|
57
|
+
console.log(error.code + ": " + error.message)
|
|
58
|
+
}
|
|
59
|
+
return success
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function setImage(base64, type, position) {
|
|
63
|
+
setSimilarityStatus("null")
|
|
64
|
+
var mfImage = new MatchFacesImage(base64, type)
|
|
65
|
+
if (position == 1) {
|
|
66
|
+
image1 = mfImage
|
|
67
|
+
setUiImage1("data:image/png;base64," + base64)
|
|
68
|
+
setLivenessStatus("null")
|
|
69
|
+
}
|
|
70
|
+
if (position == 2) {
|
|
71
|
+
image2 = mfImage
|
|
72
|
+
setUiImage2("data:image/png;base64," + base64)
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
async function useCamera(position) {
|
|
77
|
+
var response = await faceSdk.startFaceCapture()
|
|
78
|
+
if (response.image == null) return
|
|
79
|
+
var image = response.image
|
|
80
|
+
setImage(image.image, image.imageType, position)
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function useGallery(position) {
|
|
84
|
+
navigator.camera.getPicture(function (result) {
|
|
85
|
+
if (result == null) return
|
|
86
|
+
setImage(result, ImageType.PRINTED, position)
|
|
87
|
+
}, function (_) { }, {
|
|
88
|
+
destinationType: Camera.DestinationType.DATA_URL,
|
|
89
|
+
sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
|
|
90
|
+
mediaType: Camera.MediaType.PICTURE
|
|
91
|
+
})
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function pickImage(position) {
|
|
95
|
+
navigator.notification.confirm("", button => {
|
|
96
|
+
if (button == 1) useGallery(position)
|
|
97
|
+
else useCamera(position)
|
|
98
|
+
}, "Select option", ["Use gallery", "Use camera"])
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
async function loadAssetIfExists(path) {
|
|
102
|
+
path = cordova.file.applicationDirectory + "www/" + path
|
|
103
|
+
return new Promise((resolve, _) => {
|
|
104
|
+
window.resolveLocalFileSystemURL(path, (fileEntry) => {
|
|
105
|
+
fileEntry.file((file) => {
|
|
106
|
+
var reader = new FileReader()
|
|
107
|
+
reader.onloadend = function(_) { resolve(this.result) }
|
|
108
|
+
reader.readAsDataURL(file)
|
|
109
|
+
})
|
|
110
|
+
}, (_) => resolve(null))
|
|
111
|
+
})
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
async function onDeviceReady() {
|
|
115
|
+
faceSdk = FaceSDKPlugin.FaceSDK.instance
|
|
116
|
+
|
|
117
|
+
image1 = null
|
|
118
|
+
image2 = null
|
|
119
|
+
|
|
120
|
+
// imports
|
|
121
|
+
FaceCaptureResponse = FaceSDKPlugin.FaceCaptureResponse
|
|
122
|
+
LivenessResponse = FaceSDKPlugin.LivenessResponse
|
|
123
|
+
MatchFacesResponse = FaceSDKPlugin.MatchFacesResponse
|
|
124
|
+
MatchFacesRequest = FaceSDKPlugin.MatchFacesRequest
|
|
125
|
+
MatchFacesImage = FaceSDKPlugin.MatchFacesImage
|
|
126
|
+
ComparedFacesSplit = FaceSDKPlugin.ComparedFacesSplit
|
|
127
|
+
InitConfig = FaceSDKPlugin.InitConfig
|
|
128
|
+
InitResponse = FaceSDKPlugin.InitResponse
|
|
129
|
+
LivenessNotification = FaceSDKPlugin.LivenessNotification
|
|
130
|
+
ImageType = FaceSDKPlugin.ImageType
|
|
131
|
+
LivenessSkipStep = FaceSDKPlugin.LivenessSkipStep
|
|
132
|
+
LivenessStatus = FaceSDKPlugin.LivenessStatus
|
|
133
|
+
LivenessConfig = FaceSDKPlugin.LivenessConfig
|
|
134
|
+
|
|
135
|
+
setStatus = (data) => document.getElementById("status").innerHTML = data
|
|
136
|
+
setSimilarityStatus = (data) => document.getElementById("similarityResult").innerHTML = data
|
|
137
|
+
setLivenessStatus = (data) => document.getElementById("livenessResult").innerHTML = data
|
|
138
|
+
setUiImage1 = (data) => document.getElementById("img1").src = data
|
|
139
|
+
setUiImage2 = (data) => document.getElementById("img2").src = data
|
|
140
|
+
resetImages = () => {
|
|
141
|
+
setUiImage1("img/portrait.png")
|
|
142
|
+
setUiImage2("img/portrait.png")
|
|
143
|
+
}
|
|
144
|
+
document.getElementById("img1").onclick = function () { pickImage(1) }
|
|
145
|
+
document.getElementById("img2").onclick = function () { pickImage(2) }
|
|
146
|
+
document.getElementById("matchFaces").addEventListener("click", matchFaces)
|
|
147
|
+
document.getElementById("liveness").addEventListener("click", startLiveness)
|
|
148
|
+
document.getElementById("clearResults").addEventListener("click", clearResults)
|
|
149
|
+
|
|
150
|
+
setSimilarityStatus("null")
|
|
151
|
+
setLivenessStatus("null")
|
|
152
|
+
|
|
153
|
+
init()
|
|
154
|
+
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"defaultProject": "app",
|
|
5
|
+
"newProjectRoot": "projects",
|
|
6
|
+
"projects": {
|
|
7
|
+
"app": {
|
|
8
|
+
"root": "",
|
|
9
|
+
"sourceRoot": "src",
|
|
10
|
+
"projectType": "application",
|
|
11
|
+
"prefix": "app",
|
|
12
|
+
"schematics": {},
|
|
13
|
+
"architect": {
|
|
14
|
+
"build": {
|
|
15
|
+
"builder": "@angular-devkit/build-angular:browser",
|
|
16
|
+
"options": {
|
|
17
|
+
"outputPath": "www",
|
|
18
|
+
"index": "src/index.html",
|
|
19
|
+
"main": "src/main.ts",
|
|
20
|
+
"polyfills": "src/polyfills.ts",
|
|
21
|
+
"tsConfig": "tsconfig.app.json",
|
|
22
|
+
"assets": [
|
|
23
|
+
{
|
|
24
|
+
"glob": "**/*",
|
|
25
|
+
"input": "src/assets",
|
|
26
|
+
"output": "assets"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"glob": "**/*.svg",
|
|
30
|
+
"input": "node_modules/ionicons/dist/ionicons/svg",
|
|
31
|
+
"output": "./svg"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"styles": [
|
|
35
|
+
{
|
|
36
|
+
"input": "src/theme/variables.scss"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"input": "src/global.scss"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"scripts": []
|
|
43
|
+
},
|
|
44
|
+
"configurations": {
|
|
45
|
+
"production": {
|
|
46
|
+
"fileReplacements": [
|
|
47
|
+
{
|
|
48
|
+
"replace": "src/environments/environment.ts",
|
|
49
|
+
"with": "src/environments/environment.prod.ts"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"optimization": true,
|
|
53
|
+
"outputHashing": "all",
|
|
54
|
+
"sourceMap": false,
|
|
55
|
+
"extractCss": true,
|
|
56
|
+
"namedChunks": false,
|
|
57
|
+
"aot": true,
|
|
58
|
+
"extractLicenses": true,
|
|
59
|
+
"vendorChunk": false,
|
|
60
|
+
"buildOptimizer": true,
|
|
61
|
+
"budgets": [
|
|
62
|
+
{
|
|
63
|
+
"type": "initial",
|
|
64
|
+
"maximumWarning": "2mb",
|
|
65
|
+
"maximumError": "5mb"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"ci": {
|
|
70
|
+
"progress": false
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"serve": {
|
|
75
|
+
"builder": "@angular-devkit/build-angular:dev-server",
|
|
76
|
+
"options": {
|
|
77
|
+
"browserTarget": "app:build"
|
|
78
|
+
},
|
|
79
|
+
"configurations": {
|
|
80
|
+
"production": {
|
|
81
|
+
"browserTarget": "app:build:production"
|
|
82
|
+
},
|
|
83
|
+
"ci": {
|
|
84
|
+
"progress": false
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"extract-i18n": {
|
|
89
|
+
"builder": "@angular-devkit/build-angular:extract-i18n",
|
|
90
|
+
"options": {
|
|
91
|
+
"browserTarget": "app:build"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"test": {
|
|
95
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
96
|
+
"options": {
|
|
97
|
+
"main": "src/test.ts",
|
|
98
|
+
"polyfills": "src/polyfills.ts",
|
|
99
|
+
"tsConfig": "tsconfig.spec.json",
|
|
100
|
+
"karmaConfig": "karma.conf.js",
|
|
101
|
+
"styles": [],
|
|
102
|
+
"scripts": [],
|
|
103
|
+
"assets": [
|
|
104
|
+
{
|
|
105
|
+
"glob": "favicon.ico",
|
|
106
|
+
"input": "src/",
|
|
107
|
+
"output": "/"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"glob": "**/*",
|
|
111
|
+
"input": "src/assets",
|
|
112
|
+
"output": "/assets"
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
"configurations": {
|
|
117
|
+
"ci": {
|
|
118
|
+
"progress": false,
|
|
119
|
+
"watch": false
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"lint": {
|
|
124
|
+
"builder": "@angular-devkit/build-angular:tslint",
|
|
125
|
+
"options": {
|
|
126
|
+
"tsConfig": [
|
|
127
|
+
"tsconfig.app.json",
|
|
128
|
+
"tsconfig.spec.json",
|
|
129
|
+
"e2e/tsconfig.json"
|
|
130
|
+
],
|
|
131
|
+
"exclude": ["**/node_modules/**"]
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"e2e": {
|
|
135
|
+
"builder": "@angular-devkit/build-angular:protractor",
|
|
136
|
+
"options": {
|
|
137
|
+
"protractorConfig": "e2e/protractor.conf.js",
|
|
138
|
+
"devServerTarget": "app:serve"
|
|
139
|
+
},
|
|
140
|
+
"configurations": {
|
|
141
|
+
"production": {
|
|
142
|
+
"devServerTarget": "app:serve:production"
|
|
143
|
+
},
|
|
144
|
+
"ci": {
|
|
145
|
+
"devServerTarget": "app:serve:ci"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"ionic-cordova-build": {
|
|
150
|
+
"builder": "@ionic/cordova-builders:cordova-build",
|
|
151
|
+
"options": {
|
|
152
|
+
"browserTarget": "app:build"
|
|
153
|
+
},
|
|
154
|
+
"configurations": {
|
|
155
|
+
"production": {
|
|
156
|
+
"browserTarget": "app:build:production"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"ionic-cordova-serve": {
|
|
161
|
+
"builder": "@ionic/cordova-builders:cordova-serve",
|
|
162
|
+
"options": {
|
|
163
|
+
"cordovaBuildTarget": "app:ionic-cordova-build",
|
|
164
|
+
"devServerTarget": "app:serve"
|
|
165
|
+
},
|
|
166
|
+
"configurations": {
|
|
167
|
+
"production": {
|
|
168
|
+
"cordovaBuildTarget": "app:ionic-cordova-build:production",
|
|
169
|
+
"devServerTarget": "app:serve:production"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"cli": {
|
|
177
|
+
"defaultCollection": "@ionic/angular-toolkit"
|
|
178
|
+
},
|
|
179
|
+
"schematics": {
|
|
180
|
+
"@ionic/angular-toolkit:component": {
|
|
181
|
+
"styleext": "scss"
|
|
182
|
+
},
|
|
183
|
+
"@ionic/angular-toolkit:page": {
|
|
184
|
+
"styleext": "scss"
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
@@ -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'.
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
+
<widget android-packageName="com.regula.face.api" ios-CFBundleIdentifier="regula.FaceSDKSample" version="1.0.0" 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
|
+
<name>FaceSDK</name>
|
|
4
|
+
<description>A sample Regula Face application for reading and comparing faces.</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
|
+
<platform name="android">
|
|
22
|
+
<preference name="orientation" value="portrait" />
|
|
23
|
+
<framework src="com.android.support:appcompat-v7:+" />
|
|
24
|
+
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
|
|
25
|
+
<application android:usesCleartextTraffic="true" />
|
|
26
|
+
</edit-config>
|
|
27
|
+
|
|
28
|
+
<preference name="android-minSdkVersion" value="21" />
|
|
29
|
+
<preference name="android-targetSdkVersion" value="33" />
|
|
30
|
+
<preference name="GradlePluginKotlinEnabled" value="true" />
|
|
31
|
+
|
|
32
|
+
<resource-file src="resources/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
|
|
33
|
+
<allow-intent href="market:*" />
|
|
34
|
+
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
|
|
35
|
+
<icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
|
|
36
|
+
<icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
|
|
37
|
+
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
|
|
38
|
+
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
|
|
39
|
+
<icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
|
|
40
|
+
<splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
|
|
41
|
+
<splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
|
|
42
|
+
<splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
|
|
43
|
+
<splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
|
|
44
|
+
<splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
|
|
45
|
+
<splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
|
|
46
|
+
<splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
|
|
47
|
+
<splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
|
|
48
|
+
<splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
|
|
49
|
+
<splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
|
|
50
|
+
<splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
|
|
51
|
+
<splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
|
|
52
|
+
</platform>
|
|
53
|
+
<platform name="ios">
|
|
54
|
+
<preference name="orientation" value="portrait" />
|
|
55
|
+
<allow-intent href="itms:*" />
|
|
56
|
+
<allow-intent href="itms-apps:*" />
|
|
57
|
+
<config-file parent="NSCameraUsageDescription" target="*-Info.plist">
|
|
58
|
+
<string>To use camera</string>
|
|
59
|
+
</config-file>
|
|
60
|
+
<config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
|
|
61
|
+
<string>To pick images</string>
|
|
62
|
+
</config-file>
|
|
63
|
+
<icon height="57" src="resources/ios/icon/icon.png" width="57" />
|
|
64
|
+
<icon height="114" src="resources/ios/icon/icon@2x.png" width="114" />
|
|
65
|
+
<icon height="29" src="resources/ios/icon/icon-small.png" width="29" />
|
|
66
|
+
<icon height="58" src="resources/ios/icon/icon-small@2x.png" width="58" />
|
|
67
|
+
<icon height="87" src="resources/ios/icon/icon-small@3x.png" width="87" />
|
|
68
|
+
<icon height="20" src="resources/ios/icon/icon-20.png" width="20" />
|
|
69
|
+
<icon height="40" src="resources/ios/icon/icon-20@2x.png" width="40" />
|
|
70
|
+
<icon height="60" src="resources/ios/icon/icon-20@3x.png" width="60" />
|
|
71
|
+
<icon height="48" src="resources/ios/icon/icon-24@2x.png" width="48" />
|
|
72
|
+
<icon height="55" src="resources/ios/icon/icon-27.5@2x.png" width="55" />
|
|
73
|
+
<icon height="29" src="resources/ios/icon/icon-29.png" width="29" />
|
|
74
|
+
<icon height="58" src="resources/ios/icon/icon-29@2x.png" width="58" />
|
|
75
|
+
<icon height="87" src="resources/ios/icon/icon-29@3x.png" width="87" />
|
|
76
|
+
<icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
|
|
77
|
+
<icon height="80" src="resources/ios/icon/icon-40@2x.png" width="80" />
|
|
78
|
+
<icon height="120" src="resources/ios/icon/icon-40@3x.png" width="120" />
|
|
79
|
+
<icon height="88" src="resources/ios/icon/icon-44@2x.png" width="88" />
|
|
80
|
+
<icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
|
|
81
|
+
<icon height="100" src="resources/ios/icon/icon-50@2x.png" width="100" />
|
|
82
|
+
<icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
|
|
83
|
+
<icon height="120" src="resources/ios/icon/icon-60@2x.png" width="120" />
|
|
84
|
+
<icon height="180" src="resources/ios/icon/icon-60@3x.png" width="180" />
|
|
85
|
+
<icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
|
|
86
|
+
<icon height="144" src="resources/ios/icon/icon-72@2x.png" width="144" />
|
|
87
|
+
<icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
|
|
88
|
+
<icon height="152" src="resources/ios/icon/icon-76@2x.png" width="152" />
|
|
89
|
+
<icon height="167" src="resources/ios/icon/icon-83.5@2x.png" width="167" />
|
|
90
|
+
<icon height="172" src="resources/ios/icon/icon-86@2x.png" width="172" />
|
|
91
|
+
<icon height="196" src="resources/ios/icon/icon-98@2x.png" width="196" />
|
|
92
|
+
<icon height="1024" src="resources/ios/icon/icon-1024.png" width="1024" />
|
|
93
|
+
<splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
|
|
94
|
+
<splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" />
|
|
95
|
+
<splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" />
|
|
96
|
+
<splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" />
|
|
97
|
+
<splash height="1125" src="resources/ios/splash/Default-Landscape-2436h.png" width="2436" />
|
|
98
|
+
<splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" />
|
|
99
|
+
<splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" />
|
|
100
|
+
<splash height="1536" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" />
|
|
101
|
+
<splash height="2732" src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" />
|
|
102
|
+
<splash height="2048" src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" />
|
|
103
|
+
<splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" />
|
|
104
|
+
<splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" />
|
|
105
|
+
<splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" />
|
|
106
|
+
<splash height="2436" src="resources/ios/splash/Default-2436h.png" width="1125" />
|
|
107
|
+
<splash height="2732" src="resources/ios/splash/Default@2x~universal~anyany.png" width="2732" />
|
|
108
|
+
</platform>
|
|
109
|
+
<plugin name="cordova-plugin-statusbar" spec="2.4.2" />
|
|
110
|
+
<plugin name="cordova-plugin-device" spec="2.0.2" />
|
|
111
|
+
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
|
|
112
|
+
<plugin name="cordova-plugin-ionic-webview" spec="^4.0.0" />
|
|
113
|
+
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
|
|
114
|
+
</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
|
+
});
|