@regulaforensics/face-sdk 6.3.82-beta → 6.3.85-nightly
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 +3 -2
- package/RNFaceSDK.podspec +3 -3
- package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +4 -2
- package/examples/capacitor/README.md +4 -4
- package/examples/capacitor/android/build.gradle +2 -2
- package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +2 -2
- package/examples/capacitor/ios/App/Podfile +1 -1
- package/examples/capacitor/package.json +13 -13
- package/examples/capacitor/scripts/android.sh +9 -0
- package/examples/capacitor/scripts/ios.sh +8 -0
- package/examples/capacitor/scripts/setup.sh +4 -0
- package/examples/cordova/README.md +4 -4
- package/examples/cordova/config.xml +2 -2
- package/examples/cordova/package.json +10 -16
- package/examples/cordova/scripts/android.sh +8 -0
- package/examples/cordova/scripts/ios.sh +8 -0
- package/examples/cordova/scripts/setup.sh +5 -0
- package/examples/cordova/www/js/index.js +13 -13
- package/examples/ionic/README.md +4 -4
- package/examples/ionic/config.xml +2 -2
- package/examples/ionic/package.json +16 -17
- package/examples/ionic/scripts/android.sh +8 -0
- package/examples/ionic/scripts/ios.sh +8 -0
- package/examples/ionic/scripts/setup.sh +5 -0
- package/examples/react-native/Gemfile +1 -0
- package/examples/react-native/Gemfile.lock +26 -23
- package/examples/react-native/README.md +4 -4
- package/examples/react-native/android/app/src/main/java/com/regula/face/api/MainApplication.kt +2 -1
- package/examples/react-native/android/build.gradle +3 -3
- package/examples/react-native/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/examples/react-native/android/gradle/wrapper/gradle-wrapper.properties +2 -2
- package/examples/react-native/android/gradlew +4 -1
- package/examples/react-native/ios/Podfile.lock +319 -303
- package/examples/react-native/package-lock.json +6101 -6298
- package/examples/react-native/package.json +20 -18
- package/examples/react-native/scripts/android.sh +8 -0
- package/examples/react-native/scripts/ios.sh +8 -0
- package/examples/react-native/scripts/setup.sh +8 -0
- package/package.json +2 -2
- package/plugin.xml +3 -2
- package/www/capacitor/liveness/liveness_backend_exception.js +3 -0
- package/www/cordova.js +4 -1
- package/www/react-native/liveness/liveness_backend_exception.js +3 -0
- package/www/types/customization/camera_position.d.ts +9 -0
- package/www/types/customization/customization.d.ts +22 -0
- package/www/types/customization/customization_colors.d.ts +6 -0
- package/www/types/customization/customization_fonts.d.ts +6 -0
- package/www/types/customization/customization_images.d.ts +6 -0
- package/www/types/customization/font.d.ts +19 -0
- package/www/types/detect_faces/detect_faces_config.d.ts +18 -0
- package/www/types/detect_faces/detect_faces_exception.d.ts +3 -0
- package/www/types/detect_faces/detect_faces_request.d.ts +53 -0
- package/www/types/face_capture/face_capture_config.d.ts +9 -0
- package/www/types/face_capture/face_capture_image.d.ts +24 -0
- package/www/types/image_params/output_image_crop.d.ts +24 -0
- package/www/types/image_params/output_image_params.d.ts +15 -0
- package/www/types/image_params/point.d.ts +3 -0
- package/www/types/image_quality/image_quality_characteristic.d.ts +3 -0
- package/www/types/image_quality/image_quality_characteristic_name.d.ts +3 -0
- package/www/types/image_quality/image_quality_group.d.ts +263 -0
- package/www/types/index.d.ts +40 -10
- package/www/types/init/face_sdk_version.d.ts +9 -0
- package/www/types/init/init_config.d.ts +9 -0
- package/www/types/liveness/liveness_backend_exception.d.ts +3 -0
- package/www/types/liveness/liveness_config.d.ts +66 -0
- package/www/types/liveness/liveness_notification.d.ts +3 -0
- package/www/types/liveness/liveness_response.d.ts +24 -0
- package/www/types/match_faces/compared_face.d.ts +18 -0
- package/www/types/match_faces/compared_faces_pair.d.ts +24 -0
- package/www/types/match_faces/match_faces_detection.d.ts +18 -0
- package/www/types/match_faces/match_faces_detection_face.d.ts +30 -0
- package/www/types/match_faces/match_faces_image.d.ts +18 -0
- package/www/types/match_faces/match_faces_request.d.ts +16 -0
- package/www/types/match_faces/match_faces_response.d.ts +15 -0
- package/www/types/person_database/image_upload.d.ts +14 -0
- package/www/types/person_database/person.d.ts +23 -0
- package/www/types/person_database/person_database.d.ts +3 -0
- package/www/types/person_database/person_group.d.ts +14 -0
- package/www/types/person_database/search_person.d.ts +16 -0
- package/www/types/person_database/search_person_image.d.ts +13 -0
- package/www/types/person_database/search_person_request.d.ts +24 -0
package/README.md
CHANGED
|
@@ -6,13 +6,14 @@ This plugin makes possible to use it with react-native, cordova and ionic applic
|
|
|
6
6
|
In the [examples](examples/) folder you can find demo 4 applications:
|
|
7
7
|
* [React-native](examples/react-native)
|
|
8
8
|
* [Cordova](examples/cordova)
|
|
9
|
-
* [Ionic(ionic app with cordova,
|
|
9
|
+
* [Ionic(ionic app with cordova, angular)](examples/ionic)
|
|
10
10
|
* [Capacitor(ionic app with capacitor, react)](examples/capacitor)
|
|
11
11
|
|
|
12
12
|
Each demo app has its own readme file with instructions on building and installation.
|
|
13
13
|
|
|
14
14
|
## Documentation
|
|
15
|
-
|
|
15
|
+
* [Documentation](https://docs.regulaforensics.com/develop/face-sdk/mobile)
|
|
16
|
+
* [API Reference](https://dev.regulaforensics.com/npm-face-sdk)
|
|
16
17
|
|
|
17
18
|
## Support
|
|
18
19
|
If you have any technical questions, feel free to [contact](mailto:support@regulaforensics.com) us or create issues [here](https://github.com/regulaforensics/npm-face-sdk/issues).
|
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 =
|
|
8
|
+
s.version = '6.3.85-nightly'
|
|
9
9
|
s.summary = package['description']
|
|
10
10
|
s.license = package['license']
|
|
11
11
|
|
|
@@ -13,9 +13,9 @@ Pod::Spec.new do |s|
|
|
|
13
13
|
s.homepage = 'https://regulaforensics.com'
|
|
14
14
|
|
|
15
15
|
s.source = { http: "file:#{source}" }
|
|
16
|
-
s.ios.deployment_target = '
|
|
16
|
+
s.ios.deployment_target = '12.0'
|
|
17
17
|
s.source_files = 'ios/**/*.{h,m}'
|
|
18
18
|
s.exclude_files = [ 'ios/CVDFaceSDK.h', 'ios/CVDFaceSDK.m' ]
|
|
19
|
-
s.dependency 'FaceSDK', '6.3.
|
|
19
|
+
s.dependency 'FaceSDK', '6.3.2181'
|
|
20
20
|
s.dependency 'React'
|
|
21
21
|
end
|
|
@@ -193,13 +193,15 @@ fun generateLivenessException(input: LivenessErrorException?) = input?.let {
|
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
fun livenessBackendExceptionFromJSON(input: JSONObject?) = input?.let {
|
|
196
|
-
LivenessBackendException(LivenessBackendErrorCode.createValue(it.getInt("code")))
|
|
196
|
+
LivenessBackendException(LivenessBackendErrorCode.createValue(it.getInt("code")), "")
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
fun generateLivenessBackendException(input: LivenessBackendException?) = input?.let {
|
|
200
|
+
var message = it.message!!
|
|
201
|
+
if (message.startsWith(": ")) message = message.substring(2)
|
|
200
202
|
mapOf(
|
|
201
203
|
"code" to it.errorCode.value,
|
|
202
|
-
"message" to
|
|
204
|
+
"message" to message
|
|
203
205
|
).toJson()
|
|
204
206
|
}
|
|
205
207
|
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
## How to build demo application
|
|
4
4
|
1. Download or the clone current repository using the command `git clone https://github.com/regulaforensics/npm-face-sdk.git`.
|
|
5
5
|
|
|
6
|
-
2.
|
|
6
|
+
2. Execute `npm run setup` within this directory.
|
|
7
7
|
|
|
8
8
|
3. Run the app:
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* IOS: `npm run ios`.
|
|
10
|
+
* Android: `npm run android`.
|
|
11
11
|
|
|
12
|
-
**Note**: this is just one way of running the app. You can also
|
|
12
|
+
**Note**: this is just one way of running the app. You can also pass `-o` or `--open` argument to the command, and this will open Xcode/Android Studio, then run the app directly from the IDE. Overall, this is a more consistent way, so if you're having troubles running the app from terminal, try running it from the IDE.
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
## How to use offine match
|
|
@@ -7,9 +7,9 @@ buildscript {
|
|
|
7
7
|
mavenCentral()
|
|
8
8
|
}
|
|
9
9
|
dependencies {
|
|
10
|
-
classpath 'com.android.tools.build:gradle:8.
|
|
10
|
+
classpath 'com.android.tools.build:gradle:8.8.0'
|
|
11
11
|
classpath 'com.google.gms:google-services:4.3.15'
|
|
12
|
-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.
|
|
12
|
+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.25"
|
|
13
13
|
|
|
14
14
|
// NOTE: Do not place your application dependencies here; they belong
|
|
15
15
|
// in the individual module build.gradle files
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
distributionBase=GRADLE_USER_HOME
|
|
2
2
|
distributionPath=wrapper/dists
|
|
3
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.
|
|
3
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
|
|
4
4
|
networkTimeout=10000
|
|
5
5
|
zipStoreBase=GRADLE_USER_HOME
|
|
6
6
|
zipStorePath=wrapper/dists
|
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
CODE_SIGN_STYLE = Automatic;
|
|
352
352
|
CURRENT_PROJECT_VERSION = 1;
|
|
353
353
|
INFOPLIST_FILE = App/Info.plist;
|
|
354
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
354
|
+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
|
355
355
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
|
356
356
|
MARKETING_VERSION = 1.0;
|
|
357
357
|
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
|
|
@@ -372,7 +372,7 @@
|
|
|
372
372
|
CODE_SIGN_STYLE = Automatic;
|
|
373
373
|
CURRENT_PROJECT_VERSION = 1;
|
|
374
374
|
INFOPLIST_FILE = App/Info.plist;
|
|
375
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
375
|
+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
|
376
376
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
|
377
377
|
MARKETING_VERSION = 1.0;
|
|
378
378
|
PRODUCT_BUNDLE_IDENTIFIER = regula.FaceSDKSample;
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"version": "1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"setup": "
|
|
8
|
-
"
|
|
9
|
-
"
|
|
7
|
+
"setup": "scripts/setup.sh",
|
|
8
|
+
"ios": "scripts/ios.sh",
|
|
9
|
+
"android": "scripts/android.sh",
|
|
10
10
|
"dev": "vite",
|
|
11
11
|
"build": "tsc && vite build",
|
|
12
12
|
"preview": "vite preview",
|
|
@@ -15,18 +15,18 @@
|
|
|
15
15
|
"lint": "eslint"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@regulaforensics/face-sdk": "6.3.
|
|
19
|
-
"@regulaforensics/face-core-basic": "6.
|
|
18
|
+
"@regulaforensics/face-sdk": "6.3.85-nightly",
|
|
19
|
+
"@regulaforensics/face-core-basic": "6.5.55-beta",
|
|
20
20
|
"@awesome-cordova-plugins/camera": "6.6.0",
|
|
21
21
|
"@awesome-cordova-plugins/file": "6.6.0",
|
|
22
22
|
"@awesome-cordova-plugins/dialogs": "6.6.0",
|
|
23
|
-
"@capacitor/android": "
|
|
24
|
-
"@capacitor/
|
|
25
|
-
"@capacitor/
|
|
26
|
-
"@capacitor/
|
|
27
|
-
"@capacitor/
|
|
28
|
-
"@capacitor/keyboard": "
|
|
29
|
-
"@capacitor/status-bar": "
|
|
23
|
+
"@capacitor/android": "7.0.0-rc.0",
|
|
24
|
+
"@capacitor/core": "7.0.0-rc.0",
|
|
25
|
+
"@capacitor/ios": "7.0.0-rc.0",
|
|
26
|
+
"@capacitor/app": "7.0.0-rc.0",
|
|
27
|
+
"@capacitor/haptics": "7.0.0-rc.0",
|
|
28
|
+
"@capacitor/keyboard": "7.0.0-rc.0",
|
|
29
|
+
"@capacitor/status-bar": "7.0.0-rc.0",
|
|
30
30
|
"@ionic/react": "^7.0.0",
|
|
31
31
|
"@ionic/react-router": "^7.0.0",
|
|
32
32
|
"@types/react-router": "^5.1.20",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"react-router-dom": "^5.3.4"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@capacitor/cli": "
|
|
45
|
+
"@capacitor/cli": "7.0.0-rc.0",
|
|
46
46
|
"@testing-library/dom": ">=7.21.4",
|
|
47
47
|
"@testing-library/jest-dom": "^5.16.5",
|
|
48
48
|
"@testing-library/react": "^14.0.0",
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
## How to build demo application
|
|
4
4
|
1. Download or the clone current repository using the command `git clone https://github.com/regulaforensics/npm-face-sdk.git`.
|
|
5
5
|
|
|
6
|
-
2.
|
|
6
|
+
2. Execute `npm run setup` within this directory.
|
|
7
7
|
|
|
8
8
|
3. Run the app:
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* IOS: `npm run ios`.
|
|
10
|
+
* Android: `npm run android`.
|
|
11
11
|
|
|
12
|
-
**Note**: this is just one way of running the app. You can also
|
|
12
|
+
**Note**: this is just one way of running the app. You can also pass `-o` or `--open` argument to the command, and this will open Xcode/Android Studio, then run the app directly from the IDE. Overall, this is a more consistent way, so if you're having troubles running the app from terminal, try running it from the IDE.
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
## How to use offine match
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<preference name="orientation" value="portrait" />
|
|
15
15
|
<preference name="GradlePluginKotlinEnabled" value="true" />
|
|
16
16
|
<preference name="android-minSdkVersion" value="23" />
|
|
17
|
-
<preference name="android-targetSdkVersion" value="
|
|
17
|
+
<preference name="android-targetSdkVersion" value="35" />
|
|
18
18
|
<allow-intent href="market:*" />
|
|
19
19
|
<config-file parent="/*" target="AndroidManifest.xml">
|
|
20
20
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
|
@@ -34,4 +34,4 @@
|
|
|
34
34
|
<string>To pick images</string>
|
|
35
35
|
</config-file>
|
|
36
36
|
</platform>
|
|
37
|
-
</widget>
|
|
37
|
+
</widget>
|
|
@@ -4,25 +4,19 @@
|
|
|
4
4
|
"version": "1.0.0",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"setup": "
|
|
8
|
-
"
|
|
9
|
-
"
|
|
7
|
+
"setup": "scripts/setup.sh",
|
|
8
|
+
"ios": "scripts/ios.sh",
|
|
9
|
+
"android": "scripts/android.sh"
|
|
10
10
|
},
|
|
11
|
-
"keywords": [
|
|
12
|
-
"ecosystem:cordova"
|
|
13
|
-
],
|
|
14
|
-
"author": "Regula Forensics Inc.",
|
|
15
|
-
"license": "commercial",
|
|
16
11
|
"dependencies": {
|
|
17
|
-
"@regulaforensics/face-sdk": "6.3.
|
|
18
|
-
"@regulaforensics/face-core-basic": "6.
|
|
19
|
-
"cordova-android": "
|
|
20
|
-
"cordova-ios": "7.
|
|
12
|
+
"@regulaforensics/face-sdk": "6.3.85-nightly",
|
|
13
|
+
"@regulaforensics/face-core-basic": "6.5.55-beta",
|
|
14
|
+
"cordova-android": "13.0.0",
|
|
15
|
+
"cordova-ios": "7.1.1",
|
|
21
16
|
"cordova-plugin-add-swift-support": "2.0.2",
|
|
22
|
-
"cordova-plugin-camera": "
|
|
23
|
-
"jetifier": "2.0.0",
|
|
17
|
+
"cordova-plugin-camera": "8.0.0",
|
|
24
18
|
"cordova-plugin-dialogs": "2.0.2",
|
|
25
|
-
"cordova-plugin-file": "8.
|
|
19
|
+
"cordova-plugin-file": "8.1.3"
|
|
26
20
|
},
|
|
27
21
|
"cordova": {
|
|
28
22
|
"plugins": {
|
|
@@ -37,4 +31,4 @@
|
|
|
37
31
|
"ios"
|
|
38
32
|
]
|
|
39
33
|
}
|
|
40
|
-
}
|
|
34
|
+
}
|
|
@@ -15,7 +15,7 @@ async function startLiveness() {
|
|
|
15
15
|
}
|
|
16
16
|
})
|
|
17
17
|
if (response.image == null) return
|
|
18
|
-
setImage(response.image, ImageType.LIVE, 1)
|
|
18
|
+
setImage("data:image/png;base64," + response.image, ImageType.LIVE, 1)
|
|
19
19
|
setLivenessStatus(response.liveness == LivenessStatus.PASSED ? "passed" : "unknown")
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -64,12 +64,12 @@ function setImage(base64, type, position) {
|
|
|
64
64
|
var mfImage = new MatchFacesImage(base64, type)
|
|
65
65
|
if (position == 1) {
|
|
66
66
|
image1 = mfImage
|
|
67
|
-
setUiImage1(
|
|
67
|
+
setUiImage1(base64)
|
|
68
68
|
setLivenessStatus("null")
|
|
69
69
|
}
|
|
70
70
|
if (position == 2) {
|
|
71
71
|
image2 = mfImage
|
|
72
|
-
setUiImage2(
|
|
72
|
+
setUiImage2(base64)
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -77,7 +77,7 @@ async function useCamera(position) {
|
|
|
77
77
|
var response = await faceSdk.startFaceCapture()
|
|
78
78
|
if (response.image == null) return
|
|
79
79
|
var image = response.image
|
|
80
|
-
setImage(image.image, image.imageType, position)
|
|
80
|
+
setImage("data:image/png;base64," + image.image, image.imageType, position)
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
function useGallery(position) {
|
|
@@ -100,15 +100,15 @@ function pickImage(position) {
|
|
|
100
100
|
|
|
101
101
|
async function loadAssetIfExists(path) {
|
|
102
102
|
path = cordova.file.applicationDirectory + "www/" + path
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
103
|
+
return new Promise((resolve, _) => {
|
|
104
|
+
window.resolveLocalFileSystemURL(path, (fileEntry) => {
|
|
105
|
+
fileEntry.file((file) => {
|
|
106
|
+
var reader = new FileReader()
|
|
107
|
+
reader.onloadend = function (_) { resolve(this.result) }
|
|
108
|
+
reader.readAsDataURL(file)
|
|
109
|
+
})
|
|
110
|
+
}, (_) => resolve(null))
|
|
111
|
+
})
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
async function onDeviceReady() {
|
package/examples/ionic/README.md
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
## How to build demo application
|
|
4
4
|
1. Download or the clone current repository using the command `git clone https://github.com/regulaforensics/npm-face-sdk.git`.
|
|
5
5
|
|
|
6
|
-
2.
|
|
6
|
+
2. Execute `npm run setup` within this directory.
|
|
7
7
|
|
|
8
8
|
3. Run the app:
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* IOS: `npm run ios`.
|
|
10
|
+
* Android: `npm run android`.
|
|
11
11
|
|
|
12
|
-
**Note**: this is just one way of running the app. You can also
|
|
12
|
+
**Note**: this is just one way of running the app. You can also pass `-o` or `--open` argument to the command, and this will open Xcode/Android Studio, then run the app directly from the IDE. Overall, this is a more consistent way, so if you're having troubles running the app from terminal, try running it from the IDE.
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
## How to use offine match
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
<application android:usesCleartextTraffic="true" />
|
|
26
26
|
</edit-config>
|
|
27
27
|
|
|
28
|
-
<preference name="android-minSdkVersion" value="
|
|
29
|
-
<preference name="android-targetSdkVersion" value="
|
|
28
|
+
<preference name="android-minSdkVersion" value="23" />
|
|
29
|
+
<preference name="android-targetSdkVersion" value="35" />
|
|
30
30
|
<preference name="GradlePluginKotlinEnabled" value="true" />
|
|
31
31
|
|
|
32
32
|
<resource-file src="resources/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"author": "Ionic Framework",
|
|
5
5
|
"homepage": "https://ionicframework.com/",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"setup": "
|
|
8
|
-
"
|
|
9
|
-
"
|
|
7
|
+
"setup": "scripts/setup.sh",
|
|
8
|
+
"ios": "scripts/ios.sh",
|
|
9
|
+
"android": "scripts/android.sh",
|
|
10
10
|
"ng": "ng",
|
|
11
11
|
"start": "ng serve",
|
|
12
12
|
"build": "ng build",
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
},
|
|
17
17
|
"private": true,
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@regulaforensics/face-sdk": "6.3.
|
|
20
|
-
"@regulaforensics/face-core-basic": "6.
|
|
21
|
-
"cordova-plugin-camera": "
|
|
22
|
-
"@awesome-cordova-plugins/camera": "6.
|
|
23
|
-
"@awesome-cordova-plugins/core": "6.
|
|
24
|
-
"@awesome-cordova-plugins/dialogs": "6.
|
|
25
|
-
"@awesome-cordova-plugins/splash-screen": "6.
|
|
26
|
-
"@awesome-cordova-plugins/status-bar": "6.
|
|
27
|
-
"@awesome-cordova-plugins/file": "6.
|
|
19
|
+
"@regulaforensics/face-sdk": "6.3.85-nightly",
|
|
20
|
+
"@regulaforensics/face-core-basic": "6.5.55-beta",
|
|
21
|
+
"cordova-plugin-camera": "8.0.0",
|
|
22
|
+
"@awesome-cordova-plugins/camera": "6.14.0",
|
|
23
|
+
"@awesome-cordova-plugins/core": "6.14.0",
|
|
24
|
+
"@awesome-cordova-plugins/dialogs": "6.14.0",
|
|
25
|
+
"@awesome-cordova-plugins/splash-screen": "6.14.0",
|
|
26
|
+
"@awesome-cordova-plugins/status-bar": "6.14.0",
|
|
27
|
+
"@awesome-cordova-plugins/file": "6.14.0",
|
|
28
28
|
"@angular/common": "~13.3.2",
|
|
29
29
|
"@angular/core": "~13.3.2",
|
|
30
30
|
"@angular/forms": "~13.3.2",
|
|
@@ -33,16 +33,15 @@
|
|
|
33
33
|
"@angular/router": "~13.3.2",
|
|
34
34
|
"@ionic/angular": "^6.0.15",
|
|
35
35
|
"@ionic/cordova-builders": "^6.1.0",
|
|
36
|
-
"cordova-android": "
|
|
37
|
-
"cordova-ios": "
|
|
36
|
+
"cordova-android": "13.0.0",
|
|
37
|
+
"cordova-ios": "7.1.1",
|
|
38
38
|
"cordova-plugin-add-swift-support": "^2.0.2",
|
|
39
39
|
"cordova-plugin-dialogs": "^2.0.2",
|
|
40
40
|
"core-js": "^3.6.5",
|
|
41
41
|
"rxjs": "~6.6.3",
|
|
42
42
|
"tslib": "^2.0.1",
|
|
43
43
|
"zone.js": "~0.11.1",
|
|
44
|
-
"
|
|
45
|
-
"cordova-plugin-file": "8.0.1"
|
|
44
|
+
"cordova-plugin-file": "8.1.3"
|
|
46
45
|
},
|
|
47
46
|
"devDependencies": {
|
|
48
47
|
"@angular-devkit/architect": "~0.1001.4",
|
|
@@ -58,7 +57,7 @@
|
|
|
58
57
|
"@types/jasminewd2": "~2.0.8",
|
|
59
58
|
"@types/node": "~14.11.5",
|
|
60
59
|
"codelyzer": "^6.0.1",
|
|
61
|
-
"cordova-plugin-device": "^
|
|
60
|
+
"cordova-plugin-device": "^3.0.0",
|
|
62
61
|
"cordova-plugin-ionic-keyboard": "^2.2.0",
|
|
63
62
|
"cordova-plugin-ionic-webview": "^5.0.0",
|
|
64
63
|
"cordova-plugin-splashscreen": "^6.0.0",
|
|
@@ -5,8 +5,9 @@ GEM
|
|
|
5
5
|
base64
|
|
6
6
|
nkf
|
|
7
7
|
rexml
|
|
8
|
-
activesupport (7.2.1)
|
|
8
|
+
activesupport (7.2.2.1)
|
|
9
9
|
base64
|
|
10
|
+
benchmark (>= 0.3)
|
|
10
11
|
bigdecimal
|
|
11
12
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
12
13
|
connection_pool (>= 2.2.5)
|
|
@@ -23,7 +24,8 @@ GEM
|
|
|
23
24
|
json (>= 1.5.1)
|
|
24
25
|
atomos (0.1.3)
|
|
25
26
|
base64 (0.2.0)
|
|
26
|
-
|
|
27
|
+
benchmark (0.4.0)
|
|
28
|
+
bigdecimal (3.1.9)
|
|
27
29
|
claide (1.1.0)
|
|
28
30
|
cocoapods (1.15.2)
|
|
29
31
|
addressable (~> 2.8)
|
|
@@ -64,51 +66,51 @@ GEM
|
|
|
64
66
|
cocoapods-try (1.2.0)
|
|
65
67
|
colored2 (3.1.2)
|
|
66
68
|
concurrent-ruby (1.3.4)
|
|
67
|
-
connection_pool (2.
|
|
69
|
+
connection_pool (2.5.0)
|
|
68
70
|
drb (2.2.1)
|
|
69
71
|
escape (0.0.4)
|
|
70
72
|
ethon (0.16.0)
|
|
71
73
|
ffi (>= 1.15.0)
|
|
72
|
-
ffi (1.17.
|
|
73
|
-
ffi (1.17.
|
|
74
|
-
ffi (1.17.
|
|
75
|
-
ffi (1.17.
|
|
76
|
-
ffi (1.17.
|
|
77
|
-
ffi (1.17.
|
|
78
|
-
ffi (1.17.
|
|
79
|
-
ffi (1.17.
|
|
80
|
-
ffi (1.17.
|
|
81
|
-
ffi (1.17.
|
|
82
|
-
ffi (1.17.
|
|
74
|
+
ffi (1.17.1)
|
|
75
|
+
ffi (1.17.1-aarch64-linux-gnu)
|
|
76
|
+
ffi (1.17.1-aarch64-linux-musl)
|
|
77
|
+
ffi (1.17.1-arm-linux-gnu)
|
|
78
|
+
ffi (1.17.1-arm-linux-musl)
|
|
79
|
+
ffi (1.17.1-arm64-darwin)
|
|
80
|
+
ffi (1.17.1-x86-linux-gnu)
|
|
81
|
+
ffi (1.17.1-x86-linux-musl)
|
|
82
|
+
ffi (1.17.1-x86_64-darwin)
|
|
83
|
+
ffi (1.17.1-x86_64-linux-gnu)
|
|
84
|
+
ffi (1.17.1-x86_64-linux-musl)
|
|
83
85
|
fourflusher (2.3.1)
|
|
84
86
|
fuzzy_match (2.0.4)
|
|
85
87
|
gh_inspector (1.1.3)
|
|
86
88
|
httpclient (2.8.3)
|
|
87
89
|
i18n (1.14.6)
|
|
88
90
|
concurrent-ruby (~> 1.0)
|
|
89
|
-
json (2.
|
|
90
|
-
logger (1.6.
|
|
91
|
-
minitest (5.25.
|
|
91
|
+
json (2.9.1)
|
|
92
|
+
logger (1.6.4)
|
|
93
|
+
minitest (5.25.4)
|
|
92
94
|
molinillo (0.8.0)
|
|
93
95
|
nanaimo (0.3.0)
|
|
94
96
|
nap (1.1.0)
|
|
95
97
|
netrc (0.11.0)
|
|
96
98
|
nkf (0.2.0)
|
|
97
99
|
public_suffix (4.0.7)
|
|
98
|
-
rexml (3.
|
|
100
|
+
rexml (3.4.0)
|
|
99
101
|
ruby-macho (2.5.1)
|
|
100
|
-
securerandom (0.
|
|
102
|
+
securerandom (0.4.1)
|
|
101
103
|
typhoeus (1.4.1)
|
|
102
104
|
ethon (>= 0.9.0)
|
|
103
105
|
tzinfo (2.0.6)
|
|
104
106
|
concurrent-ruby (~> 1.0)
|
|
105
|
-
xcodeproj (1.25.
|
|
107
|
+
xcodeproj (1.25.1)
|
|
106
108
|
CFPropertyList (>= 2.3.3, < 4.0)
|
|
107
109
|
atomos (~> 0.1.3)
|
|
108
110
|
claide (>= 1.0.2, < 2.0)
|
|
109
111
|
colored2 (~> 3.1)
|
|
110
112
|
nanaimo (~> 0.3.0)
|
|
111
|
-
rexml (>= 3.3.
|
|
113
|
+
rexml (>= 3.3.6, < 4.0)
|
|
112
114
|
|
|
113
115
|
PLATFORMS
|
|
114
116
|
aarch64-linux-gnu
|
|
@@ -126,9 +128,10 @@ PLATFORMS
|
|
|
126
128
|
DEPENDENCIES
|
|
127
129
|
activesupport (>= 6.1.7.5, != 7.1.0)
|
|
128
130
|
cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
|
|
131
|
+
xcodeproj (< 1.26.0)
|
|
129
132
|
|
|
130
133
|
RUBY VERSION
|
|
131
|
-
ruby 3.
|
|
134
|
+
ruby 3.4.1p0
|
|
132
135
|
|
|
133
136
|
BUNDLED WITH
|
|
134
|
-
2.
|
|
137
|
+
2.6.2
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
## How to build demo application
|
|
4
4
|
1. Download or the clone current repository using the command `git clone https://github.com/regulaforensics/npm-face-sdk.git`.
|
|
5
5
|
|
|
6
|
-
2.
|
|
6
|
+
2. Execute `npm run setup` within this directory.
|
|
7
7
|
|
|
8
8
|
3. Run the app:
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* IOS: `npm run ios`.
|
|
10
|
+
* Android: `npm run android`.
|
|
11
11
|
|
|
12
|
-
**Note**: this is just one way of running the app. You can also
|
|
12
|
+
**Note**: this is just one way of running the app. You can also pass `-o` or `--open` argument to the command, and this will open Xcode/Android Studio, then run the app directly from the IDE. Overall, this is a more consistent way, so if you're having troubles running the app from terminal, try running it from the IDE. Just don't forget to make sure that Metro Bundler is running(`npm start`).
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
## How to use offine match
|
package/examples/react-native/android/app/src/main/java/com/regula/face/api/MainApplication.kt
CHANGED
|
@@ -9,6 +9,7 @@ import com.facebook.react.ReactPackage
|
|
|
9
9
|
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
|
|
10
10
|
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
|
|
11
11
|
import com.facebook.react.defaults.DefaultReactNativeHost
|
|
12
|
+
import com.facebook.react.soloader.OpenSourceMergedSoMapping
|
|
12
13
|
import com.facebook.soloader.SoLoader
|
|
13
14
|
|
|
14
15
|
class MainApplication : Application(), ReactApplication {
|
|
@@ -34,7 +35,7 @@ class MainApplication : Application(), ReactApplication {
|
|
|
34
35
|
|
|
35
36
|
override fun onCreate() {
|
|
36
37
|
super.onCreate()
|
|
37
|
-
SoLoader.init(this,
|
|
38
|
+
SoLoader.init(this, OpenSourceMergedSoMapping)
|
|
38
39
|
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
|
|
39
40
|
// If you opted-in for the New Architecture, we load the native entry point for this app.
|
|
40
41
|
load()
|