@regulaforensics/face-sdk 8.3.1107-rc → 8.3.1111-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 +2 -2
- package/android/cordova.gradle +2 -2
- package/android/src/main/java/com/regula/plugin/facesdk/Config.kt +0 -91
- package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +3 -106
- package/android/src/main/java/com/regula/plugin/facesdk/Main.kt +1 -39
- package/android/src/main/java/com/regula/plugin/facesdk/Utils.kt +1 -0
- package/app.plugin.js +42 -0
- package/examples/capacitor/ios/App/Podfile +2 -1
- package/examples/capacitor/package.json +2 -2
- package/examples/ionic/package-lock.json +465 -472
- package/examples/ionic/package.json +14 -13
- package/examples/react_native/app.config.ts +1 -0
- package/examples/react_native/package-lock.json +11 -11
- package/examples/react_native/package.json +2 -2
- package/ios/Config.swift +1 -109
- package/ios/Decoder.swift +3 -71
- package/ios/Main.swift +4 -24
- package/package.json +4 -1
- package/plugin.xml +3 -3
- package/test/json.tsx +57 -134
- package/test/package-lock.json +1 -1
- package/test/test.tsx +60 -68
- package/www/capacitor/customization/customization_images.js +0 -40
- package/www/capacitor/index.js +12 -33
- package/www/capacitor/liveness/liveness_config.js +0 -1
- package/www/capacitor/liveness/liveness_exception.js +5 -6
- package/www/capacitor/liveness/liveness_notification.js +0 -2
- package/www/cordova.js +106 -606
- package/www/react-native/customization/customization_images.js +0 -40
- package/www/react-native/index.js +12 -33
- package/www/react-native/liveness/liveness_config.js +0 -1
- package/www/react-native/liveness/liveness_exception.js +5 -6
- package/www/react-native/liveness/liveness_notification.js +0 -2
- package/www/types/customization/customization_images.d.ts +0 -5
- package/www/types/index.d.ts +3 -28
- package/www/types/liveness/liveness_config.d.ts +0 -1
- package/www/types/liveness/liveness_exception.d.ts +0 -1
- package/www/types/liveness/liveness_notification.d.ts +0 -2
- package/www/capacitor/liveness/enrollment_config.js +0 -102
- package/www/capacitor/liveness/enrollment_request.js +0 -34
- package/www/capacitor/liveness/enrollment_response.js +0 -26
- package/www/capacitor/liveness/error_response.js +0 -21
- package/www/capacitor/liveness/verification_config.js +0 -98
- package/www/capacitor/liveness/verification_response.js +0 -27
- package/www/capacitor/liveness/verify_match_response.js +0 -21
- package/www/react-native/liveness/enrollment_config.js +0 -102
- package/www/react-native/liveness/enrollment_request.js +0 -34
- package/www/react-native/liveness/enrollment_response.js +0 -26
- package/www/react-native/liveness/error_response.js +0 -21
- package/www/react-native/liveness/verification_config.js +0 -98
- package/www/react-native/liveness/verification_response.js +0 -27
- package/www/react-native/liveness/verify_match_response.js +0 -21
- package/www/types/liveness/enrollment_config.d.ts +0 -97
- package/www/types/liveness/enrollment_request.d.ts +0 -6
- package/www/types/liveness/enrollment_response.d.ts +0 -9
- package/www/types/liveness/error_response.d.ts +0 -6
- package/www/types/liveness/verification_config.d.ts +0 -95
- package/www/types/liveness/verification_response.d.ts +0 -10
- package/www/types/liveness/verify_match_response.d.ts +0 -6
|
@@ -7,21 +7,21 @@
|
|
|
7
7
|
"postinstall": "patch-package"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@angular-devkit/build-angular": "^21.2.
|
|
11
|
-
"@angular/cli": "^21.2.
|
|
12
|
-
"@angular/common": "^21.2.
|
|
13
|
-
"@angular/compiler-cli": "^21.2.
|
|
14
|
-
"@angular/core": "^21.2.
|
|
15
|
-
"@angular/forms": "^21.2.
|
|
16
|
-
"@angular/platform-browser-dynamic": "^21.2.
|
|
17
|
-
"@angular/router": "^21.2.
|
|
18
|
-
"@ionic/angular": "^8.8.
|
|
10
|
+
"@angular-devkit/build-angular": "^21.2.16",
|
|
11
|
+
"@angular/cli": "^21.2.16",
|
|
12
|
+
"@angular/common": "^21.2.17",
|
|
13
|
+
"@angular/compiler-cli": "^21.2.17",
|
|
14
|
+
"@angular/core": "^21.2.17",
|
|
15
|
+
"@angular/forms": "^21.2.17",
|
|
16
|
+
"@angular/platform-browser-dynamic": "^21.2.17",
|
|
17
|
+
"@angular/router": "^21.2.17",
|
|
18
|
+
"@ionic/angular": "^8.8.11",
|
|
19
19
|
"@ionic/cordova-builders": "^12.3.0",
|
|
20
20
|
"@awesome-cordova-plugins/camera": "^8.1.0",
|
|
21
21
|
"@awesome-cordova-plugins/dialogs": "^8.1.0",
|
|
22
22
|
"@awesome-cordova-plugins/file": "^8.1.0",
|
|
23
|
-
"@regulaforensics/face-sdk": "8.3.
|
|
24
|
-
"@regulaforensics/face-core-basic": "8.3.
|
|
23
|
+
"@regulaforensics/face-sdk": "8.3.1111-nightly",
|
|
24
|
+
"@regulaforensics/face-core-basic": "8.3.607-nightly",
|
|
25
25
|
"cordova-android": "^14.0.1",
|
|
26
26
|
"cordova-ios": "^8.0.0",
|
|
27
27
|
"cordova-plugin-camera": "^8.0.0",
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
"overrides": {
|
|
34
34
|
"ajv": "^8.18.0",
|
|
35
35
|
"serialize-javascript": "^7.0.4",
|
|
36
|
-
"@angular/compiler": "^21.2.4",
|
|
37
36
|
"undici": "^7.24.0",
|
|
38
37
|
"picomatch": "^4.0.4",
|
|
39
38
|
"postcss": "^8.5.10",
|
|
@@ -41,7 +40,9 @@
|
|
|
41
40
|
"vite": "^7.3.2",
|
|
42
41
|
"webpack-dev-server": "^5.2.4",
|
|
43
42
|
"@babel/core": "^7.29.0",
|
|
44
|
-
"esbuild": "^0.28.1"
|
|
43
|
+
"esbuild": "^0.28.1",
|
|
44
|
+
"http-proxy-middleware": "^3.0.7",
|
|
45
|
+
"piscina": "^5.2.0"
|
|
45
46
|
},
|
|
46
47
|
"cordova": {
|
|
47
48
|
"plugins": {
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
"name": "face-sdk",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@react-native/metro-config": "^0.81.1",
|
|
10
|
-
"@regulaforensics/face-core-basic": "
|
|
11
|
-
"@regulaforensics/face-sdk": "
|
|
10
|
+
"@regulaforensics/face-core-basic": "8.2.521",
|
|
11
|
+
"@regulaforensics/face-sdk": "8.2.1084",
|
|
12
12
|
"@types/react": "^19.1.13",
|
|
13
13
|
"expo": "^54.0.7",
|
|
14
14
|
"expo-build-properties": "^1.0.8",
|
|
@@ -2852,15 +2852,15 @@
|
|
|
2852
2852
|
}
|
|
2853
2853
|
},
|
|
2854
2854
|
"node_modules/@regulaforensics/face-core-basic": {
|
|
2855
|
-
"version": "
|
|
2856
|
-
"resolved": "https://registry.npmjs.org/@regulaforensics/face-core-basic/-/face-core-basic-
|
|
2857
|
-
"integrity": "sha512-
|
|
2855
|
+
"version": "8.2.521",
|
|
2856
|
+
"resolved": "https://registry.npmjs.org/@regulaforensics/face-core-basic/-/face-core-basic-8.2.521.tgz",
|
|
2857
|
+
"integrity": "sha512-VMV1rLbDrS2Abx3r+mXa6VC+2DWuRIYi4cmkI8WjLqKyGDSqi6c0MhPU6o/lB4YuX3f+DX/Gxc37U0ShgW/8NQ==",
|
|
2858
2858
|
"license": "commercial"
|
|
2859
2859
|
},
|
|
2860
2860
|
"node_modules/@regulaforensics/face-sdk": {
|
|
2861
|
-
"version": "
|
|
2862
|
-
"resolved": "https://registry.npmjs.org/@regulaforensics/face-sdk/-/face-sdk-
|
|
2863
|
-
"integrity": "sha512-
|
|
2861
|
+
"version": "8.2.1084",
|
|
2862
|
+
"resolved": "https://registry.npmjs.org/@regulaforensics/face-sdk/-/face-sdk-8.2.1084.tgz",
|
|
2863
|
+
"integrity": "sha512-FeRZHyn0hlJzy32bapu9OyBeSp3LlgTaYORLLQhQoNYbqQI21geNJYWid1GDP0sccwJ0r1IFrZN65lTsCgAPPA==",
|
|
2864
2864
|
"license": "commercial"
|
|
2865
2865
|
},
|
|
2866
2866
|
"node_modules/@sinclair/typebox": {
|
|
@@ -7835,9 +7835,9 @@
|
|
|
7835
7835
|
}
|
|
7836
7836
|
},
|
|
7837
7837
|
"node_modules/undici": {
|
|
7838
|
-
"version": "6.
|
|
7839
|
-
"resolved": "https://registry.npmjs.org/undici/-/undici-6.
|
|
7840
|
-
"integrity": "sha512-
|
|
7838
|
+
"version": "6.27.0",
|
|
7839
|
+
"resolved": "https://registry.npmjs.org/undici/-/undici-6.27.0.tgz",
|
|
7840
|
+
"integrity": "sha512-YmfV3YnEDzXRC5lZ2jWtWWHKGUm1zIt8AhesR1tens+HTNv+YZlN/dp6G727LOvMJ8xjP9Be7Y2Sdr96LDm+pg==",
|
|
7841
7841
|
"license": "MIT",
|
|
7842
7842
|
"engines": {
|
|
7843
7843
|
"node": ">=18.17"
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"start": "expo start"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@regulaforensics/face-sdk": "8.3.
|
|
12
|
-
"@regulaforensics/face-core-basic": "8.3.
|
|
11
|
+
"@regulaforensics/face-sdk": "8.3.1111-nightly",
|
|
12
|
+
"@regulaforensics/face-core-basic": "8.3.607-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/ios/Config.swift
CHANGED
|
@@ -63,7 +63,7 @@ public extension FaceCaptureConfiguration {
|
|
|
63
63
|
public extension LivenessConfiguration {
|
|
64
64
|
static func decode(_ it: Any?) -> Self? {
|
|
65
65
|
guard let it = it as? [String: Any] else { return nil }
|
|
66
|
-
return Self
|
|
66
|
+
return Self(builder: { builder in
|
|
67
67
|
for (k, v) in it {
|
|
68
68
|
switch k {
|
|
69
69
|
case("copyright"): builder.isCopyright = v as! Bool
|
|
@@ -107,114 +107,6 @@ public extension LivenessConfiguration {
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
public extension EnrollmentConfiguration {
|
|
111
|
-
static func decode2(_ it: Any?) -> Self? {
|
|
112
|
-
guard let it = it as? [String: Any] else { return nil }
|
|
113
|
-
return Self.init(builderBlock: { builder in
|
|
114
|
-
for (k, v) in it {
|
|
115
|
-
switch k {
|
|
116
|
-
case("copyright"): builder.isCopyright = v as! Bool
|
|
117
|
-
case("cameraSwitchEnabled"): builder.isCameraSwitchButtonEnabled = v as! Bool
|
|
118
|
-
case("closeButtonEnabled"): builder.isCloseButtonEnabled = v as! Bool
|
|
119
|
-
case("torchButtonEnabled"): builder.isTorchButtonEnabled = v as! Bool
|
|
120
|
-
case("vibrateOnSteps"): builder.vibrateOnSteps = v as! Bool
|
|
121
|
-
case("cameraPositionIOS"): builder.cameraPosition = CameraPosition(rawValue: v as! Int)!
|
|
122
|
-
case("attemptsCount"): builder.attemptsCount = v as! Int
|
|
123
|
-
case("locationTrackingEnabled"): builder.isLocationTrackingEnabled = v as! Bool
|
|
124
|
-
case("preventScreenRecording"): builder.isPreventScreenRecordingEnable = v as! Bool
|
|
125
|
-
case("recordingProcess"): builder.recordingProcess = RecordingProcess(rawValue: v as! Int)!
|
|
126
|
-
case("livenessType"): builder.livenessType = LivenessType(rawValue: v as! Int)!
|
|
127
|
-
case("screenOrientation"): builder.screenOrientation = RFSScreenOrientation.decode(v)
|
|
128
|
-
case("tag"): builder.tag = v as? String
|
|
129
|
-
case("externalId"): builder.externalId = v as! String
|
|
130
|
-
case("groupId"): builder.groupId = v as? String
|
|
131
|
-
case("checkDuplicatesEnabled"): builder.checkDuplicatesEnabled = v as! NSNumber
|
|
132
|
-
case("duplicatesThreshold"): builder.duplicatesThreshold = v as? NSNumber
|
|
133
|
-
case("skipStep"): builder.stepSkippingMask = RFSLivenessStepSkip.decode(v)
|
|
134
|
-
case("metadata"): builder.metadata = v as! [String: Any]
|
|
135
|
-
default: break
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
})
|
|
139
|
-
}
|
|
140
|
-
func encode2() -> [String: Any?] {
|
|
141
|
-
return [
|
|
142
|
-
"copyright": self.isCopyright,
|
|
143
|
-
"cameraSwitchEnabled": self.isCameraSwitchButtonEnabled,
|
|
144
|
-
"closeButtonEnabled": self.isCloseButtonEnabled,
|
|
145
|
-
"torchButtonEnabled": self.isTorchButtonEnabled,
|
|
146
|
-
"vibrateOnSteps": self.vibrateOnSteps,
|
|
147
|
-
"cameraPositionIOS": self.cameraPosition.rawValue,
|
|
148
|
-
"attemptsCount": self.attemptsCount,
|
|
149
|
-
"locationTrackingEnabled": self.isLocationTrackingEnabled,
|
|
150
|
-
"preventScreenRecording": self.isPreventScreenRecordingEnable,
|
|
151
|
-
"recordingProcess": self.recordingProcess.rawValue,
|
|
152
|
-
"livenessType": self.livenessType.rawValue,
|
|
153
|
-
"screenOrientation": self.screenOrientation.encode(),
|
|
154
|
-
"tag": self.tag,
|
|
155
|
-
"externalId": self.externalId,
|
|
156
|
-
"groupId": self.groupId,
|
|
157
|
-
"checkDuplicatesEnabled": self.checkDuplicatesEnabled,
|
|
158
|
-
"duplicatesThreshold": self.duplicatesThreshold,
|
|
159
|
-
"skipStep": self.stepSkippingMask.encode(),
|
|
160
|
-
"metadata": self.metadata,
|
|
161
|
-
]
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
public extension VerificationConfiguration {
|
|
166
|
-
static func decode2(_ it: Any?) -> Self? {
|
|
167
|
-
guard let it = it as? [String: Any] else { return nil }
|
|
168
|
-
return Self.init(builderBlock: { builder in
|
|
169
|
-
for (k, v) in it {
|
|
170
|
-
switch k {
|
|
171
|
-
case("copyright"): builder.isCopyright = v as! Bool
|
|
172
|
-
case("cameraSwitchEnabled"): builder.isCameraSwitchButtonEnabled = v as! Bool
|
|
173
|
-
case("closeButtonEnabled"): builder.isCloseButtonEnabled = v as! Bool
|
|
174
|
-
case("torchButtonEnabled"): builder.isTorchButtonEnabled = v as! Bool
|
|
175
|
-
case("vibrateOnSteps"): builder.vibrateOnSteps = v as! Bool
|
|
176
|
-
case("cameraPositionIOS"): builder.cameraPosition = CameraPosition(rawValue: v as! Int)!
|
|
177
|
-
case("attemptsCount"): builder.attemptsCount = v as! Int
|
|
178
|
-
case("locationTrackingEnabled"): builder.isLocationTrackingEnabled = v as! Bool
|
|
179
|
-
case("preventScreenRecording"): builder.isPreventScreenRecordingEnable = v as! Bool
|
|
180
|
-
case("recordingProcess"): builder.recordingProcess = RecordingProcess(rawValue: v as! Int)!
|
|
181
|
-
case("livenessType"): builder.livenessType = LivenessType(rawValue: v as! Int)!
|
|
182
|
-
case("screenOrientation"): builder.screenOrientation = RFSScreenOrientation.decode(v)
|
|
183
|
-
case("tag"): builder.tag = v as? String
|
|
184
|
-
case("personId"): builder.personId = v as! String
|
|
185
|
-
case("groupId"): builder.groupId = v as? String
|
|
186
|
-
case("threshold"): builder.threshold = v as? NSNumber
|
|
187
|
-
case("skipStep"): builder.stepSkippingMask = RFSLivenessStepSkip.decode(v)
|
|
188
|
-
case("metadata"): builder.metadata = v as! [String: Any]
|
|
189
|
-
default: break
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
})
|
|
193
|
-
}
|
|
194
|
-
func encode2() -> [String: Any?] {
|
|
195
|
-
return [
|
|
196
|
-
"copyright": self.isCopyright,
|
|
197
|
-
"cameraSwitchEnabled": self.isCameraSwitchButtonEnabled,
|
|
198
|
-
"closeButtonEnabled": self.isCloseButtonEnabled,
|
|
199
|
-
"torchButtonEnabled": self.isTorchButtonEnabled,
|
|
200
|
-
"vibrateOnSteps": self.vibrateOnSteps,
|
|
201
|
-
"cameraPositionIOS": self.cameraPosition.rawValue,
|
|
202
|
-
"attemptsCount": self.attemptsCount,
|
|
203
|
-
"locationTrackingEnabled": self.isLocationTrackingEnabled,
|
|
204
|
-
"preventScreenRecording": self.isPreventScreenRecordingEnable,
|
|
205
|
-
"recordingProcess": self.recordingProcess.rawValue,
|
|
206
|
-
"livenessType": self.livenessType.rawValue,
|
|
207
|
-
"screenOrientation": self.screenOrientation.encode(),
|
|
208
|
-
"tag": self.tag,
|
|
209
|
-
"personId": self.personId,
|
|
210
|
-
"groupId": self.groupId,
|
|
211
|
-
"threshold": self.threshold,
|
|
212
|
-
"skipStep": self.stepSkippingMask.encode(),
|
|
213
|
-
"metadata": self.metadata,
|
|
214
|
-
]
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
110
|
public extension MatchFacesConfiguration {
|
|
219
111
|
static func decode(_ it: Any?) -> Self? {
|
|
220
112
|
guard let it = it as? [String: Any] else { return nil }
|
package/ios/Decoder.swift
CHANGED
|
@@ -112,17 +112,17 @@ public extension LivenessResponse {
|
|
|
112
112
|
static func decode(_ it: Any?) -> Self {
|
|
113
113
|
let it = it as! [String: Any]
|
|
114
114
|
let alloc = LivenessResponse.allocate()
|
|
115
|
-
let sel = "initWithTag:transactionId:estimatedAge:status:image:error:
|
|
115
|
+
let sel = "initWithTag:transactionId:estimatedAge:status:image:error:".selector()
|
|
116
116
|
return privateInit(alloc, sel, (@convention(c)(
|
|
117
117
|
AnyObject, Selector,
|
|
118
|
-
Any?, Any?, Any?, Int, Any?, Any
|
|
118
|
+
Any?, Any?, Any?, Int, Any?, Any?) -> Unmanaged<AnyObject>?).self, { f in f(
|
|
119
119
|
alloc, sel,
|
|
120
120
|
it["tag"],
|
|
121
121
|
it["transactionId"],
|
|
122
122
|
it["estimatedAge"],
|
|
123
123
|
it["liveness"] as! Int,
|
|
124
124
|
UIImage.decode(it["image"]),
|
|
125
|
-
nil
|
|
125
|
+
nil
|
|
126
126
|
)})
|
|
127
127
|
}
|
|
128
128
|
func encode() -> [String: Any?] {
|
|
@@ -144,74 +144,6 @@ func generateLivenessNotification(_ status: LivenessProcessStatus, _ result: Liv
|
|
|
144
144
|
]
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
public extension ErrorResponse {
|
|
148
|
-
static func decode(_ it: Any?) -> ErrorResponse? {
|
|
149
|
-
guard let it = it as? [String: Any] else { return nil }
|
|
150
|
-
let result = ErrorResponse.emptyInit() as ErrorResponse
|
|
151
|
-
result.setValue(it["code"] as Any?, forKey: "code")
|
|
152
|
-
result.setValue(it["message"] as Any?, forKey: "message")
|
|
153
|
-
return result
|
|
154
|
-
}
|
|
155
|
-
func encode() -> [String: Any?] {
|
|
156
|
-
return [
|
|
157
|
-
"code": self.code,
|
|
158
|
-
"message": self.message,
|
|
159
|
-
]
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
public extension EnrollmentResponse {
|
|
164
|
-
static func decode(_ it: Any?) -> EnrollmentResponse? {
|
|
165
|
-
guard let it = it as? [String: Any] else { return nil }
|
|
166
|
-
let result = EnrollmentResponse.emptyInit() as EnrollmentResponse
|
|
167
|
-
result.setValue(ErrorResponse.decode(it["error"]), forKey: "error")
|
|
168
|
-
result.setValue(it["personId"] as Any?, forKey: "personId")
|
|
169
|
-
result.setValue(it["externalId"] as Any?, forKey: "externalId")
|
|
170
|
-
return result
|
|
171
|
-
}
|
|
172
|
-
func encode() -> [String: Any?] {
|
|
173
|
-
return [
|
|
174
|
-
"error": self.error?.encode(),
|
|
175
|
-
"personId": self.personId,
|
|
176
|
-
"externalId": self.externalId,
|
|
177
|
-
]
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
public extension VerificationMatchResponse {
|
|
182
|
-
static func decode(_ it: Any?) -> VerificationMatchResponse? {
|
|
183
|
-
guard let it = it as? [String: Any] else { return nil }
|
|
184
|
-
let result = VerificationMatchResponse.emptyInit() as VerificationMatchResponse
|
|
185
|
-
result.setValue(it["passed"] as Any?, forKey: "passed")
|
|
186
|
-
result.setValue(it["similarity"] as Any?, forKey: "similarity")
|
|
187
|
-
return result
|
|
188
|
-
}
|
|
189
|
-
func encode() -> [String: Any?] {
|
|
190
|
-
return [
|
|
191
|
-
"passed": self.passed,
|
|
192
|
-
"similarity": self.similarity,
|
|
193
|
-
]
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
public extension VerificationResponse {
|
|
198
|
-
static func decode(_ it: Any?) -> VerificationResponse? {
|
|
199
|
-
guard let it = it as? [String: Any] else { return nil }
|
|
200
|
-
let result = VerificationResponse.emptyInit() as VerificationResponse
|
|
201
|
-
result.setValue(VerificationMatchResponse.decode(it["match"]), forKey: "match")
|
|
202
|
-
result.setValue(ErrorResponse.decode(it["error"]), forKey: "error")
|
|
203
|
-
result.setValue(it["passed"] as Any?, forKey: "passed")
|
|
204
|
-
return result
|
|
205
|
-
}
|
|
206
|
-
func encode() -> [String: Any?] {
|
|
207
|
-
return [
|
|
208
|
-
"match": self.match?.encode(),
|
|
209
|
-
"error": self.error?.encode(),
|
|
210
|
-
"passed": self.passed,
|
|
211
|
-
]
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
147
|
// MARK: - MatchFacesRequest
|
|
216
148
|
|
|
217
149
|
public extension MatchFacesImage {
|
package/ios/Main.swift
CHANGED
|
@@ -44,7 +44,8 @@ func methodCall(_ method: String, _ callback: @escaping Callback) {
|
|
|
44
44
|
from: rootViewController()!,
|
|
45
45
|
animated: true,
|
|
46
46
|
configuration: config,
|
|
47
|
-
onCapture: { callback($0.encode()) }
|
|
47
|
+
onCapture: { callback($0.encode()) },
|
|
48
|
+
completion: nil)
|
|
48
49
|
}
|
|
49
50
|
case("stopFaceCapture"): face.stopFaceCaptureViewController()
|
|
50
51
|
case("startLiveness"): let config = LivenessConfiguration.decode(argsNullable(0))
|
|
@@ -53,29 +54,8 @@ func methodCall(_ method: String, _ callback: @escaping Callback) {
|
|
|
53
54
|
from: rootViewController()!,
|
|
54
55
|
animated: true,
|
|
55
56
|
configuration: config,
|
|
56
|
-
onLiveness: { callback($0.encode()) }
|
|
57
|
-
|
|
58
|
-
case("startEnrollment"): let config = EnrollmentConfiguration.decode(argsNullable(0))
|
|
59
|
-
DispatchQueue.main.async {
|
|
60
|
-
face.startEnrollment(
|
|
61
|
-
from: rootViewController()!,
|
|
62
|
-
animated: true,
|
|
63
|
-
configuration: config,
|
|
64
|
-
onEnrollment: { callback([
|
|
65
|
-
"livenessResponse": $0.encode(),
|
|
66
|
-
"enrollmentResponse": $1?.encode()
|
|
67
|
-
]) })
|
|
68
|
-
}
|
|
69
|
-
case("startVerification"): let config = VerificationConfiguration.decode(argsNullable(0))
|
|
70
|
-
DispatchQueue.main.async {
|
|
71
|
-
face.startVerification(
|
|
72
|
-
from: rootViewController()!,
|
|
73
|
-
animated: true,
|
|
74
|
-
configuration: config,
|
|
75
|
-
onVerification: { callback([
|
|
76
|
-
"livenessResponse": $0.encode(),
|
|
77
|
-
"verificationResponse": $1?.encode()
|
|
78
|
-
]) })
|
|
57
|
+
onLiveness: { callback($0.encode()) },
|
|
58
|
+
completion: nil)
|
|
79
59
|
}
|
|
80
60
|
case("stopLiveness"): face.stopLivenessProcessing()
|
|
81
61
|
case("matchFaces"): face.matchFaces(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/face-sdk",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.1111-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",
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
"android"
|
|
13
13
|
]
|
|
14
14
|
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@expo/config-plugins": "^10.0.0"
|
|
17
|
+
},
|
|
15
18
|
"keywords": [
|
|
16
19
|
"react",
|
|
17
20
|
"react-native",
|
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.3.
|
|
2
|
+
<plugin id="@regulaforensics/face-sdk" version="8.3.1111-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>
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
<source-file src="ios/Utils.swift" />
|
|
25
25
|
<podspec>
|
|
26
26
|
<config>
|
|
27
|
-
<source url="https://github.com/
|
|
27
|
+
<source url="https://github.com/regulaforensics/podspecs.git" />
|
|
28
28
|
</config>
|
|
29
29
|
<pods>
|
|
30
|
-
<pod name="
|
|
30
|
+
<pod name="FaceSDKNightly" spec="8.3.4503" />
|
|
31
31
|
</pods>
|
|
32
32
|
</podspec>
|
|
33
33
|
</platform>
|