@regulaforensics/face-sdk 7.1.253-beta → 7.1.265-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.
Files changed (71) hide show
  1. package/README.md +1 -1
  2. package/RNFaceSDK.podspec +1 -1
  3. package/android/build.gradle +1 -1
  4. package/android/cordova.gradle +1 -1
  5. package/examples/capacitor/package.json +1 -1
  6. package/examples/capacitor/src/main.css +9 -3
  7. package/examples/capacitor/src/main.html +15 -12
  8. package/examples/cordova/package.json +1 -1
  9. package/examples/cordova/www/src/main.css +9 -3
  10. package/examples/cordova/www/src/main.html +15 -12
  11. package/examples/ionic/package.json +1 -1
  12. package/examples/ionic/src/main.css +9 -3
  13. package/examples/ionic/src/main.html +15 -12
  14. package/examples/{react-native → react_native}/README.md +2 -2
  15. package/examples/react_native/app.json +73 -0
  16. package/examples/react_native/images/icon/adaptive-icon.png +0 -0
  17. package/examples/react_native/images/icon/icon.png +0 -0
  18. package/examples/react_native/index.tsx +52 -0
  19. package/examples/react_native/metro.config.js +7 -0
  20. package/examples/react_native/package.json +26 -0
  21. package/examples/{react-native → react_native}/scripts/android.sh +2 -3
  22. package/examples/{react-native → react_native}/scripts/ios.sh +3 -4
  23. package/examples/react_native/scripts/setup.sh +5 -0
  24. package/examples/{react-native → react_native}/src/main.css +9 -3
  25. package/examples/react_native/src/main.html +25 -0
  26. package/examples/{react-native → react_native}/src/main.tsx +2 -2
  27. package/examples/react_native/tsconfig.json +4 -0
  28. package/package.json +1 -1
  29. package/plugin.xml +1 -1
  30. package/examples/react-native/.vscode/launch.json +0 -26
  31. package/examples/react-native/Gemfile +0 -16
  32. package/examples/react-native/android/app/build.gradle +0 -55
  33. package/examples/react-native/android/app/debug.keystore +0 -0
  34. package/examples/react-native/android/app/src/main/AndroidManifest.xml +0 -27
  35. package/examples/react-native/android/app/src/main/java/com/regula/documentreader/MainActivity.kt +0 -22
  36. package/examples/react-native/android/app/src/main/java/com/regula/documentreader/MainApplication.kt +0 -44
  37. package/examples/react-native/android/app/src/main/res/drawable/ic_launcher.png +0 -0
  38. package/examples/react-native/android/app/src/main/res/drawable/ic_launcher_round.png +0 -0
  39. package/examples/react-native/android/build.gradle +0 -21
  40. package/examples/react-native/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  41. package/examples/react-native/android/gradle/wrapper/gradle-wrapper.properties +0 -7
  42. package/examples/react-native/android/gradle.properties +0 -5
  43. package/examples/react-native/android/gradlew +0 -251
  44. package/examples/react-native/android/gradlew.bat +0 -92
  45. package/examples/react-native/android/settings.gradle +0 -6
  46. package/examples/react-native/index.tsx +0 -51
  47. package/examples/react-native/ios/.xcode.env +0 -11
  48. package/examples/react-native/ios/App/AppDelegate.h +0 -6
  49. package/examples/react-native/ios/App/AppDelegate.mm +0 -31
  50. package/examples/react-native/ios/App/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
  51. package/examples/react-native/ios/App/Images.xcassets/Contents.json +0 -6
  52. package/examples/react-native/ios/App/Info.plist +0 -51
  53. package/examples/react-native/ios/App/LaunchScreen.storyboard +0 -47
  54. package/examples/react-native/ios/App/PrivacyInfo.xcprivacy +0 -38
  55. package/examples/react-native/ios/App/main.m +0 -10
  56. package/examples/react-native/ios/App.xcodeproj/project.pbxproj +0 -502
  57. package/examples/react-native/ios/App.xcodeproj/xcshareddata/xcschemes/App.xcscheme +0 -70
  58. package/examples/react-native/ios/App.xcworkspace/contents.xcworkspacedata +0 -10
  59. package/examples/react-native/ios/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  60. package/examples/react-native/ios/Podfile +0 -37
  61. package/examples/react-native/ios/Podfile.lock +0 -1891
  62. package/examples/react-native/ios/license/.gitkeep +0 -0
  63. package/examples/react-native/metro.config.js +0 -20
  64. package/examples/react-native/package-lock.json +0 -8181
  65. package/examples/react-native/package.json +0 -22
  66. package/examples/react-native/patches/react-native-webview+13.13.5.patch +0 -36
  67. package/examples/react-native/scripts/setup.sh +0 -8
  68. package/examples/react-native/src/main.html +0 -22
  69. /package/examples/{react-native/android/app/src/main → react_native}/assets/.gitkeep +0 -0
  70. /package/examples/{react-native → react_native}/images/portrait.png +0 -0
  71. /package/examples/{react-native → react_native}/index.html +0 -0
