@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
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { IonPage } from '@ionic/react'
|
|
2
|
+
import React from "react"
|
|
3
|
+
import { File } from '@awesome-cordova-plugins/file'
|
|
4
|
+
import { Dialogs } from '@awesome-cordova-plugins/dialogs'
|
|
5
|
+
import { Camera, DestinationType, MediaType, PictureSourceType } from '@awesome-cordova-plugins/camera'
|
|
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
|
+
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
|
+
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 + "public/assets")
|
|
106
|
+
var fileEntry = await File.getFile(dir, path, {})
|
|
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 faceSdk = FaceSDK.instance
|
|
121
|
+
|
|
122
|
+
var image1: MatchFacesImage | null
|
|
123
|
+
var image2: MatchFacesImage | null
|
|
124
|
+
|
|
125
|
+
var setStatus = (data: string) => status.innerHTML = data
|
|
126
|
+
var setSimilarityStatus = (data: string) => similarityResult.innerHTML = data
|
|
127
|
+
var setLivenessStatus = (data: string) => livenessResult.innerHTML = data
|
|
128
|
+
var setUiImage1 = (data: string) => img1.src = data
|
|
129
|
+
var setUiImage2 = (data: string) => img2.src = data
|
|
130
|
+
var resetImages = () => {
|
|
131
|
+
setUiImage1("assets/img/portrait.png")
|
|
132
|
+
setUiImage2("assets/img/portrait.png")
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
const status = document.querySelector('.status') as HTMLElement
|
|
136
|
+
const similarityResult = document.querySelector('.similarityResult') as HTMLElement
|
|
137
|
+
const livenessResult = document.querySelector('.livenessResult') as HTMLElement
|
|
138
|
+
const img1 = document.querySelector('.img1') as any
|
|
139
|
+
const img2 = document.querySelector('.img2') as any
|
|
140
|
+
const matchFacesButton = document.querySelector('.matchFacesButton') as HTMLElement
|
|
141
|
+
const livenessButton = document.querySelector('.livenessButton') as HTMLElement
|
|
142
|
+
const clearResultsButton = document.querySelector('.clearResultsButton') as HTMLElement
|
|
143
|
+
|
|
144
|
+
img1.addEventListener("click", () => pickImage(1))
|
|
145
|
+
img2.addEventListener("click", () => pickImage(2))
|
|
146
|
+
matchFacesButton.addEventListener("click", matchFaces)
|
|
147
|
+
livenessButton.addEventListener("click", startLiveness)
|
|
148
|
+
clearResultsButton.addEventListener("click", clearResults)
|
|
149
|
+
|
|
150
|
+
document.addEventListener('deviceready', init)
|
|
151
|
+
|
|
152
|
+
const Home: React.FC = () => {
|
|
153
|
+
return (
|
|
154
|
+
<IonPage>
|
|
155
|
+
</IonPage>
|
|
156
|
+
)
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export default Home
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// jest-dom adds custom jest matchers for asserting on DOM nodes.
|
|
2
|
+
// allows you to do things like:
|
|
3
|
+
// expect(element).toHaveTextContent(/react/i)
|
|
4
|
+
// learn more: https://github.com/testing-library/jest-dom
|
|
5
|
+
import '@testing-library/jest-dom/extend-expect';
|
|
6
|
+
|
|
7
|
+
// Mock matchmedia
|
|
8
|
+
window.matchMedia = window.matchMedia || function() {
|
|
9
|
+
return {
|
|
10
|
+
matches: false,
|
|
11
|
+
addListener: function() {},
|
|
12
|
+
removeListener: function() {}
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
/* Ionic Variables and Theming. For more info, please see:
|
|
2
|
+
http://ionicframework.com/docs/theming/ */
|
|
3
|
+
|
|
4
|
+
/** Ionic CSS Variables **/
|
|
5
|
+
:root {
|
|
6
|
+
/** primary **/
|
|
7
|
+
--ion-color-primary: #3880ff;
|
|
8
|
+
--ion-color-primary-rgb: 56, 128, 255;
|
|
9
|
+
--ion-color-primary-contrast: #ffffff;
|
|
10
|
+
--ion-color-primary-contrast-rgb: 255, 255, 255;
|
|
11
|
+
--ion-color-primary-shade: #3171e0;
|
|
12
|
+
--ion-color-primary-tint: #4c8dff;
|
|
13
|
+
|
|
14
|
+
/** secondary **/
|
|
15
|
+
--ion-color-secondary: #3dc2ff;
|
|
16
|
+
--ion-color-secondary-rgb: 61, 194, 255;
|
|
17
|
+
--ion-color-secondary-contrast: #ffffff;
|
|
18
|
+
--ion-color-secondary-contrast-rgb: 255, 255, 255;
|
|
19
|
+
--ion-color-secondary-shade: #36abe0;
|
|
20
|
+
--ion-color-secondary-tint: #50c8ff;
|
|
21
|
+
|
|
22
|
+
/** tertiary **/
|
|
23
|
+
--ion-color-tertiary: #5260ff;
|
|
24
|
+
--ion-color-tertiary-rgb: 82, 96, 255;
|
|
25
|
+
--ion-color-tertiary-contrast: #ffffff;
|
|
26
|
+
--ion-color-tertiary-contrast-rgb: 255, 255, 255;
|
|
27
|
+
--ion-color-tertiary-shade: #4854e0;
|
|
28
|
+
--ion-color-tertiary-tint: #6370ff;
|
|
29
|
+
|
|
30
|
+
/** success **/
|
|
31
|
+
--ion-color-success: #2dd36f;
|
|
32
|
+
--ion-color-success-rgb: 45, 211, 111;
|
|
33
|
+
--ion-color-success-contrast: #ffffff;
|
|
34
|
+
--ion-color-success-contrast-rgb: 255, 255, 255;
|
|
35
|
+
--ion-color-success-shade: #28ba62;
|
|
36
|
+
--ion-color-success-tint: #42d77d;
|
|
37
|
+
|
|
38
|
+
/** warning **/
|
|
39
|
+
--ion-color-warning: #ffc409;
|
|
40
|
+
--ion-color-warning-rgb: 255, 196, 9;
|
|
41
|
+
--ion-color-warning-contrast: #000000;
|
|
42
|
+
--ion-color-warning-contrast-rgb: 0, 0, 0;
|
|
43
|
+
--ion-color-warning-shade: #e0ac08;
|
|
44
|
+
--ion-color-warning-tint: #ffca22;
|
|
45
|
+
|
|
46
|
+
/** danger **/
|
|
47
|
+
--ion-color-danger: #eb445a;
|
|
48
|
+
--ion-color-danger-rgb: 235, 68, 90;
|
|
49
|
+
--ion-color-danger-contrast: #ffffff;
|
|
50
|
+
--ion-color-danger-contrast-rgb: 255, 255, 255;
|
|
51
|
+
--ion-color-danger-shade: #cf3c4f;
|
|
52
|
+
--ion-color-danger-tint: #ed576b;
|
|
53
|
+
|
|
54
|
+
/** dark **/
|
|
55
|
+
--ion-color-dark: #222428;
|
|
56
|
+
--ion-color-dark-rgb: 34, 36, 40;
|
|
57
|
+
--ion-color-dark-contrast: #ffffff;
|
|
58
|
+
--ion-color-dark-contrast-rgb: 255, 255, 255;
|
|
59
|
+
--ion-color-dark-shade: #1e2023;
|
|
60
|
+
--ion-color-dark-tint: #383a3e;
|
|
61
|
+
|
|
62
|
+
/** medium **/
|
|
63
|
+
--ion-color-medium: #92949c;
|
|
64
|
+
--ion-color-medium-rgb: 146, 148, 156;
|
|
65
|
+
--ion-color-medium-contrast: #ffffff;
|
|
66
|
+
--ion-color-medium-contrast-rgb: 255, 255, 255;
|
|
67
|
+
--ion-color-medium-shade: #808289;
|
|
68
|
+
--ion-color-medium-tint: #9d9fa6;
|
|
69
|
+
|
|
70
|
+
/** light **/
|
|
71
|
+
--ion-color-light: #f4f5f8;
|
|
72
|
+
--ion-color-light-rgb: 244, 245, 248;
|
|
73
|
+
--ion-color-light-contrast: #000000;
|
|
74
|
+
--ion-color-light-contrast-rgb: 0, 0, 0;
|
|
75
|
+
--ion-color-light-shade: #d7d8da;
|
|
76
|
+
--ion-color-light-tint: #f5f6f9;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@media (prefers-color-scheme: dark) {
|
|
80
|
+
/*
|
|
81
|
+
* Dark Colors
|
|
82
|
+
* -------------------------------------------
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
body {
|
|
86
|
+
--ion-color-primary: #428cff;
|
|
87
|
+
--ion-color-primary-rgb: 66,140,255;
|
|
88
|
+
--ion-color-primary-contrast: #ffffff;
|
|
89
|
+
--ion-color-primary-contrast-rgb: 255,255,255;
|
|
90
|
+
--ion-color-primary-shade: #3a7be0;
|
|
91
|
+
--ion-color-primary-tint: #5598ff;
|
|
92
|
+
|
|
93
|
+
--ion-color-secondary: #50c8ff;
|
|
94
|
+
--ion-color-secondary-rgb: 80,200,255;
|
|
95
|
+
--ion-color-secondary-contrast: #ffffff;
|
|
96
|
+
--ion-color-secondary-contrast-rgb: 255,255,255;
|
|
97
|
+
--ion-color-secondary-shade: #46b0e0;
|
|
98
|
+
--ion-color-secondary-tint: #62ceff;
|
|
99
|
+
|
|
100
|
+
--ion-color-tertiary: #6a64ff;
|
|
101
|
+
--ion-color-tertiary-rgb: 106,100,255;
|
|
102
|
+
--ion-color-tertiary-contrast: #ffffff;
|
|
103
|
+
--ion-color-tertiary-contrast-rgb: 255,255,255;
|
|
104
|
+
--ion-color-tertiary-shade: #5d58e0;
|
|
105
|
+
--ion-color-tertiary-tint: #7974ff;
|
|
106
|
+
|
|
107
|
+
--ion-color-success: #2fdf75;
|
|
108
|
+
--ion-color-success-rgb: 47,223,117;
|
|
109
|
+
--ion-color-success-contrast: #000000;
|
|
110
|
+
--ion-color-success-contrast-rgb: 0,0,0;
|
|
111
|
+
--ion-color-success-shade: #29c467;
|
|
112
|
+
--ion-color-success-tint: #44e283;
|
|
113
|
+
|
|
114
|
+
--ion-color-warning: #ffd534;
|
|
115
|
+
--ion-color-warning-rgb: 255,213,52;
|
|
116
|
+
--ion-color-warning-contrast: #000000;
|
|
117
|
+
--ion-color-warning-contrast-rgb: 0,0,0;
|
|
118
|
+
--ion-color-warning-shade: #e0bb2e;
|
|
119
|
+
--ion-color-warning-tint: #ffd948;
|
|
120
|
+
|
|
121
|
+
--ion-color-danger: #ff4961;
|
|
122
|
+
--ion-color-danger-rgb: 255,73,97;
|
|
123
|
+
--ion-color-danger-contrast: #ffffff;
|
|
124
|
+
--ion-color-danger-contrast-rgb: 255,255,255;
|
|
125
|
+
--ion-color-danger-shade: #e04055;
|
|
126
|
+
--ion-color-danger-tint: #ff5b71;
|
|
127
|
+
|
|
128
|
+
--ion-color-dark: #f4f5f8;
|
|
129
|
+
--ion-color-dark-rgb: 244,245,248;
|
|
130
|
+
--ion-color-dark-contrast: #000000;
|
|
131
|
+
--ion-color-dark-contrast-rgb: 0,0,0;
|
|
132
|
+
--ion-color-dark-shade: #d7d8da;
|
|
133
|
+
--ion-color-dark-tint: #f5f6f9;
|
|
134
|
+
|
|
135
|
+
--ion-color-medium: #989aa2;
|
|
136
|
+
--ion-color-medium-rgb: 152,154,162;
|
|
137
|
+
--ion-color-medium-contrast: #000000;
|
|
138
|
+
--ion-color-medium-contrast-rgb: 0,0,0;
|
|
139
|
+
--ion-color-medium-shade: #86888f;
|
|
140
|
+
--ion-color-medium-tint: #a2a4ab;
|
|
141
|
+
|
|
142
|
+
--ion-color-light: #222428;
|
|
143
|
+
--ion-color-light-rgb: 34,36,40;
|
|
144
|
+
--ion-color-light-contrast: #ffffff;
|
|
145
|
+
--ion-color-light-contrast-rgb: 255,255,255;
|
|
146
|
+
--ion-color-light-shade: #1e2023;
|
|
147
|
+
--ion-color-light-tint: #383a3e;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/*
|
|
151
|
+
* iOS Dark Theme
|
|
152
|
+
* -------------------------------------------
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
.ios body {
|
|
156
|
+
--ion-background-color: #000000;
|
|
157
|
+
--ion-background-color-rgb: 0,0,0;
|
|
158
|
+
|
|
159
|
+
--ion-text-color: #ffffff;
|
|
160
|
+
--ion-text-color-rgb: 255,255,255;
|
|
161
|
+
|
|
162
|
+
--ion-color-step-50: #0d0d0d;
|
|
163
|
+
--ion-color-step-100: #1a1a1a;
|
|
164
|
+
--ion-color-step-150: #262626;
|
|
165
|
+
--ion-color-step-200: #333333;
|
|
166
|
+
--ion-color-step-250: #404040;
|
|
167
|
+
--ion-color-step-300: #4d4d4d;
|
|
168
|
+
--ion-color-step-350: #595959;
|
|
169
|
+
--ion-color-step-400: #666666;
|
|
170
|
+
--ion-color-step-450: #737373;
|
|
171
|
+
--ion-color-step-500: #808080;
|
|
172
|
+
--ion-color-step-550: #8c8c8c;
|
|
173
|
+
--ion-color-step-600: #999999;
|
|
174
|
+
--ion-color-step-650: #a6a6a6;
|
|
175
|
+
--ion-color-step-700: #b3b3b3;
|
|
176
|
+
--ion-color-step-750: #bfbfbf;
|
|
177
|
+
--ion-color-step-800: #cccccc;
|
|
178
|
+
--ion-color-step-850: #d9d9d9;
|
|
179
|
+
--ion-color-step-900: #e6e6e6;
|
|
180
|
+
--ion-color-step-950: #f2f2f2;
|
|
181
|
+
|
|
182
|
+
--ion-item-background: #000000;
|
|
183
|
+
|
|
184
|
+
--ion-card-background: #1c1c1d;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.ios ion-modal {
|
|
188
|
+
--ion-background-color: var(--ion-color-step-100);
|
|
189
|
+
--ion-toolbar-background: var(--ion-color-step-150);
|
|
190
|
+
--ion-toolbar-border-color: var(--ion-color-step-250);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
/*
|
|
195
|
+
* Material Design Dark Theme
|
|
196
|
+
* -------------------------------------------
|
|
197
|
+
*/
|
|
198
|
+
|
|
199
|
+
.md body {
|
|
200
|
+
--ion-background-color: #121212;
|
|
201
|
+
--ion-background-color-rgb: 18,18,18;
|
|
202
|
+
|
|
203
|
+
--ion-text-color: #ffffff;
|
|
204
|
+
--ion-text-color-rgb: 255,255,255;
|
|
205
|
+
|
|
206
|
+
--ion-border-color: #222222;
|
|
207
|
+
|
|
208
|
+
--ion-color-step-50: #1e1e1e;
|
|
209
|
+
--ion-color-step-100: #2a2a2a;
|
|
210
|
+
--ion-color-step-150: #363636;
|
|
211
|
+
--ion-color-step-200: #414141;
|
|
212
|
+
--ion-color-step-250: #4d4d4d;
|
|
213
|
+
--ion-color-step-300: #595959;
|
|
214
|
+
--ion-color-step-350: #656565;
|
|
215
|
+
--ion-color-step-400: #717171;
|
|
216
|
+
--ion-color-step-450: #7d7d7d;
|
|
217
|
+
--ion-color-step-500: #898989;
|
|
218
|
+
--ion-color-step-550: #949494;
|
|
219
|
+
--ion-color-step-600: #a0a0a0;
|
|
220
|
+
--ion-color-step-650: #acacac;
|
|
221
|
+
--ion-color-step-700: #b8b8b8;
|
|
222
|
+
--ion-color-step-750: #c4c4c4;
|
|
223
|
+
--ion-color-step-800: #d0d0d0;
|
|
224
|
+
--ion-color-step-850: #dbdbdb;
|
|
225
|
+
--ion-color-step-900: #e7e7e7;
|
|
226
|
+
--ion-color-step-950: #f3f3f3;
|
|
227
|
+
|
|
228
|
+
--ion-item-background: #1e1e1e;
|
|
229
|
+
|
|
230
|
+
--ion-toolbar-background: #1f1f1f;
|
|
231
|
+
|
|
232
|
+
--ion-tab-bar-background: #1f1f1f;
|
|
233
|
+
|
|
234
|
+
--ion-card-background: #1e1e1e;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
html {
|
|
239
|
+
/* For more information on dynamic font scaling, visit the documentation:
|
|
240
|
+
https://ionicframework.com/docs/layout/dynamic-font-scaling */
|
|
241
|
+
--ion-dynamic-font: var(--ion-default-dynamic-font);
|
|
242
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ESNext",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
|
6
|
+
"allowJs": false,
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"esModuleInterop": false,
|
|
9
|
+
"allowSyntheticDefaultImports": true,
|
|
10
|
+
"strict": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"module": "ESNext",
|
|
13
|
+
"moduleResolution": "Node",
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"isolatedModules": true,
|
|
16
|
+
"noEmit": true,
|
|
17
|
+
"jsx": "react-jsx"
|
|
18
|
+
},
|
|
19
|
+
"include": ["src"],
|
|
20
|
+
"references": [{ "path": "./tsconfig.node.json" }]
|
|
21
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import legacy from '@vitejs/plugin-legacy'
|
|
2
|
+
import react from '@vitejs/plugin-react'
|
|
3
|
+
import { defineConfig } from 'vite'
|
|
4
|
+
|
|
5
|
+
// https://vitejs.dev/config/
|
|
6
|
+
export default defineConfig({
|
|
7
|
+
plugins: [
|
|
8
|
+
react(),
|
|
9
|
+
legacy()
|
|
10
|
+
],
|
|
11
|
+
test: {
|
|
12
|
+
globals: true,
|
|
13
|
+
environment: 'jsdom',
|
|
14
|
+
setupFiles: './src/setupTests.ts',
|
|
15
|
+
}
|
|
16
|
+
})
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Use IntelliSense to learn about possible attributes.
|
|
3
|
+
// Hover to view descriptions of existing attributes.
|
|
4
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
"configurations": [
|
|
7
|
+
{
|
|
8
|
+
"name": "Debug Android on emulator",
|
|
9
|
+
"type": "cordova",
|
|
10
|
+
"request": "launch",
|
|
11
|
+
"platform": "android",
|
|
12
|
+
"target": "emulator",
|
|
13
|
+
"port": 9222,
|
|
14
|
+
"sourceMaps": true,
|
|
15
|
+
"cwd": "${workspaceFolder}"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Debug Android on device",
|
|
19
|
+
"type": "cordova",
|
|
20
|
+
"request": "launch",
|
|
21
|
+
"platform": "android",
|
|
22
|
+
"target": "device",
|
|
23
|
+
"port": 9222,
|
|
24
|
+
"sourceMaps": true,
|
|
25
|
+
"cwd": "${workspaceFolder}"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
+
<widget android-packageName="com.regula.faceapi" ios-CFBundleIdentifier="regula.FaceSDKSample" version="1.0.0" xmlns:android="http://schemas.android.com/apk/res/android" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
|
3
|
+
<name>FaceSDK</name>
|
|
4
|
+
<author email="cordova.support@regulaforensics.com" href="https://mobile.regulaforensics.com">Regula Forensics Inc.</author>
|
|
5
|
+
<content src="index.html" />
|
|
6
|
+
<access origin="*" />
|
|
7
|
+
<allow-intent href="http://*/*" />
|
|
8
|
+
<allow-intent href="https://*/*" />
|
|
9
|
+
<allow-intent href="tel:*" />
|
|
10
|
+
<allow-intent href="sms:*" />
|
|
11
|
+
<allow-intent href="mailto:*" />
|
|
12
|
+
<allow-intent href="geo:*" />
|
|
13
|
+
<platform name="android">
|
|
14
|
+
<preference name="orientation" value="portrait" />
|
|
15
|
+
<preference name="GradlePluginKotlinEnabled" value="true" />
|
|
16
|
+
<preference name="android-minSdkVersion" value="23" />
|
|
17
|
+
<preference name="android-targetSdkVersion" value="34" />
|
|
18
|
+
<allow-intent href="market:*" />
|
|
19
|
+
<config-file parent="/*" target="AndroidManifest.xml">
|
|
20
|
+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
|
21
|
+
</config-file>
|
|
22
|
+
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
|
|
23
|
+
<application android:usesCleartextTraffic="true" />
|
|
24
|
+
</edit-config>
|
|
25
|
+
</platform>
|
|
26
|
+
<platform name="ios">
|
|
27
|
+
<preference name="orientation" value="portrait" />
|
|
28
|
+
<allow-intent href="itms:*" />
|
|
29
|
+
<allow-intent href="itms-apps:*" />
|
|
30
|
+
<config-file target="*-Info.plist" parent="NSCameraUsageDescription">
|
|
31
|
+
<string>To use camera</string>
|
|
32
|
+
</config-file>
|
|
33
|
+
<config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
|
|
34
|
+
<string>To pick images</string>
|
|
35
|
+
</config-file>
|
|
36
|
+
</platform>
|
|
37
|
+
</widget>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "face-sdk",
|
|
3
|
+
"displayName": "FaceSDK",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"setup": "npm install && cordova prepare",
|
|
8
|
+
"android": "cordova run android",
|
|
9
|
+
"ios": "cordova run ios"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"ecosystem:cordova"
|
|
13
|
+
],
|
|
14
|
+
"author": "Regula Forensics Inc.",
|
|
15
|
+
"license": "commercial",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@regulaforensics/face-sdk": "6.3.3-beta",
|
|
18
|
+
"@regulaforensics/cordova-plugin-face-core-basic": "6.2.1",
|
|
19
|
+
"cordova-android": "12.0.1",
|
|
20
|
+
"cordova-ios": "7.0.1",
|
|
21
|
+
"cordova-plugin-add-swift-support": "2.0.2",
|
|
22
|
+
"cordova-plugin-camera": "7.0.0",
|
|
23
|
+
"jetifier": "2.0.0",
|
|
24
|
+
"cordova-plugin-dialogs": "2.0.2",
|
|
25
|
+
"cordova-plugin-file": "8.0.0"
|
|
26
|
+
},
|
|
27
|
+
"cordova": {
|
|
28
|
+
"plugins": {
|
|
29
|
+
"@regulaforensics/face-sdk": {},
|
|
30
|
+
"@regulaforensics/cordova-plugin-face-core-basic": {},
|
|
31
|
+
"cordova-plugin-camera": {},
|
|
32
|
+
"cordova-plugin-dialogs": {},
|
|
33
|
+
"cordova-plugin-file": {}
|
|
34
|
+
},
|
|
35
|
+
"platforms": [
|
|
36
|
+
"android",
|
|
37
|
+
"ios"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
3
|
+
* or more contributor license agreements. See the NOTICE file
|
|
4
|
+
* distributed with this work for additional information
|
|
5
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
6
|
+
* to you under the Apache License, Version 2.0 (the
|
|
7
|
+
* "License"); you may not use this file except in compliance
|
|
8
|
+
* with the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing,
|
|
13
|
+
* software distributed under the License is distributed on an
|
|
14
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
15
|
+
* KIND, either express or implied. See the License for the
|
|
16
|
+
* specific language governing permissions and limitations
|
|
17
|
+
* under the License.
|
|
18
|
+
*/
|
|
19
|
+
* {
|
|
20
|
+
-webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
body {
|
|
24
|
+
-webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
|
|
25
|
+
-webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
|
|
26
|
+
-webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
|
|
27
|
+
background-color:#E4E4E4;
|
|
28
|
+
background-image:linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
|
|
29
|
+
font-family: system-ui, -apple-system, -apple-system-font, 'Segoe UI', 'Roboto', sans-serif;
|
|
30
|
+
font-size:12px;
|
|
31
|
+
height:100vh;
|
|
32
|
+
margin:0px;
|
|
33
|
+
padding:0px;
|
|
34
|
+
/* Padding to avoid the "unsafe" areas behind notches in the screen */
|
|
35
|
+
padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-right, 0px);
|
|
36
|
+
text-transform:uppercase;
|
|
37
|
+
width:100%;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Portrait layout (default) */
|
|
41
|
+
.app {
|
|
42
|
+
background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */
|
|
43
|
+
position:absolute; /* position in the center of the screen */
|
|
44
|
+
left:50%;
|
|
45
|
+
top:50%;
|
|
46
|
+
height:50px; /* text area height */
|
|
47
|
+
width:225px; /* text area width */
|
|
48
|
+
text-align:center;
|
|
49
|
+
padding:180px 0px 0px 0px; /* image height is 200px (bottom 20px are overlapped with text) */
|
|
50
|
+
margin:-115px 0px 0px -112px; /* offset vertical: half of image height and text area height */
|
|
51
|
+
/* offset horizontal: half of text area width */
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Landscape layout (with min-width) */
|
|
55
|
+
@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) {
|
|
56
|
+
.app {
|
|
57
|
+
background-position:left center;
|
|
58
|
+
padding:75px 0px 75px 170px; /* padding-top + padding-bottom + text area = image height */
|
|
59
|
+
margin:-90px 0px 0px -198px; /* offset vertical: half of image height */
|
|
60
|
+
/* offset horizontal: half of image width and text area width */
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
h1 {
|
|
65
|
+
font-size:24px;
|
|
66
|
+
font-weight:normal;
|
|
67
|
+
margin:0px;
|
|
68
|
+
overflow:visible;
|
|
69
|
+
padding:0px;
|
|
70
|
+
text-align:center;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.event {
|
|
74
|
+
border-radius:4px;
|
|
75
|
+
-webkit-border-radius:4px;
|
|
76
|
+
color:#FFFFFF;
|
|
77
|
+
font-size:12px;
|
|
78
|
+
margin:0px 30px;
|
|
79
|
+
padding:2px 0px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.event.listening {
|
|
83
|
+
background-color:#333333;
|
|
84
|
+
display:block;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.event.received {
|
|
88
|
+
background-color:#4B946A;
|
|
89
|
+
display:none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@keyframes fade {
|
|
93
|
+
from { opacity: 1.0; }
|
|
94
|
+
50% { opacity: 0.4; }
|
|
95
|
+
to { opacity: 1.0; }
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@-webkit-keyframes fade {
|
|
99
|
+
from { opacity: 1.0; }
|
|
100
|
+
50% { opacity: 0.4; }
|
|
101
|
+
to { opacity: 1.0; }
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.blink {
|
|
105
|
+
animation:fade 3000ms infinite;
|
|
106
|
+
-webkit-animation:fade 3000ms infinite;
|
|
107
|
+
}
|
|
Binary file
|
|
Binary file
|