@regulaforensics/face-sdk 7.1.271-rc → 7.1.274-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/RNFaceSDK.podspec +2 -2
- package/android/build.gradle +1 -1
- package/android/cordova.gradle +1 -1
- package/examples/capacitor/package.json +2 -2
- package/examples/capacitor/src/main.css +3 -9
- package/examples/capacitor/src/main.html +12 -15
- package/examples/cordova/package.json +2 -2
- package/examples/cordova/www/src/main.css +3 -9
- package/examples/cordova/www/src/main.html +12 -15
- package/examples/ionic/package.json +2 -2
- package/examples/ionic/src/main.css +3 -9
- package/examples/ionic/src/main.html +12 -15
- package/examples/react-native/.vscode/launch.json +26 -0
- package/examples/react-native/Gemfile +16 -0
- package/examples/react-native/Gemfile.lock +144 -0
- package/examples/{react_native → react-native}/README.md +2 -2
- package/examples/react-native/android/app/build.gradle +55 -0
- package/examples/react-native/android/app/debug.keystore +0 -0
- package/examples/react-native/android/app/src/main/AndroidManifest.xml +27 -0
- package/examples/react-native/android/app/src/main/java/com/regula/documentreader/MainActivity.kt +22 -0
- package/examples/react-native/android/app/src/main/java/com/regula/documentreader/MainApplication.kt +44 -0
- package/examples/react-native/android/app/src/main/res/drawable/ic_launcher.png +0 -0
- package/examples/react-native/android/app/src/main/res/drawable/ic_launcher_round.png +0 -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 +5 -0
- package/examples/react-native/android/gradlew +251 -0
- package/examples/react-native/android/gradlew.bat +92 -0
- package/examples/react-native/android/settings.gradle +6 -0
- package/examples/react-native/index.tsx +51 -0
- package/examples/react-native/ios/.xcode.env +11 -0
- package/examples/react-native/ios/App/AppDelegate.h +6 -0
- package/examples/react-native/ios/App/AppDelegate.mm +31 -0
- package/examples/react-native/ios/App/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
- package/examples/react-native/ios/App/Images.xcassets/Contents.json +6 -0
- package/examples/react-native/ios/App/Info.plist +51 -0
- package/examples/react-native/ios/App/LaunchScreen.storyboard +47 -0
- package/examples/react-native/ios/App/PrivacyInfo.xcprivacy +38 -0
- package/examples/react-native/ios/App/main.m +10 -0
- package/examples/react-native/ios/App.xcodeproj/project.pbxproj +502 -0
- package/examples/react-native/ios/App.xcodeproj/xcshareddata/xcschemes/App.xcscheme +70 -0
- package/examples/react-native/ios/App.xcworkspace/contents.xcworkspacedata +10 -0
- package/examples/react-native/ios/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/examples/react-native/ios/Podfile +37 -0
- package/examples/react-native/ios/Podfile.lock +1891 -0
- package/examples/react-native/ios/license/.gitkeep +0 -0
- package/examples/react-native/metro.config.js +20 -0
- package/examples/{react_native → react-native}/package-lock.json +2813 -3928
- package/examples/react-native/package.json +22 -0
- package/examples/react-native/patches/react-native-webview+13.13.5.patch +36 -0
- package/examples/{react_native → react-native}/scripts/android.sh +3 -2
- package/examples/{react_native → react-native}/scripts/ios.sh +4 -3
- package/examples/react-native/scripts/setup.sh +8 -0
- package/examples/{react_native → react-native}/src/main.css +3 -9
- package/examples/react-native/src/main.html +22 -0
- package/examples/{react_native → react-native}/src/main.tsx +2 -2
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/examples/react_native/app.config.ts +0 -38
- package/examples/react_native/images/icon/adaptive-icon.png +0 -0
- package/examples/react_native/images/icon/icon.png +0 -0
- package/examples/react_native/index.tsx +0 -52
- package/examples/react_native/metro.config.js +0 -7
- package/examples/react_native/package.json +0 -26
- package/examples/react_native/scripts/setup.sh +0 -10
- package/examples/react_native/src/main.html +0 -25
- /package/examples/{react_native → react-native/android/app/src/main}/assets/.gitkeep +0 -0
- /package/examples/{react_native → react-native}/images/portrait.png +0 -0
- /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/
|
|
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.
|
|
8
|
+
s.version = '7.1.274-rc'
|
|
9
9
|
s.summary = package['description']
|
|
10
10
|
s.license = package['license']
|
|
11
11
|
|
|
@@ -16,6 +16,6 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
s.ios.deployment_target = '13.0'
|
|
17
17
|
s.source_files = 'ios/**/*.{h,m}'
|
|
18
18
|
s.exclude_files = [ 'ios/CVDFaceSDK.h', 'ios/CVDFaceSDK.m' ]
|
|
19
|
-
s.dependency 'FaceSDKStage', '7.1.
|
|
19
|
+
s.dependency 'FaceSDKStage', '7.1.2634'
|
|
20
20
|
s.dependency 'React'
|
|
21
21
|
end
|
package/android/build.gradle
CHANGED
|
@@ -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:7.1.
|
|
44
|
+
implementation('com.regula.face:api:7.1.3729'){
|
|
45
45
|
transitive = true
|
|
46
46
|
}
|
|
47
47
|
}
|
package/android/cordova.gradle
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/face-sdk": "7.1.
|
|
10
|
-
"@regulaforensics/face-core-basic": "7.1.
|
|
9
|
+
"@regulaforensics/face-sdk": "7.1.274-rc",
|
|
10
|
+
"@regulaforensics/face-core-basic": "7.1.137-rc",
|
|
11
11
|
"@awesome-cordova-plugins/file": "6.6.0",
|
|
12
12
|
"@awesome-cordova-plugins/camera": "6.6.0",
|
|
13
13
|
"cordova-plugin-file": "8.1.3",
|
|
@@ -32,17 +32,11 @@ body {
|
|
|
32
32
|
padding-top: 80px;
|
|
33
33
|
margin-top: -10px;
|
|
34
34
|
background-color: rgba(0, 0, 0, 0.03);
|
|
35
|
-
font-weight: 600;
|
|
36
|
-
font-size: 18px;
|
|
37
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
38
35
|
}
|
|
39
36
|
|
|
40
|
-
.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
padding-top: 13px;
|
|
44
|
-
text-align: center;
|
|
45
|
-
font-weight: 550;
|
|
37
|
+
.title {
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
font-size: 18px;
|
|
46
40
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
47
41
|
}
|
|
48
42
|
|
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
<div class="page">
|
|
2
2
|
<div class="column header">
|
|
3
|
-
<span id="status">Loading...</span>
|
|
3
|
+
<span id="status" class="title">Loading...</span>
|
|
4
4
|
<div class="column divider"></div>
|
|
5
5
|
</div>
|
|
6
|
-
<div class="column
|
|
7
|
-
<div class="
|
|
8
|
-
<
|
|
9
|
-
<
|
|
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">
|
|
10
10
|
</div>
|
|
11
|
-
<div class="column
|
|
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">
|
|
11
|
+
<div class="column" style="padding: 10px">
|
|
19
12
|
<button id="match-faces" class="button">Match</button>
|
|
20
13
|
<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>
|
|
21
19
|
</div>
|
|
22
|
-
<
|
|
23
|
-
<div style="padding-top: 30px"></div>
|
|
20
|
+
<div style="padding-top: 100px;"></div>
|
|
24
21
|
</div>
|
|
25
22
|
</div>
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/face-sdk": "7.1.
|
|
10
|
-
"@regulaforensics/face-core-basic": "7.1.
|
|
9
|
+
"@regulaforensics/face-sdk": "7.1.274-rc",
|
|
10
|
+
"@regulaforensics/face-core-basic": "7.1.137-rc",
|
|
11
11
|
"cordova-ios": "7.1.1",
|
|
12
12
|
"cordova-android": "13.0.0",
|
|
13
13
|
"cordova-plugin-file": "8.1.3",
|
|
@@ -32,17 +32,11 @@ body {
|
|
|
32
32
|
padding-top: 80px;
|
|
33
33
|
margin-top: -10px;
|
|
34
34
|
background-color: rgba(0, 0, 0, 0.03);
|
|
35
|
-
font-weight: 600;
|
|
36
|
-
font-size: 18px;
|
|
37
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
38
35
|
}
|
|
39
36
|
|
|
40
|
-
.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
padding-top: 13px;
|
|
44
|
-
text-align: center;
|
|
45
|
-
font-weight: 550;
|
|
37
|
+
.title {
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
font-size: 18px;
|
|
46
40
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
47
41
|
}
|
|
48
42
|
|
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
<div class="page">
|
|
2
2
|
<div class="column header">
|
|
3
|
-
<span id="status">Loading...</span>
|
|
3
|
+
<span id="status" class="title">Loading...</span>
|
|
4
4
|
<div class="column divider"></div>
|
|
5
5
|
</div>
|
|
6
|
-
<div class="column
|
|
7
|
-
<div class="
|
|
8
|
-
<
|
|
9
|
-
<
|
|
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">
|
|
10
10
|
</div>
|
|
11
|
-
<div class="column
|
|
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">
|
|
11
|
+
<div class="column" style="padding: 10px">
|
|
19
12
|
<button id="match-faces" class="button">Match</button>
|
|
20
13
|
<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>
|
|
21
19
|
</div>
|
|
22
|
-
<
|
|
23
|
-
<div style="padding-top: 30px"></div>
|
|
20
|
+
<div style="padding-top: 100px;"></div>
|
|
24
21
|
</div>
|
|
25
22
|
</div>
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/face-sdk": "7.1.
|
|
10
|
-
"@regulaforensics/face-core-basic": "7.1.
|
|
9
|
+
"@regulaforensics/face-sdk": "7.1.274-rc",
|
|
10
|
+
"@regulaforensics/face-core-basic": "7.1.137-rc",
|
|
11
11
|
"@awesome-cordova-plugins/file": "6.16.0",
|
|
12
12
|
"@awesome-cordova-plugins/camera": "6.16.0",
|
|
13
13
|
"@awesome-cordova-plugins/dialogs": "6.16.0",
|
|
@@ -32,17 +32,11 @@ body {
|
|
|
32
32
|
padding-top: 80px;
|
|
33
33
|
margin-top: -10px;
|
|
34
34
|
background-color: rgba(0, 0, 0, 0.03);
|
|
35
|
-
font-weight: 600;
|
|
36
|
-
font-size: 18px;
|
|
37
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
38
35
|
}
|
|
39
36
|
|
|
40
|
-
.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
padding-top: 13px;
|
|
44
|
-
text-align: center;
|
|
45
|
-
font-weight: 550;
|
|
37
|
+
.title {
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
font-size: 18px;
|
|
46
40
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
47
41
|
}
|
|
48
42
|
|
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
<div class="page">
|
|
2
2
|
<div class="column header">
|
|
3
|
-
<span id="status">Loading...</span>
|
|
3
|
+
<span id="status" class="title">Loading...</span>
|
|
4
4
|
<div class="column divider"></div>
|
|
5
5
|
</div>
|
|
6
|
-
<div class="column
|
|
7
|
-
<div class="
|
|
8
|
-
<
|
|
9
|
-
<
|
|
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">
|
|
10
10
|
</div>
|
|
11
|
-
<div class="column
|
|
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">
|
|
11
|
+
<div class="column" style="padding: 10px">
|
|
19
12
|
<button id="match-faces" class="button">Match</button>
|
|
20
13
|
<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>
|
|
21
19
|
</div>
|
|
22
|
-
<
|
|
23
|
-
<div style="padding-top: 30px"></div>
|
|
20
|
+
<div style="padding-top: 100px;"></div>
|
|
24
21
|
</div>
|
|
25
22
|
</div>
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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'
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
GEM
|
|
2
|
+
remote: https://rubygems.org/
|
|
3
|
+
specs:
|
|
4
|
+
CFPropertyList (3.0.7)
|
|
5
|
+
base64
|
|
6
|
+
nkf
|
|
7
|
+
rexml
|
|
8
|
+
activesupport (7.2.2.1)
|
|
9
|
+
base64
|
|
10
|
+
benchmark (>= 0.3)
|
|
11
|
+
bigdecimal
|
|
12
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
13
|
+
connection_pool (>= 2.2.5)
|
|
14
|
+
drb
|
|
15
|
+
i18n (>= 1.6, < 2)
|
|
16
|
+
logger (>= 1.4.2)
|
|
17
|
+
minitest (>= 5.1)
|
|
18
|
+
securerandom (>= 0.3)
|
|
19
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
20
|
+
addressable (2.8.7)
|
|
21
|
+
public_suffix (>= 2.0.2, < 7.0)
|
|
22
|
+
algoliasearch (1.27.5)
|
|
23
|
+
httpclient (~> 2.8, >= 2.8.3)
|
|
24
|
+
json (>= 1.5.1)
|
|
25
|
+
atomos (0.1.3)
|
|
26
|
+
base64 (0.2.0)
|
|
27
|
+
benchmark (0.4.0)
|
|
28
|
+
bigdecimal (3.1.9)
|
|
29
|
+
claide (1.1.0)
|
|
30
|
+
cocoapods (1.15.2)
|
|
31
|
+
addressable (~> 2.8)
|
|
32
|
+
claide (>= 1.0.2, < 2.0)
|
|
33
|
+
cocoapods-core (= 1.15.2)
|
|
34
|
+
cocoapods-deintegrate (>= 1.0.3, < 2.0)
|
|
35
|
+
cocoapods-downloader (>= 2.1, < 3.0)
|
|
36
|
+
cocoapods-plugins (>= 1.0.0, < 2.0)
|
|
37
|
+
cocoapods-search (>= 1.0.0, < 2.0)
|
|
38
|
+
cocoapods-trunk (>= 1.6.0, < 2.0)
|
|
39
|
+
cocoapods-try (>= 1.1.0, < 2.0)
|
|
40
|
+
colored2 (~> 3.1)
|
|
41
|
+
escape (~> 0.0.4)
|
|
42
|
+
fourflusher (>= 2.3.0, < 3.0)
|
|
43
|
+
gh_inspector (~> 1.0)
|
|
44
|
+
molinillo (~> 0.8.0)
|
|
45
|
+
nap (~> 1.0)
|
|
46
|
+
ruby-macho (>= 2.3.0, < 3.0)
|
|
47
|
+
xcodeproj (>= 1.23.0, < 2.0)
|
|
48
|
+
cocoapods-core (1.15.2)
|
|
49
|
+
activesupport (>= 5.0, < 8)
|
|
50
|
+
addressable (~> 2.8)
|
|
51
|
+
algoliasearch (~> 1.0)
|
|
52
|
+
concurrent-ruby (~> 1.1)
|
|
53
|
+
fuzzy_match (~> 2.0.4)
|
|
54
|
+
nap (~> 1.0)
|
|
55
|
+
netrc (~> 0.11)
|
|
56
|
+
public_suffix (~> 4.0)
|
|
57
|
+
typhoeus (~> 1.0)
|
|
58
|
+
cocoapods-deintegrate (1.0.5)
|
|
59
|
+
cocoapods-downloader (2.1)
|
|
60
|
+
cocoapods-plugins (1.0.0)
|
|
61
|
+
nap
|
|
62
|
+
cocoapods-search (1.0.1)
|
|
63
|
+
cocoapods-trunk (1.6.0)
|
|
64
|
+
nap (>= 0.8, < 2.0)
|
|
65
|
+
netrc (~> 0.11)
|
|
66
|
+
cocoapods-try (1.2.0)
|
|
67
|
+
colored2 (3.1.2)
|
|
68
|
+
concurrent-ruby (1.3.3)
|
|
69
|
+
connection_pool (2.5.3)
|
|
70
|
+
drb (2.2.1)
|
|
71
|
+
escape (0.0.4)
|
|
72
|
+
ethon (0.16.0)
|
|
73
|
+
ffi (>= 1.15.0)
|
|
74
|
+
ffi (1.17.2)
|
|
75
|
+
ffi (1.17.2-aarch64-linux-gnu)
|
|
76
|
+
ffi (1.17.2-aarch64-linux-musl)
|
|
77
|
+
ffi (1.17.2-arm-linux-gnu)
|
|
78
|
+
ffi (1.17.2-arm-linux-musl)
|
|
79
|
+
ffi (1.17.2-arm64-darwin)
|
|
80
|
+
ffi (1.17.2-x86-linux-gnu)
|
|
81
|
+
ffi (1.17.2-x86-linux-musl)
|
|
82
|
+
ffi (1.17.2-x86_64-darwin)
|
|
83
|
+
ffi (1.17.2-x86_64-linux-gnu)
|
|
84
|
+
ffi (1.17.2-x86_64-linux-musl)
|
|
85
|
+
fourflusher (2.3.1)
|
|
86
|
+
fuzzy_match (2.0.4)
|
|
87
|
+
gh_inspector (1.1.3)
|
|
88
|
+
httpclient (2.9.0)
|
|
89
|
+
mutex_m
|
|
90
|
+
i18n (1.14.7)
|
|
91
|
+
concurrent-ruby (~> 1.0)
|
|
92
|
+
json (2.11.3)
|
|
93
|
+
logger (1.7.0)
|
|
94
|
+
minitest (5.25.5)
|
|
95
|
+
molinillo (0.8.0)
|
|
96
|
+
mutex_m (0.3.0)
|
|
97
|
+
nanaimo (0.3.0)
|
|
98
|
+
nap (1.1.0)
|
|
99
|
+
netrc (0.11.0)
|
|
100
|
+
nkf (0.2.0)
|
|
101
|
+
public_suffix (4.0.7)
|
|
102
|
+
rexml (3.4.1)
|
|
103
|
+
ruby-macho (2.5.1)
|
|
104
|
+
securerandom (0.4.1)
|
|
105
|
+
typhoeus (1.4.1)
|
|
106
|
+
ethon (>= 0.9.0)
|
|
107
|
+
tzinfo (2.0.6)
|
|
108
|
+
concurrent-ruby (~> 1.0)
|
|
109
|
+
xcodeproj (1.25.1)
|
|
110
|
+
CFPropertyList (>= 2.3.3, < 4.0)
|
|
111
|
+
atomos (~> 0.1.3)
|
|
112
|
+
claide (>= 1.0.2, < 2.0)
|
|
113
|
+
colored2 (~> 3.1)
|
|
114
|
+
nanaimo (~> 0.3.0)
|
|
115
|
+
rexml (>= 3.3.6, < 4.0)
|
|
116
|
+
|
|
117
|
+
PLATFORMS
|
|
118
|
+
aarch64-linux-gnu
|
|
119
|
+
aarch64-linux-musl
|
|
120
|
+
arm-linux-gnu
|
|
121
|
+
arm-linux-musl
|
|
122
|
+
arm64-darwin
|
|
123
|
+
ruby
|
|
124
|
+
x86-linux-gnu
|
|
125
|
+
x86-linux-musl
|
|
126
|
+
x86_64-darwin
|
|
127
|
+
x86_64-linux-gnu
|
|
128
|
+
x86_64-linux-musl
|
|
129
|
+
|
|
130
|
+
DEPENDENCIES
|
|
131
|
+
activesupport (>= 6.1.7.5, != 7.1.0)
|
|
132
|
+
benchmark
|
|
133
|
+
bigdecimal
|
|
134
|
+
cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
|
|
135
|
+
concurrent-ruby (< 1.3.4)
|
|
136
|
+
logger
|
|
137
|
+
mutex_m
|
|
138
|
+
xcodeproj (< 1.26.0)
|
|
139
|
+
|
|
140
|
+
RUBY VERSION
|
|
141
|
+
ruby 3.4.2p28
|
|
142
|
+
|
|
143
|
+
BUNDLED WITH
|
|
144
|
+
2.6.3
|
|
@@ -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 `assets/regula.license`.
|
|
16
|
+
1. Place a license that supports offline match at `android/app/src/main/assets/regula.license` and `ios/license/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
|
-
|
|
22
|
+
(cd ios && RCT_NEW_ARCH_ENABLED=1 bundle exec pod install)
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
3. Turn off the internet and run the app.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
apply plugin: "com.android.application"
|
|
2
|
+
apply plugin: "org.jetbrains.kotlin.android"
|
|
3
|
+
apply plugin: "com.facebook.react"
|
|
4
|
+
|
|
5
|
+
react {
|
|
6
|
+
autolinkLibrariesWithApp()
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
def enableProguardInReleaseBuilds = false
|
|
10
|
+
def jscFlavor = 'org.webkit:android-jsc:+'
|
|
11
|
+
|
|
12
|
+
android {
|
|
13
|
+
ndkVersion rootProject.ext.ndkVersion
|
|
14
|
+
buildToolsVersion rootProject.ext.buildToolsVersion
|
|
15
|
+
compileSdk rootProject.ext.compileSdkVersion
|
|
16
|
+
|
|
17
|
+
namespace "com.regula.documentreader.api.androidtest"
|
|
18
|
+
defaultConfig {
|
|
19
|
+
applicationId "com.regula.documentreader.api.androidtest"
|
|
20
|
+
minSdkVersion rootProject.ext.minSdkVersion
|
|
21
|
+
targetSdkVersion rootProject.ext.targetSdkVersion
|
|
22
|
+
versionCode 1
|
|
23
|
+
versionName "1.0"
|
|
24
|
+
}
|
|
25
|
+
signingConfigs {
|
|
26
|
+
debug {
|
|
27
|
+
storeFile file('debug.keystore')
|
|
28
|
+
storePassword 'android'
|
|
29
|
+
keyAlias 'androiddebugkey'
|
|
30
|
+
keyPassword 'android'
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
buildTypes {
|
|
34
|
+
debug {
|
|
35
|
+
signingConfig signingConfigs.debug
|
|
36
|
+
}
|
|
37
|
+
release {
|
|
38
|
+
signingConfig signingConfigs.debug
|
|
39
|
+
minifyEnabled enableProguardInReleaseBuilds
|
|
40
|
+
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
aaptOptions {
|
|
44
|
+
noCompress "Regula/faceSdkResource.dat"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
dependencies {
|
|
49
|
+
implementation("com.facebook.react:react-android")
|
|
50
|
+
if (hermesEnabled.toBoolean()) {
|
|
51
|
+
implementation("com.facebook.react:hermes-android")
|
|
52
|
+
} else {
|
|
53
|
+
implementation jscFlavor
|
|
54
|
+
}
|
|
55
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
2
|
+
|
|
3
|
+
<uses-permission android:name="android.permission.INTERNET" />
|
|
4
|
+
|
|
5
|
+
<application
|
|
6
|
+
android:name=".MainApplication"
|
|
7
|
+
android:allowBackup="false"
|
|
8
|
+
android:icon="@drawable/ic_launcher"
|
|
9
|
+
android:label="FaceSDK"
|
|
10
|
+
android:roundIcon="@drawable/ic_launcher_round"
|
|
11
|
+
android:supportsRtl="true"
|
|
12
|
+
android:theme="@style/Theme.AppCompat.DayNight.NoActionBar"
|
|
13
|
+
android:usesCleartextTraffic="true">
|
|
14
|
+
<activity
|
|
15
|
+
android:name=".MainActivity"
|
|
16
|
+
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
|
|
17
|
+
android:exported="true"
|
|
18
|
+
android:launchMode="singleTask"
|
|
19
|
+
android:screenOrientation="portrait"
|
|
20
|
+
android:windowSoftInputMode="adjustResize">
|
|
21
|
+
<intent-filter>
|
|
22
|
+
<action android:name="android.intent.action.MAIN" />
|
|
23
|
+
<category android:name="android.intent.category.LAUNCHER" />
|
|
24
|
+
</intent-filter>
|
|
25
|
+
</activity>
|
|
26
|
+
</application>
|
|
27
|
+
</manifest>
|
package/examples/react-native/android/app/src/main/java/com/regula/documentreader/MainActivity.kt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
package com.regula.documentreader.api.androidtest
|
|
2
|
+
|
|
3
|
+
import com.facebook.react.ReactActivity
|
|
4
|
+
import com.facebook.react.ReactActivityDelegate
|
|
5
|
+
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
|
|
6
|
+
import com.facebook.react.defaults.DefaultReactActivityDelegate
|
|
7
|
+
|
|
8
|
+
class MainActivity : ReactActivity() {
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Returns the name of the main component registered from JavaScript. This is used to schedule
|
|
12
|
+
* rendering of the component.
|
|
13
|
+
*/
|
|
14
|
+
override fun getMainComponentName(): String = "App"
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
|
|
18
|
+
* which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
|
|
19
|
+
*/
|
|
20
|
+
override fun createReactActivityDelegate(): ReactActivityDelegate =
|
|
21
|
+
DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled)
|
|
22
|
+
}
|
package/examples/react-native/android/app/src/main/java/com/regula/documentreader/MainApplication.kt
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
package com.regula.documentreader.api.androidtest
|
|
2
|
+
|
|
3
|
+
import android.app.Application
|
|
4
|
+
import com.facebook.react.PackageList
|
|
5
|
+
import com.facebook.react.ReactApplication
|
|
6
|
+
import com.facebook.react.ReactHost
|
|
7
|
+
import com.facebook.react.ReactNativeHost
|
|
8
|
+
import com.facebook.react.ReactPackage
|
|
9
|
+
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
|
|
10
|
+
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
|
|
11
|
+
import com.facebook.react.defaults.DefaultReactNativeHost
|
|
12
|
+
import com.facebook.react.soloader.OpenSourceMergedSoMapping
|
|
13
|
+
import com.facebook.soloader.SoLoader
|
|
14
|
+
|
|
15
|
+
class MainApplication : Application(), ReactApplication {
|
|
16
|
+
|
|
17
|
+
override val reactNativeHost: ReactNativeHost =
|
|
18
|
+
object : DefaultReactNativeHost(this) {
|
|
19
|
+
override fun getPackages(): List<ReactPackage> =
|
|
20
|
+
PackageList(this).packages.apply {
|
|
21
|
+
// Packages that cannot be autolinked yet can be added manually here, for example:
|
|
22
|
+
// add(MyReactNativePackage())
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
override fun getJSMainModuleName(): String = "index"
|
|
26
|
+
|
|
27
|
+
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
|
|
28
|
+
|
|
29
|
+
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
|
|
30
|
+
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
override val reactHost: ReactHost
|
|
34
|
+
get() = getDefaultReactHost(applicationContext, reactNativeHost)
|
|
35
|
+
|
|
36
|
+
override fun onCreate() {
|
|
37
|
+
super.onCreate()
|
|
38
|
+
SoLoader.init(this, OpenSourceMergedSoMapping)
|
|
39
|
+
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
|
|
40
|
+
// If you opted-in for the New Architecture, we load the native entry point for this app.
|
|
41
|
+
load()
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
buildscript {
|
|
2
|
+
ext {
|
|
3
|
+
buildToolsVersion = "35.0.0"
|
|
4
|
+
minSdkVersion = 24
|
|
5
|
+
compileSdkVersion = 35
|
|
6
|
+
targetSdkVersion = 35
|
|
7
|
+
ndkVersion = "27.1.12297006"
|
|
8
|
+
kotlinVersion = "2.0.21"
|
|
9
|
+
}
|
|
10
|
+
repositories {
|
|
11
|
+
google()
|
|
12
|
+
mavenCentral()
|
|
13
|
+
}
|
|
14
|
+
dependencies {
|
|
15
|
+
classpath("com.android.tools.build:gradle")
|
|
16
|
+
classpath("com.facebook.react:react-native-gradle-plugin")
|
|
17
|
+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
apply plugin: "com.facebook.react.rootproject"
|
|
Binary file
|