package/README.md CHANGED
@@ -4,7 +4,7 @@ This plugin makes possible to use it with react-native, cordova and ionic applic
4
4
 
5
5
  ## Demo applications
6
6
  In the [examples](examples/) folder you can find 4 demo applications:
7
- * [React-native](examples/react-native)
7
+ * [React-native](examples/react_native)
8
8
  * [Cordova](examples/cordova)
9
9
  * [Ionic(ionic app with cordova, angular)](examples/ionic)
10
10
  * [Capacitor(ionic app with capacitor, react)](examples/capacitor)
package/RNFaceSDK.podspec CHANGED
@@ -5,7 +5,7 @@ source = File.join(__dir__, 'ios')
5
5
 
6
6
  Pod::Spec.new do |s|
7
7
  s.name = 'RNFaceSDK'
8
- s.version = '7.1.253-beta'
8
+ s.version = '7.1.265-beta'
9
9
  s.summary = package['description']
10
10
  s.license = package['license']
11
11
 
@@ -41,7 +41,7 @@ dependencies {
41
41
  //noinspection GradleDynamicVersion
42
42
  implementation 'com.facebook.react:react-native:+'
43
43
  //noinspection GradleDependency
44
- implementation('com.regula.face:api:6.4.3709'){
44
+ implementation('com.regula.face:api:7.1.3725'){
45
45
  transitive = true
46
46
  }
47
47
  }
@@ -12,7 +12,7 @@ repositories {
12
12
 
13
13
  dependencies {
14
14
  //noinspection GradleDependency
15
- implementation('com.regula.face:api:6.4.3709'){
15
+ implementation('com.regula.face:api:7.1.3725'){
16
16
  transitive = true
17
17
  }
18
18
  }
@@ -6,7 +6,7 @@
6
6
  "android": "scripts/android.sh"
7
7
  },
8
8
  "dependencies": {
9
- "@regulaforensics/face-sdk": "7.1.253-beta",
9
+ "@regulaforensics/face-sdk": "7.1.265-beta",
10
10
  "@regulaforensics/face-core-basic": "7.1.99-beta",
11
11
  "@awesome-cordova-plugins/file": "6.6.0",
12
12
  "@awesome-cordova-plugins/camera": "6.6.0",
@@ -32,14 +32,20 @@ body {
32
32
  padding-top: 80px;
33
33
  margin-top: -10px;
34
34
  background-color: rgba(0, 0, 0, 0.03);
35
- }
36
-
37
- .title {
38
35
  font-weight: 600;
39
36
  font-size: 18px;
40
37
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
41
38
  }
42
39
 
40
+ .sub-header {
41
+ background-color: rgba(0, 0, 0, 0.03);
42
+ width: 100%;
43
+ padding-top: 13px;
44
+ text-align: center;
45
+ font-weight: 550;
46
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
47
+ }
48
+
43
49
  .divider {
44
50
  height: 1px;
45
51
  background-color: rgba(0, 0, 0, 0.075);
@@ -1,22 +1,25 @@
1
1
  <div class="page">
2
2
  <div class="column header">
3
- <span id="status" class="title">Loading...</span>
3
+ <span id="status">Loading...</span>
4
4
  <div class="column divider"></div>
5
5
  </div>
6
- <div id="main" class="column no-scroll">
7
- <div class="column">
8
- <img id="first-image" src="images/portrait.png" width="150px" style="padding: 10px">
9
- <img id="second-image" src="images/portrait.png" width="150px" style="padding: 10px">
6
+ <div class="column sub-header">
7
+ <div class="row" style="width: 100%">
8
+ <div style="width: 185px">Similarity: <span id="similarity-status">null</span></div>
9
+ <div style="width: 185px">Liveness: <span id="liveness-status">null</span></div>
10
10
  </div>
11
- <div class="column" style="padding: 10px">
11
+ <div class="column divider"></div>
12
+ </div>
13
+ <div class="column no-scroll">
14
+ <div class="row" style="height: 100%">
15
+ <img id="first-image" src="images/portrait.png" width="175px" style="padding: 5px">
16
+ <img id="second-image" src="images/portrait.png" width="175px" style="padding: 5px">
17
+ </div>
18
+ <div class="row">
12
19
  <button id="match-faces" class="button">Match</button>
13
20
  <button id="start-liveness" class="button">Liveness</button>
14
- <button id="clear-results" class="button">Clear</button>
15
- </div>
16
- <div>
17
- Similarity: <span style="margin-right: 15px" id="similarity-status">null</span> Liveness: <span
18
- id="liveness-status">null</span>
19
21
  </div>
20
- <div style="padding-top: 100px;"></div>
22
+ <button id="clear-results" class="button" style="width: 360px">Clear</button>
23
+ <div style="padding-top: 30px"></div>
21
24
  </div>
22
25
  </div>
@@ -6,7 +6,7 @@
6
6
  "android": "scripts/android.sh"
7
7
  },
8
8
  "dependencies": {
9
- "@regulaforensics/face-sdk": "7.1.253-beta",
9
+ "@regulaforensics/face-sdk": "7.1.265-beta",
10
10
  "@regulaforensics/face-core-basic": "7.1.99-beta",
11
11
  "cordova-ios": "7.1.1",
12
12
  "cordova-android": "13.0.0",
@@ -32,14 +32,20 @@ body {
32
32
  padding-top: 80px;
33
33
  margin-top: -10px;
34
34
  background-color: rgba(0, 0, 0, 0.03);
35
- }
36
-
37
- .title {
38
35
  font-weight: 600;
39
36
  font-size: 18px;
40
37
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
41
38
  }
42
39
 
40
+ .sub-header {
41
+ background-color: rgba(0, 0, 0, 0.03);
42
+ width: 100%;
43
+ padding-top: 13px;
44
+ text-align: center;
45
+ font-weight: 550;
46
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
47
+ }
48
+
43
49
  .divider {
44
50
  height: 1px;
45
51
  background-color: rgba(0, 0, 0, 0.075);
@@ -1,22 +1,25 @@
1
1
  <div class="page">
2
2
  <div class="column header">
3
- <span id="status" class="title">Loading...</span>
3
+ <span id="status">Loading...</span>
4
4
  <div class="column divider"></div>
5
5
  </div>
6
- <div id="main" class="column no-scroll">
7
- <div class="column">
8
- <img id="first-image" src="images/portrait.png" width="150px" style="padding: 10px">
9
- <img id="second-image" src="images/portrait.png" width="150px" style="padding: 10px">
6
+ <div class="column sub-header">
7
+ <div class="row" style="width: 100%">
8
+ <div style="width: 185px">Similarity: <span id="similarity-status">null</span></div>
9
+ <div style="width: 185px">Liveness: <span id="liveness-status">null</span></div>
10
10
  </div>
11
- <div class="column" style="padding: 10px">
11
+ <div class="column divider"></div>
12
+ </div>
13
+ <div class="column no-scroll">
14
+ <div class="row" style="height: 100%">
15
+ <img id="first-image" src="images/portrait.png" width="175px" style="padding: 5px">
16
+ <img id="second-image" src="images/portrait.png" width="175px" style="padding: 5px">
17
+ </div>
18
+ <div class="row">
12
19
  <button id="match-faces" class="button">Match</button>
13
20
  <button id="start-liveness" class="button">Liveness</button>
14
- <button id="clear-results" class="button">Clear</button>
15
- </div>
16
- <div>
17
- Similarity: <span style="margin-right: 15px" id="similarity-status">null</span> Liveness: <span
18
- id="liveness-status">null</span>
19
21
  </div>
20
- <div style="padding-top: 100px;"></div>
22
+ <button id="clear-results" class="button" style="width: 360px">Clear</button>
23
+ <div style="padding-top: 30px"></div>
21
24
  </div>
22
25
  </div>
@@ -6,7 +6,7 @@
6
6
  "android": "scripts/android.sh"
7
7
  },
8
8
  "dependencies": {
9
- "@regulaforensics/face-sdk": "7.1.253-beta",
9
+ "@regulaforensics/face-sdk": "7.1.265-beta",
10
10
  "@regulaforensics/face-core-basic": "7.1.99-beta",
11
11
  "@awesome-cordova-plugins/file": "6.16.0",
12
12
  "@awesome-cordova-plugins/camera": "6.16.0",
@@ -32,14 +32,20 @@ body {
32
32
  padding-top: 80px;
33
33
  margin-top: -10px;
34
34
  background-color: rgba(0, 0, 0, 0.03);
35
- }
36
-
37
- .title {
38
35
  font-weight: 600;
39
36
  font-size: 18px;
40
37
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
41
38
  }
42
39
 
40
+ .sub-header {
41
+ background-color: rgba(0, 0, 0, 0.03);
42
+ width: 100%;
43
+ padding-top: 13px;
44
+ text-align: center;
45
+ font-weight: 550;
46
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
47
+ }
48
+
43
49
  .divider {
44
50
  height: 1px;
45
51
  background-color: rgba(0, 0, 0, 0.075);
@@ -1,22 +1,25 @@
1
1
  <div class="page">
2
2
  <div class="column header">
3
- <span id="status" class="title">Loading...</span>
3
+ <span id="status">Loading...</span>
4
4
  <div class="column divider"></div>
5
5
  </div>
6
- <div id="main" class="column no-scroll">
7
- <div class="column">
8
- <img id="first-image" src="images/portrait.png" width="150px" style="padding: 10px">
9
- <img id="second-image" src="images/portrait.png" width="150px" style="padding: 10px">
6
+ <div class="column sub-header">
7
+ <div class="row" style="width: 100%">
8
+ <div style="width: 185px">Similarity: <span id="similarity-status">null</span></div>
9
+ <div style="width: 185px">Liveness: <span id="liveness-status">null</span></div>
10
10
  </div>
11
- <div class="column" style="padding: 10px">
11
+ <div class="column divider"></div>
12
+ </div>
13
+ <div class="column no-scroll">
14
+ <div class="row" style="height: 100%">
15
+ <img id="first-image" src="images/portrait.png" width="175px" style="padding: 5px">
16
+ <img id="second-image" src="images/portrait.png" width="175px" style="padding: 5px">
17
+ </div>
18
+ <div class="row">
12
19
  <button id="match-faces" class="button">Match</button>
13
20
  <button id="start-liveness" class="button">Liveness</button>
14
- <button id="clear-results" class="button">Clear</button>
15
- </div>
16
- <div>
17
- Similarity: <span style="margin-right: 15px" id="similarity-status">null</span> Liveness: <span
18
- id="liveness-status">null</span>
19
21
  </div>
20
- <div style="padding-top: 100px;"></div>
22
+ <button id="clear-results" class="button" style="width: 360px">Clear</button>
23
+ <div style="padding-top: 30px"></div>
21
24
  </div>
22
25
  </div>
@@ -13,13 +13,13 @@
13
13
 
14
14
 
15
15
  ## How to use offline match
16
- 1. Place a license that supports offline match at `android/app/src/main/assets/regula.license` and `ios/license/regula.license`.
16
+ 1. Place a license that supports offline match at `assets/regula.license`.
17
17
 
18
18
  2. Change core with the following commands:
19
19
  ```bash
20
20
  npm uninstall @regulaforensics/face-core-basic
21
21
  npm install @regulaforensics/face-core-match
22
- (cd ios && RCT_NEW_ARCH_ENABLED=1 bundle exec pod install)
22
+ npm run setup
23
23
  ```
24
24
 
25
25
  3. Turn off the internet and run the app.
@@ -0,0 +1,73 @@
1
+ {
2
+ "expo": {
3
+ "name": "DocumentReader",
4
+ "orientation": "portrait",
5
+ "icon": "./images/icon/icon.png",
6
+ "ios": {
7
+ "bundleIdentifier": "regula.DocumentReader",
8
+ "infoPlist": {
9
+ "NSCameraUsageDescription": "To use camera",
10
+ "NSPhotoLibraryUsageDescription": "To use gallery",
11
+ "NFCReaderUsageDescription": "To use NFC",
12
+ "NSBluetoothAlwaysUsageDescription": "To use bluetooth",
13
+ "com.apple.developer.nfc.readersession.iso7816.select-identifiers": [
14
+ "A0000002471001",
15
+ "E80704007F00070302",
16
+ "A000000167455349474E",
17
+ "A0000002480100",
18
+ "A0000002480200",
19
+ "A0000002480300",
20
+ "A00000045645444C2D3031"
21
+ ]
22
+ },
23
+ "entitlements": {
24
+ "com.apple.developer.nfc.readersession.formats": [
25
+ "TAG"
26
+ ]
27
+ },
28
+ "appleTeamId": ""
29
+ },
30
+ "android": {
31
+ "package": "com.regula.dr.fullauthrfid",
32
+ "permissions": [
33
+ "android.permission.BLUETOOTH_CONNECT"
34
+ ],
35
+ "adaptiveIcon": {
36
+ "foregroundImage": "./images/icon/adaptive-icon.png",
37
+ "backgroundColor": "#ffffff"
38
+ },
39
+ "edgeToEdgeEnabled": true
40
+ },
41
+ "plugins": [
42
+ [
43
+ "expo-custom-assets",
44
+ {
45
+ "assetsPaths": [
46
+ "./assets"
47
+ ]
48
+ }
49
+ ],
50
+ [
51
+ "expo-build-properties",
52
+ {
53
+ "android": {
54
+ "extraMavenRepos": [
55
+ {
56
+ "url": "https://maven.regulaforensics.com/RegulaDocumentReader"
57
+ },
58
+ {
59
+ "url": "https://maven.regulaforensics.com/RegulaDocumentReader/Beta"
60
+ },
61
+ {
62
+ "url": "https://maven.regulaforensics.com/RegulaDocumentReader/Nightly"
63
+ },
64
+ {
65
+ "url": "https://maven.regulaforensics.com/RegulaDocumentReader/Stage"
66
+ }
67
+ ]
68
+ }
69
+ }
70
+ ]
71
+ ]
72
+ }
73
+ }
@@ -0,0 +1,52 @@
1
+ import { registerRootComponent } from 'expo'
2
+ import WebView from 'react-native-webview'
3
+ import { onload } from './src/main'
4
+
5
+ var webViewRef: any
6
+ const onclicks: any = {}
7
+ const onMessage = (json: any) => {
8
+ const event = JSON.parse(json.nativeEvent.data)
9
+ if (event.id === "ready") onload()
10
+ if (event.id === "onclick") {
11
+ onclicks[event.value]()
12
+ }
13
+ }
14
+
15
+ export const document = {
16
+ getElementById(id: string): any {
17
+ return new Proxy({}, {
18
+ set(_, prop: string, value) {
19
+ if (prop == "onclick") {
20
+ onclicks[id] = value
21
+ webViewRef.injectJavaScript(`
22
+ document.getElementById("${id}").onclick = () => {
23
+ window.ReactNativeWebView.postMessage(JSON.stringify({ id: "onclick", value: "${id}" }));
24
+ }; true
25
+ `)
26
+ } else
27
+ webViewRef.injectJavaScript(`document.getElementById("${id}").${prop} = "${value}"; true`)
28
+ return true
29
+ },
30
+ get(_, prop: string) {
31
+ if (prop === "style") return new Proxy({}, {
32
+ set(_, styleProp: string, value) {
33
+ webViewRef.injectJavaScript(`document.getElementById("${id}").style.${styleProp} = "${value}"; true`)
34
+ return true
35
+ }
36
+ })
37
+ return undefined
38
+ },
39
+ }
40
+ )
41
+ }
42
+ }
43
+
44
+ registerRootComponent(() =>
45
+ <WebView
46
+ ref={ref => { webViewRef = ref }}
47
+ onMessage={onMessage}
48
+ source={require("./index.html")}
49
+ scrollEnabled={false}
50
+ injectedJavaScript="document.body.addEventListener('touchmove', function(e) { e.preventDefault() }, { passive: false })"
51
+ />
52
+ )
@@ -0,0 +1,7 @@
1
+ const config = require('expo/metro-config').getDefaultConfig(__dirname)
2
+ config.watchFolders = [
3
+ __dirname + '/node_modules'
4
+ ]
5
+ config.resolver.nodeModulesPaths = config.watchFolders
6
+ config.resolver.assetExts.push('css')
7
+ module.exports = config
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "face-sdk",
3
+ "main": "./index.tsx",
4
+ "scripts": {
5
+ "setup": "scripts/setup.sh",
6
+ "ios": "scripts/ios.sh",
7
+ "android": "scripts/android.sh",
8
+ "start": "expo start"
9
+ },
10
+ "dependencies": {
11
+ "@regulaforensics/face-sdk": "7.1.265-beta",
12
+ "@regulaforensics/face-core-basic": "7.1.99-beta",
13
+ "react-native": "0.79.2",
14
+ "react-native-fs": "2.20.0",
15
+ "react-native-image-picker": "8.2.1",
16
+ "react-native-webview": "13.13.5",
17
+ "@react-native/metro-config": "0.79.2",
18
+ "react": "19.1.0",
19
+ "@types/react": "19.1.4",
20
+ "expo": "53.0.9",
21
+ "expo-dev-client": "5.1.8",
22
+ "expo-custom-assets": "1.4.1",
23
+ "expo-build-properties": "0.14.6",
24
+ "typescript": "5.8.3"
25
+ }
26
+ }
@@ -1,13 +1,12 @@
1
1
  #!/usr/bin/env bash
2
- set -e
3
2
 
4
3
  adb reverse tcp:8081 tcp:8081 >/dev/null || :
5
4
  if [[ $npm_config_o || $npm_config_open ]]; then
6
5
  studio android || open -a 'Android Studio' android
7
6
  # check if metro is already running
8
- if ! pgrep -f "react-native start" >/dev/null; then
7
+ if ! pgrep -f "expo start" >/dev/null; then
9
8
  npm start
10
9
  fi
11
10
  else
12
- react-native run-android
11
+ expo run:android --device
13
12
  fi
@@ -1,12 +1,11 @@
1
1
  #!/usr/bin/env bash
2
- set -e
3
2
 
4
3
  if [[ $npm_config_o || $npm_config_open ]]; then
5
- open ios/App.xcworkspace
4
+ open ios/FaceSDK.xcworkspace
6
5
  # check if metro is already running
7
- if ! pgrep -f "react-native start" > /dev/null; then
6
+ if ! pgrep -f "expo start" > /dev/null; then
8
7
  npm start
9
8
  fi
10
9
  else
11
- react-native run-ios
10
+ npx expo run:ios --device
12
11
  fi
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ npm install
5
+ expo prebuild
@@ -32,14 +32,20 @@ body {
32
32
  padding-top: 80px;
33
33
  margin-top: -10px;
34
34
  background-color: rgba(0, 0, 0, 0.03);
35
- }
36
-
37
- .title {
38
35
  font-weight: 600;
39
36
  font-size: 18px;
40
37
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
41
38
  }
42
39
 
40
+ .sub-header {
41
+ background-color: rgba(0, 0, 0, 0.03);
42
+ width: 100%;
43
+ padding-top: 13px;
44
+ text-align: center;
45
+ font-weight: 550;
46
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
47
+ }
48
+
43
49
  .divider {
44
50
  height: 1px;
45
51
  background-color: rgba(0, 0, 0, 0.075);
@@ -0,0 +1,25 @@
1
+ <div class="page">
2
+ <div class="column header">
3
+ <span id="status">Loading...</span>
4
+ <div class="column divider"></div>
5
+ </div>
6
+ <div class="column sub-header">
7
+ <div class="row" style="width: 100%">
8
+ <div style="width: 185px">Similarity: <span id="similarity-status">null</span></div>
9
+ <div style="width: 185px">Liveness: <span id="liveness-status">null</span></div>
10
+ </div>
11
+ <div class="column divider"></div>
12
+ </div>
13
+ <div class="column no-scroll">
14
+ <div class="row" style="height: 100%">
15
+ <img id="first-image" src="images/portrait.png" width="175px" style="padding: 5px">
16
+ <img id="second-image" src="images/portrait.png" width="175px" style="padding: 5px">
17
+ </div>
18
+ <div class="row">
19
+ <button id="match-faces" class="button">Match</button>
20
+ <button id="start-liveness" class="button">Liveness</button>
21
+ </div>
22
+ <button id="clear-results" class="button" style="width: 360px">Clear</button>
23
+ <div style="padding-top: 30px"></div>
24
+ </div>
25
+ </div>
@@ -105,8 +105,8 @@ function pickImage(position: number) {
105
105
  }
106
106
 
107
107
  async function loadAssetIfExists(path: string): Promise<string | null> {
108
- if (Platform.OS === 'ios') path = RNFS.MainBundlePath + "/license/" + path
109
- var readFile = Platform.OS === 'ios' ? RNFS.readFile : RNFS.readFileAssets
108
+ if (Platform.OS === 'ios') path = RNFS.MainBundlePath + "/" + path
109
+ var readFile = Platform.OS === 'ios' ? RNFS.readFile : RNFS.readFileRes
110
110
  try {
111
111
  return await readFile(path, 'base64')
112
112
  } catch {
@@ -0,0 +1,4 @@
1
+ {
2
+ "compilerOptions": {},
3
+ "extends": "expo/tsconfig.base"
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/face-sdk",
3
- "version": "7.1.253-beta",
3
+ "version": "7.1.265-beta",
4
4
  "description": "This is an npm module for Regula Face SDK. It allows you to easily compaire faces using your phone's camera.",
5
5
  "main": "www/react-native/index.js",
6
6
  "module": "www/capacitor/index.js",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
- <plugin id="@regulaforensics/face-sdk" version="7.1.253-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/face-sdk" version="7.1.265-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
3
3
  <name>FaceSDK</name>
4
4
  <description>Cordova plugin for Regula Face SDK</description>
5
5
  <license>commercial</license>
@@ -1,26 +0,0 @@
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": "Run iOS",
9
- "cwd": "${workspaceFolder}",
10
- "type": "reactnativedirect",
11
- "request": "launch",
12
- "platform": "ios",
13
- "enableDebug": false,
14
- "useHermesEngine": false,
15
- "target": "device"
16
- },
17
- {
18
- "name": "Run Android",
19
- "cwd": "${workspaceFolder}",
20
- "type": "reactnative",
21
- "request": "launch",
22
- "platform": "android",
23
- "enableDebug": false
24
- },
25
- ]
26
- }
@@ -1,16 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4
- ruby ">= 2.6.10"
5
-
6
- # Exclude problematic versions of cocoapods and activesupport that causes build failures.
7
- gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
8
- gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
9
- gem 'xcodeproj', '< 1.26.0'
10
- gem 'concurrent-ruby', '< 1.3.4'
11
-
12
- # Ruby 3.4.0 has removed some libraries from the standard library.
13
- gem 'bigdecimal'
14
- gem 'logger'
15
- gem 'benchmark'
16
- gem 'mutex_m'