@regulaforensics/face-sdk 8.3.997-nightly → 8.3.998-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/RNFaceSDK.podspec +2 -2
- package/android/build.gradle +2 -2
- package/android/cordova.gradle +2 -2
- package/examples/capacitor/package-lock.json +6 -6
- package/examples/capacitor/package.json +2 -2
- package/examples/ionic/package-lock.json +270 -319
- package/examples/ionic/package.json +3 -6
- package/examples/react_native/package-lock.json +249 -200
- package/examples/react_native/package.json +2 -6
- package/ios/Main.swift +23 -24
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/package-lock.json +1 -1
|
@@ -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.998-rc",
|
|
12
|
+
"@regulaforensics/face-core-basic": "8.3.543-rc",
|
|
13
13
|
"react-native": "^0.81.4",
|
|
14
14
|
"react-native-fs": "^2.20.0",
|
|
15
15
|
"react-native-image-picker": "^8.2.1",
|
|
@@ -22,9 +22,5 @@
|
|
|
22
22
|
"expo-custom-assets": "^1.5.0",
|
|
23
23
|
"expo-build-properties": "^1.0.8",
|
|
24
24
|
"typescript": "5.9.2"
|
|
25
|
-
},
|
|
26
|
-
"overrides": {
|
|
27
|
-
"postcss": "^8.5.10",
|
|
28
|
-
"uuid": "^14.0.0"
|
|
29
25
|
}
|
|
30
26
|
}
|
package/ios/Main.swift
CHANGED
|
@@ -19,9 +19,10 @@ func methodCall(_ method: String, _ callback: @escaping Callback) {
|
|
|
19
19
|
case("setEnv"): face.env = argsNullable(0)
|
|
20
20
|
case("getLocale"): callback(face.languageLocaleCode)
|
|
21
21
|
case("setLocale"): face.languageLocaleCode = argsNullable(0)
|
|
22
|
-
case("setLocalizationDictionary"):
|
|
23
|
-
face.localizationHandler = {
|
|
24
|
-
case("setRequestHeaders"):
|
|
22
|
+
case("setLocalizationDictionary"):
|
|
23
|
+
face.localizationHandler = { (argsNullable(0) as [String : String?]?)?[$0] ?? nil }
|
|
24
|
+
case("setRequestHeaders"):
|
|
25
|
+
headers = argsNullable(0)
|
|
25
26
|
face.requestInterceptingDelegate = headersDelegate
|
|
26
27
|
case("setCustomization"): setCustomization(args(0))
|
|
27
28
|
case("isInitialized"): callback(face.isInitialized)
|
|
@@ -38,25 +39,23 @@ func methodCall(_ method: String, _ callback: @escaping Callback) {
|
|
|
38
39
|
callback(generateInitCompletion(success, error))
|
|
39
40
|
})
|
|
40
41
|
case("deinitialize"): face.deinitialize()
|
|
41
|
-
case("startFaceCapture"):
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
42
|
+
case("startFaceCapture"): DispatchQueue.main.async {
|
|
43
|
+
face.presentFaceCaptureViewController(
|
|
44
|
+
from: rootViewController()!,
|
|
45
|
+
animated: true,
|
|
46
|
+
configuration: FaceCaptureConfiguration.decode(argsNullable(0)),
|
|
47
|
+
onCapture: { callback($0.encode()) },
|
|
48
|
+
completion: nil)
|
|
49
|
+
}
|
|
50
50
|
case("stopFaceCapture"): face.stopFaceCaptureViewController()
|
|
51
|
-
case("startLiveness"):
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
51
|
+
case("startLiveness"): DispatchQueue.main.async {
|
|
52
|
+
face.startLiveness(
|
|
53
|
+
from: rootViewController()!,
|
|
54
|
+
animated: true,
|
|
55
|
+
configuration: LivenessConfiguration.decode(argsNullable(0)),
|
|
56
|
+
onLiveness: { callback($0.encode()) },
|
|
57
|
+
completion: nil)
|
|
58
|
+
}
|
|
60
59
|
case("stopLiveness"): face.stopLivenessProcessing()
|
|
61
60
|
case("matchFaces"): face.matchFaces(
|
|
62
61
|
MatchFacesRequest.decode(args(0)),
|
|
@@ -73,8 +72,8 @@ func methodCall(_ method: String, _ callback: @escaping Callback) {
|
|
|
73
72
|
|
|
74
73
|
case("createPerson"): db.createPerson(
|
|
75
74
|
name: args(0),
|
|
76
|
-
metadata: argsNullable(
|
|
77
|
-
groupIds: argsNullable(
|
|
75
|
+
metadata: argsNullable(1),
|
|
76
|
+
groupIds: argsNullable(2),
|
|
78
77
|
completion: { callback($0.encode()) }
|
|
79
78
|
)
|
|
80
79
|
case("updatePerson"): let json = args(0) as [String: Any]
|
|
@@ -117,7 +116,7 @@ func methodCall(_ method: String, _ callback: @escaping Callback) {
|
|
|
117
116
|
})
|
|
118
117
|
case("editPersonsInGroup"): db.editGroupPersons(
|
|
119
118
|
groupId: args(0),
|
|
120
|
-
request: PersonDatabase.EditGroupPersonsRequest.decode(args(
|
|
119
|
+
request: PersonDatabase.EditGroupPersonsRequest.decode(args(0)),
|
|
121
120
|
completion: { callback($0.encode()) })
|
|
122
121
|
case("deleteGroup"): db.deleteGroup(groupId: args(0), completion: { callback($0.encode()) })
|
|
123
122
|
case("getGroup"): db.getGroups(groupId: args(0), completion: { callback($0.encode()) })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/face-sdk",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.998-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.3.
|
|
2
|
+
<plugin id="@regulaforensics/face-sdk" version="8.3.998-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/CocoaPods/Specs.git" />
|
|
28
28
|
</config>
|
|
29
29
|
<pods>
|
|
30
|
-
<pod name="
|
|
30
|
+
<pod name="FaceSDKStage" spec="8.3.4184" />
|
|
31
31
|
</pods>
|
|
32
32
|
</podspec>
|
|
33
33
|
</platform>
|