@regulaforensics/face-sdk 8.1.513-nightly → 8.1.523-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/RNFaceSDK.podspec +2 -2
- package/android/build.gradle +1 -1
- package/android/cordova.gradle +1 -1
- package/examples/capacitor/index.tsx +5 -5
- package/examples/capacitor/package.json +2 -2
- package/examples/ionic/index.tsx +7 -3
- package/examples/ionic/package.json +2 -2
- package/examples/react_native/index.html +5 -4
- package/examples/react_native/package.json +2 -2
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/package-lock.json +1 -1
- package/test/test.tsx +1 -1
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.1.
|
|
8
|
+
s.version = '8.1.523-nightly'
|
|
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 'FaceSDKNightly', '8.1.
|
|
19
|
+
s.dependency 'FaceSDKNightly', '8.1.3177'
|
|
20
20
|
s.dependency 'React'
|
|
21
21
|
end
|
package/android/build.gradle
CHANGED
|
@@ -29,7 +29,7 @@ dependencies {
|
|
|
29
29
|
//noinspection GradleDynamicVersion
|
|
30
30
|
implementation 'com.facebook.react:react-native:+'
|
|
31
31
|
//noinspection GradleDependency
|
|
32
|
-
implementation('com.regula.face:api:8.1.
|
|
32
|
+
implementation('com.regula.face:api:8.1.4070'){
|
|
33
33
|
transitive = true
|
|
34
34
|
}
|
|
35
35
|
}
|
package/android/cordova.gradle
CHANGED
|
@@ -7,11 +7,11 @@ import { Camera, DestinationType, MediaType, PictureSourceType } from '@awesome-
|
|
|
7
7
|
import { main } from './src/main'
|
|
8
8
|
import { Dialog } from '@capacitor/dialog'
|
|
9
9
|
|
|
10
|
-
document.addEventListener('deviceready', () =>
|
|
11
|
-
.then(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
)
|
|
10
|
+
document.addEventListener('deviceready', async () => {
|
|
11
|
+
document.getElementById("content").innerHTML = await fetch("main.html").then(r => r.text())
|
|
12
|
+
await new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(resolve)))
|
|
13
|
+
document.dispatchEvent(new Event('ready'))
|
|
14
|
+
})
|
|
15
15
|
|
|
16
16
|
export async function loadAssetIfExists(path: string): Promise<string | null> {
|
|
17
17
|
try {
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"android": "scripts/android.sh"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@regulaforensics/face-sdk": "8.1.
|
|
10
|
-
"@regulaforensics/face-core-basic": "8.1.
|
|
9
|
+
"@regulaforensics/face-sdk": "8.1.523-nightly",
|
|
10
|
+
"@regulaforensics/face-core-basic": "8.1.298-nightly",
|
|
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",
|
package/examples/ionic/index.tsx
CHANGED
|
@@ -52,9 +52,13 @@ var dialogsInstance: Dialogs
|
|
|
52
52
|
})
|
|
53
53
|
class Main {
|
|
54
54
|
constructor(platform: Platform, camera: Camera, dialogs: Dialogs) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
(async () => {
|
|
56
|
+
cameraInstance = camera
|
|
57
|
+
dialogsInstance = dialogs
|
|
58
|
+
await platform.ready()
|
|
59
|
+
await new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(resolve)))
|
|
60
|
+
main()
|
|
61
|
+
})()
|
|
58
62
|
}
|
|
59
63
|
}
|
|
60
64
|
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"@awesome-cordova-plugins/file": "^8.1.0",
|
|
20
20
|
"@ionic/angular": "^8.7.3",
|
|
21
21
|
"@ionic/cordova-builders": "^12.3.0",
|
|
22
|
-
"@regulaforensics/face-
|
|
23
|
-
"@regulaforensics/face-
|
|
22
|
+
"@regulaforensics/face-sdk": "8.1.523-nightly",
|
|
23
|
+
"@regulaforensics/face-core-basic": "8.1.298-nightly",
|
|
24
24
|
"cordova-android": "^14.0.1",
|
|
25
25
|
"cordova-ios": "^7.1.1",
|
|
26
26
|
"cordova-plugin-camera": "^8.0.0",
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
<div id="content" style="height: 100%"></div>
|
|
5
5
|
|
|
6
6
|
<script>
|
|
7
|
-
|
|
8
|
-
.then(
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
(async () => {
|
|
8
|
+
document.getElementById("content").innerHTML = await fetch("src/main.html").then(r => r.text())
|
|
9
|
+
await new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(resolve)))
|
|
10
|
+
window.ReactNativeWebView.postMessage(JSON.stringify({ id: "ready" }))
|
|
11
|
+
})()
|
|
11
12
|
</script>
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"start": "expo start"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@regulaforensics/face-sdk": "8.1.
|
|
12
|
-
"@regulaforensics/face-core-basic": "8.1.
|
|
11
|
+
"@regulaforensics/face-sdk": "8.1.523-nightly",
|
|
12
|
+
"@regulaforensics/face-core-basic": "8.1.298-nightly",
|
|
13
13
|
"react-native": "^0.81.4",
|
|
14
14
|
"react-native-fs": "^2.20.0",
|
|
15
15
|
"react-native-image-picker": "^8.2.1",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/face-sdk",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.523-nightly",
|
|
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="8.1.
|
|
2
|
+
<plugin id="@regulaforensics/face-sdk" version="8.1.523-nightly" 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>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<source url="https://github.com/CocoaPods/Specs.git" />
|
|
30
30
|
</config>
|
|
31
31
|
<pods>
|
|
32
|
-
<pod name="FaceSDKNightly" spec="8.1.
|
|
32
|
+
<pod name="FaceSDKNightly" spec="8.1.3177" />
|
|
33
33
|
</pods>
|
|
34
34
|
</podspec>
|
|
35
35
|
</platform>
|
package/test/package-lock.json
CHANGED
package/test/test.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { compare } from './utils'
|
|
2
|
-
import { ComparedFace, ComparedFacesPair, ComparedFacesSplit, Customization, DetectFaceResult, DetectFacesAttributeResult, DetectFacesBackendException, DetectFacesConfig, DetectFacesException, DetectFacesRequest, DetectFacesResponse, EditGroupPersonsRequest, FaceCaptureConfig, FaceCaptureException, FaceCaptureImage, FaceCaptureResponse, FaceSDKVersion, ImageQualityCharacteristic, ImageQualityRange, ImageQualityResult, ImageUpload, InitConfig, InitException, LicenseException, LivenessBackendException, LivenessConfig, LivenessException, LivenessNotification, LivenessResponse, MatchFacesBackendException, MatchFacesConfig, MatchFacesDetection, MatchFacesDetectionFace, MatchFacesException, MatchFacesImage, MatchFacesRequest, MatchFacesResponse, OutputImageCrop, OutputImageParams, Person, PersonGroup, PersonImage, Point, Rect, SearchPerson, SearchPersonDetection, SearchPersonImage, SearchPersonRequest, Size } from '@regulaforensics/face-sdk'
|
|
2
|
+
import { ComparedFace, ComparedFacesPair, ComparedFacesSplit, Customization, DetectFaceResult, DetectFacesAttributeResult, DetectFacesBackendException, DetectFacesConfig, DetectFacesException, DetectFacesRequest, DetectFacesResponse, EditGroupPersonsRequest, FaceCaptureConfig, FaceCaptureException, FaceCaptureImage, FaceCaptureResponse, FaceSDKVersion, ImageQualityCharacteristic, ImageQualityRange, ImageQualityResult, ImageUpload, InitConfig, InitException, LicenseException, LivenessBackendException, LivenessConfig, LivenessException, LivenessNotification, LivenessResponse, MatchFacesBackendException, MatchFacesConfig, MatchFacesDetection, MatchFacesDetectionFace, MatchFacesException, MatchFacesImage, MatchFacesRequest, MatchFacesResponse, OutputImageCrop, OutputImageParams, Person, PersonGroup, PersonImage, Point, Rect, SearchPerson, SearchPersonDetection, SearchPersonImage, SearchPersonRequest, Size } from '@regulaforensics/face-sdk/www/capacitor'
|
|
3
3
|
import { comparedFace, comparedFacesPair, comparedFacesSplit, customization, detectFaceResult, detectFacesAttributeResult, detectFacesBackendException, detectFacesConfig, detectFacesException, detectFacesRequest, detectFacesResponse, editGroupPersonsRequest, faceCaptureConfig, faceCaptureException, faceCaptureImage, faceCaptureResponse, faceSDKVersion, imageQualityCharacteristic, imageQualityRange, imageQualityResult, imageUpload, initConfig, initException, licenseException, livenessBackendException, livenessConfig, livenessException, livenessNotification, livenessResponse, matchFacesBackendException, matchFacesConfig, matchFacesDetection, matchFacesDetectionFace, matchFacesException, matchFacesImage, matchFacesRequest, matchFacesResponse, outputImageCrop, outputImageParams, person, personGroup, personImage, point, rect, searchPerson, searchPersonDetection, searchPersonImage, searchPersonRequest, size } from './json'
|
|
4
4
|
|
|
5
5
|
compare('customization', customization, Customization.fromJson)
|