@regulaforensics/face-sdk 8.4.1403-beta → 8.4.1405-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/Package.swift +1 -1
- package/android/build.gradle.kts +1 -1
- package/android/cordova.gradle.kts +1 -1
- package/android/src/main/kotlin/com/regula/plugin/face/sdk/Config.kt +0 -2
- package/examples/capacitor/package.json +2 -2
- package/examples/ionic/package.json +2 -2
- package/examples/react_native/package-lock.json +7279 -0
- package/examples/react_native/package.json +2 -2
- package/ios/Config.swift +1 -3
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/react-native-face-sdk.podspec +2 -2
- package/test/json.tsx +0 -20
- package/test/package-lock.json +1 -1
- package/test/test.tsx +0 -2
- package/www/capacitor/liveness/verification_config.js +2 -18
- package/www/cordova.js +2 -18
- package/www/react-native/liveness/verification_config.js +2 -18
- package/www/types/liveness/verification_config.d.ts +2 -27
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"start": "expo start --port \"$npm_package_config_metroPort\""
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@regulaforensics/face-sdk": "8.4.
|
|
12
|
-
"@regulaforensics/face-core-basic": "8.4.
|
|
11
|
+
"@regulaforensics/face-sdk": "8.4.1405-rc",
|
|
12
|
+
"@regulaforensics/face-core-basic": "8.4.851-rc",
|
|
13
13
|
"react-native": "0.88.0-rc.0",
|
|
14
14
|
"react-native-fs": "^2.20.0",
|
|
15
15
|
"react-native-image-picker": "^8.2.1",
|
package/ios/Config.swift
CHANGED
|
@@ -152,7 +152,7 @@ public extension LivenessConfiguration {
|
|
|
152
152
|
"skipStep": self.stepSkippingMask.encode(),
|
|
153
153
|
"metadata": self.metadata,
|
|
154
154
|
"person": self.person.encode(),
|
|
155
|
-
"searchFilter": self.searchFilter
|
|
155
|
+
"searchFilter": self.searchFilter?.encode(),
|
|
156
156
|
]
|
|
157
157
|
}
|
|
158
158
|
}
|
|
@@ -178,7 +178,6 @@ public extension LivenessConfiguration {
|
|
|
178
178
|
case("skipStep"): builder.stepSkippingMask = RFSLivenessStepSkip.decode(v)
|
|
179
179
|
case("metadata"): builder.metadata = v as! [String: Any]
|
|
180
180
|
case("personId"): builder.personId = v as! String
|
|
181
|
-
case("externalId"): builder.externalId = v as? String
|
|
182
181
|
case("threshold"): builder.threshold = v as? NSNumber
|
|
183
182
|
default: break
|
|
184
183
|
}
|
|
@@ -203,7 +202,6 @@ public extension LivenessConfiguration {
|
|
|
203
202
|
"skipStep": self.stepSkippingMask.encode(),
|
|
204
203
|
"metadata": self.metadata,
|
|
205
204
|
"personId": self.personId,
|
|
206
|
-
"externalId": self.externalId,
|
|
207
205
|
"threshold": self.threshold,
|
|
208
206
|
]
|
|
209
207
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/face-sdk",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.1405-rc",
|
|
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.4.
|
|
2
|
+
<plugin id="@regulaforensics/face-sdk" version="8.4.1405-rc" 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>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<source url="https://github.com/regulaforensics/podspecs.git" />
|
|
28
28
|
</config>
|
|
29
29
|
<pods>
|
|
30
|
-
<pod name="FaceSDKStage" spec="8.4.
|
|
30
|
+
<pod name="FaceSDKStage" spec="8.4.4993" nospm="true" />
|
|
31
31
|
</pods>
|
|
32
32
|
</podspec>
|
|
33
33
|
</platform>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Pod::Spec.new do |s|
|
|
2
2
|
s.name = 'react-native-face-sdk'
|
|
3
|
-
s.version = '8.4.
|
|
3
|
+
s.version = '8.4.1405-rc'
|
|
4
4
|
s.summary = 'Regula React Native plugin.'
|
|
5
5
|
s.license = 'commercial'
|
|
6
6
|
s.authors = { 'RegulaForensics' => 'support@regulaforensics.com' }
|
|
@@ -9,6 +9,6 @@ Pod::Spec.new do |s|
|
|
|
9
9
|
s.ios.deployment_target = '15.0'
|
|
10
10
|
s.source_files = [ 'ios/*.swift', 'ios/RN*.m' ]
|
|
11
11
|
s.exclude_files = [ 'ios/CDVFaceSDK.swift' ]
|
|
12
|
-
s.dependency 'FaceSDKStage', '8.4.
|
|
12
|
+
s.dependency 'FaceSDKStage', '8.4.4993'
|
|
13
13
|
s.dependency 'React'
|
|
14
14
|
end
|
package/test/json.tsx
CHANGED
|
@@ -249,26 +249,6 @@ export var verificationConfig = {
|
|
|
249
249
|
"personId": "test0",
|
|
250
250
|
"threshold": 0.5,
|
|
251
251
|
};
|
|
252
|
-
export var verificationConfig2 = {
|
|
253
|
-
"copyright": true,
|
|
254
|
-
"cameraSwitchEnabled": false,
|
|
255
|
-
"closeButtonEnabled": true,
|
|
256
|
-
"torchButtonEnabled": false,
|
|
257
|
-
"vibrateOnSteps": true,
|
|
258
|
-
"cameraPositionAndroid": -1,
|
|
259
|
-
"cameraPositionIOS": 1,
|
|
260
|
-
"screenOrientation": [0, 1],
|
|
261
|
-
"locationTrackingEnabled": true,
|
|
262
|
-
"preventScreenRecording": false,
|
|
263
|
-
"attemptsCount": 2,
|
|
264
|
-
"recordingProcess": 0,
|
|
265
|
-
"livenessType": 1,
|
|
266
|
-
"tag": "test",
|
|
267
|
-
"skipStep": [0, 1],
|
|
268
|
-
"metadata": customJson,
|
|
269
|
-
"externalId": "test1",
|
|
270
|
-
"threshold": 0.5,
|
|
271
|
-
};
|
|
272
252
|
export var livenessBackendException = {
|
|
273
253
|
"code": 200,
|
|
274
254
|
"message": "No license",
|
package/test/package-lock.json
CHANGED
package/test/test.tsx
CHANGED
|
@@ -108,7 +108,6 @@ import {
|
|
|
108
108
|
size,
|
|
109
109
|
enrollmentConfig,
|
|
110
110
|
verificationConfig,
|
|
111
|
-
verificationConfig2,
|
|
112
111
|
enrollmentResponse,
|
|
113
112
|
verificationMatchResponse,
|
|
114
113
|
verificationResponse,
|
|
@@ -148,7 +147,6 @@ compare('faceCaptureResponse', faceCaptureResponse, FaceCaptureResponse.fromJson
|
|
|
148
147
|
compare('livenessConfig', livenessConfig, LivenessConfig.fromJson);
|
|
149
148
|
compare('enrollmentConfig', enrollmentConfig, EnrollmentConfig.fromJson);
|
|
150
149
|
compare('verificationConfig', verificationConfig, VerificationConfig.fromJson);
|
|
151
|
-
compare('verificationConfig2', verificationConfig2, VerificationConfig.fromJson);
|
|
152
150
|
compare('livenessBackendException', livenessBackendException, LivenessBackendException.fromJson);
|
|
153
151
|
compare('livenessException', livenessException, LivenessException.fromJson);
|
|
154
152
|
compare('livenessResponse', livenessResponse, LivenessResponse.fromJson);
|
|
@@ -20,10 +20,10 @@ export class VerificationConfig {
|
|
|
20
20
|
skipStep
|
|
21
21
|
metadata
|
|
22
22
|
personId
|
|
23
|
-
externalId
|
|
24
23
|
threshold
|
|
25
24
|
|
|
26
|
-
constructor(options) {
|
|
25
|
+
constructor(personId, options) {
|
|
26
|
+
this.personId = personId
|
|
27
27
|
this.copyright = options?.copyright ?? true
|
|
28
28
|
this.cameraSwitchEnabled = options?.cameraSwitchEnabled ?? false
|
|
29
29
|
this.closeButtonEnabled = options?.closeButtonEnabled ?? true
|
|
@@ -40,23 +40,9 @@ export class VerificationConfig {
|
|
|
40
40
|
this.tag = options?.tag
|
|
41
41
|
this.skipStep = options?.skipStep ?? []
|
|
42
42
|
this.metadata = options?.metadata
|
|
43
|
-
this.personId = options?.personId
|
|
44
|
-
this.externalId = options?.externalId
|
|
45
43
|
this.threshold = options?.threshold
|
|
46
44
|
}
|
|
47
45
|
|
|
48
|
-
static withPersonId(personId, options) {
|
|
49
|
-
const result = new VerificationConfig(options)
|
|
50
|
-
result.personId = personId
|
|
51
|
-
return result
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
static withExternalId(externalId, options) {
|
|
55
|
-
const result = new VerificationConfig(options)
|
|
56
|
-
result.externalId = externalId
|
|
57
|
-
return result
|
|
58
|
-
}
|
|
59
|
-
|
|
60
46
|
static fromJson(jsonObject) {
|
|
61
47
|
if (jsonObject == null) return null
|
|
62
48
|
const result = new VerificationConfig()
|
|
@@ -78,7 +64,6 @@ export class VerificationConfig {
|
|
|
78
64
|
result.skipStep = jsonObject["skipStep"]
|
|
79
65
|
result.metadata = jsonObject["metadata"]
|
|
80
66
|
result.personId = jsonObject["personId"]
|
|
81
|
-
result.externalId = jsonObject["externalId"]
|
|
82
67
|
result.threshold = jsonObject["threshold"]
|
|
83
68
|
|
|
84
69
|
return result
|
|
@@ -103,7 +88,6 @@ export class VerificationConfig {
|
|
|
103
88
|
"skipStep": this.skipStep,
|
|
104
89
|
"metadata": this.metadata,
|
|
105
90
|
"personId": this.personId,
|
|
106
|
-
"externalId": this.externalId,
|
|
107
91
|
"threshold": this.threshold,
|
|
108
92
|
}
|
|
109
93
|
}
|
package/www/cordova.js
CHANGED
|
@@ -3566,10 +3566,10 @@ class VerificationConfig {
|
|
|
3566
3566
|
skipStep
|
|
3567
3567
|
metadata
|
|
3568
3568
|
personId
|
|
3569
|
-
externalId
|
|
3570
3569
|
threshold
|
|
3571
3570
|
|
|
3572
|
-
constructor(options) {
|
|
3571
|
+
constructor(personId, options) {
|
|
3572
|
+
this.personId = personId
|
|
3573
3573
|
this.copyright = options?.copyright ?? true
|
|
3574
3574
|
this.cameraSwitchEnabled = options?.cameraSwitchEnabled ?? false
|
|
3575
3575
|
this.closeButtonEnabled = options?.closeButtonEnabled ?? true
|
|
@@ -3586,23 +3586,9 @@ class VerificationConfig {
|
|
|
3586
3586
|
this.tag = options?.tag
|
|
3587
3587
|
this.skipStep = options?.skipStep ?? []
|
|
3588
3588
|
this.metadata = options?.metadata
|
|
3589
|
-
this.personId = options?.personId
|
|
3590
|
-
this.externalId = options?.externalId
|
|
3591
3589
|
this.threshold = options?.threshold
|
|
3592
3590
|
}
|
|
3593
3591
|
|
|
3594
|
-
static withPersonId(personId, options) {
|
|
3595
|
-
const result = new VerificationConfig(options)
|
|
3596
|
-
result.personId = personId
|
|
3597
|
-
return result
|
|
3598
|
-
}
|
|
3599
|
-
|
|
3600
|
-
static withExternalId(externalId, options) {
|
|
3601
|
-
const result = new VerificationConfig(options)
|
|
3602
|
-
result.externalId = externalId
|
|
3603
|
-
return result
|
|
3604
|
-
}
|
|
3605
|
-
|
|
3606
3592
|
static fromJson(jsonObject) {
|
|
3607
3593
|
if (jsonObject == null) return null
|
|
3608
3594
|
const result = new VerificationConfig()
|
|
@@ -3624,7 +3610,6 @@ class VerificationConfig {
|
|
|
3624
3610
|
result.skipStep = jsonObject["skipStep"]
|
|
3625
3611
|
result.metadata = jsonObject["metadata"]
|
|
3626
3612
|
result.personId = jsonObject["personId"]
|
|
3627
|
-
result.externalId = jsonObject["externalId"]
|
|
3628
3613
|
result.threshold = jsonObject["threshold"]
|
|
3629
3614
|
|
|
3630
3615
|
return result
|
|
@@ -3649,7 +3634,6 @@ class VerificationConfig {
|
|
|
3649
3634
|
"skipStep": this.skipStep,
|
|
3650
3635
|
"metadata": this.metadata,
|
|
3651
3636
|
"personId": this.personId,
|
|
3652
|
-
"externalId": this.externalId,
|
|
3653
3637
|
"threshold": this.threshold,
|
|
3654
3638
|
}
|
|
3655
3639
|
}
|
|
@@ -20,10 +20,10 @@ export class VerificationConfig {
|
|
|
20
20
|
skipStep
|
|
21
21
|
metadata
|
|
22
22
|
personId
|
|
23
|
-
externalId
|
|
24
23
|
threshold
|
|
25
24
|
|
|
26
|
-
constructor(options) {
|
|
25
|
+
constructor(personId, options) {
|
|
26
|
+
this.personId = personId
|
|
27
27
|
this.copyright = options?.copyright ?? true
|
|
28
28
|
this.cameraSwitchEnabled = options?.cameraSwitchEnabled ?? false
|
|
29
29
|
this.closeButtonEnabled = options?.closeButtonEnabled ?? true
|
|
@@ -40,23 +40,9 @@ export class VerificationConfig {
|
|
|
40
40
|
this.tag = options?.tag
|
|
41
41
|
this.skipStep = options?.skipStep ?? []
|
|
42
42
|
this.metadata = options?.metadata
|
|
43
|
-
this.personId = options?.personId
|
|
44
|
-
this.externalId = options?.externalId
|
|
45
43
|
this.threshold = options?.threshold
|
|
46
44
|
}
|
|
47
45
|
|
|
48
|
-
static withPersonId(personId, options) {
|
|
49
|
-
const result = new VerificationConfig(options)
|
|
50
|
-
result.personId = personId
|
|
51
|
-
return result
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
static withExternalId(externalId, options) {
|
|
55
|
-
const result = new VerificationConfig(options)
|
|
56
|
-
result.externalId = externalId
|
|
57
|
-
return result
|
|
58
|
-
}
|
|
59
|
-
|
|
60
46
|
static fromJson(jsonObject) {
|
|
61
47
|
if (jsonObject == null) return null
|
|
62
48
|
const result = new VerificationConfig()
|
|
@@ -78,7 +64,6 @@ export class VerificationConfig {
|
|
|
78
64
|
result.skipStep = jsonObject["skipStep"]
|
|
79
65
|
result.metadata = jsonObject["metadata"]
|
|
80
66
|
result.personId = jsonObject["personId"]
|
|
81
|
-
result.externalId = jsonObject["externalId"]
|
|
82
67
|
result.threshold = jsonObject["threshold"]
|
|
83
68
|
|
|
84
69
|
return result
|
|
@@ -103,7 +88,6 @@ export class VerificationConfig {
|
|
|
103
88
|
"skipStep": this.skipStep,
|
|
104
89
|
"metadata": this.metadata,
|
|
105
90
|
"personId": this.personId,
|
|
106
|
-
"externalId": this.externalId,
|
|
107
91
|
"threshold": this.threshold,
|
|
108
92
|
}
|
|
109
93
|
}
|
|
@@ -89,9 +89,7 @@ export class VerificationConfig {
|
|
|
89
89
|
|
|
90
90
|
threshold?: number
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
static withPersonId(
|
|
92
|
+
constructor(
|
|
95
93
|
personId: string,
|
|
96
94
|
options?: {
|
|
97
95
|
copyright?: boolean
|
|
@@ -112,28 +110,5 @@ export class VerificationConfig {
|
|
|
112
110
|
metadata?: Record<string, any>
|
|
113
111
|
threshold?: number
|
|
114
112
|
}
|
|
115
|
-
)
|
|
116
|
-
|
|
117
|
-
static withExternalId(
|
|
118
|
-
externalId: string,
|
|
119
|
-
options?: {
|
|
120
|
-
copyright?: boolean
|
|
121
|
-
cameraSwitchEnabled?: boolean
|
|
122
|
-
closeButtonEnabled?: boolean
|
|
123
|
-
torchButtonEnabled?: boolean
|
|
124
|
-
vibrateOnSteps?: boolean
|
|
125
|
-
cameraPositionAndroid?: number
|
|
126
|
-
cameraPositionIOS?: CameraPosition
|
|
127
|
-
screenOrientation?: Array<ScreenOrientation>
|
|
128
|
-
locationTrackingEnabled?: boolean
|
|
129
|
-
preventScreenRecording?: boolean
|
|
130
|
-
attemptsCount?: number
|
|
131
|
-
recordingProcess?: RecordingProcess
|
|
132
|
-
livenessType?: LivenessType
|
|
133
|
-
tag?: string
|
|
134
|
-
skipStep?: Array<LivenessSkipStep>
|
|
135
|
-
metadata?: Record<string, any>
|
|
136
|
-
threshold?: number
|
|
137
|
-
}
|
|
138
|
-
): VerificationConfig;
|
|
113
|
+
)
|
|
139
114
|
}
|