@regulaforensics/face-sdk 8.2.990-nightly → 8.2.995-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.
@@ -8,8 +8,8 @@
8
8
  "start": "expo start"
9
9
  },
10
10
  "dependencies": {
11
- "@regulaforensics/face-sdk": "8.2.990-nightly",
12
- "@regulaforensics/face-core-basic": "8.3.538-nightly",
11
+ "@regulaforensics/face-sdk": "8.2.995-nightly",
12
+ "@regulaforensics/face-core-basic": "8.3.541-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",
@@ -22,5 +22,9 @@
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"
25
29
  }
26
30
  }
package/ios/Main.swift CHANGED
@@ -19,10 +19,9 @@ 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 = { (argsNullable(0) as [String : String?]?)?[$0] ?? nil }
24
- case("setRequestHeaders"):
25
- headers = argsNullable(0)
22
+ case("setLocalizationDictionary"): let localization = argsNullable(0) as [String : String?]?
23
+ face.localizationHandler = { localization?[$0] ?? nil }
24
+ case("setRequestHeaders"): headers = argsNullable(0)
26
25
  face.requestInterceptingDelegate = headersDelegate
27
26
  case("setCustomization"): setCustomization(args(0))
28
27
  case("isInitialized"): callback(face.isInitialized)
@@ -39,23 +38,25 @@ func methodCall(_ method: String, _ callback: @escaping Callback) {
39
38
  callback(generateInitCompletion(success, error))
40
39
  })
41
40
  case("deinitialize"): face.deinitialize()
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
- }
41
+ case("startFaceCapture"): let config = FaceCaptureConfiguration.decode(argsNullable(0))
42
+ DispatchQueue.main.async {
43
+ face.presentFaceCaptureViewController(
44
+ from: rootViewController()!,
45
+ animated: true,
46
+ configuration: config,
47
+ onCapture: { callback($0.encode()) },
48
+ completion: nil)
49
+ }
50
50
  case("stopFaceCapture"): face.stopFaceCaptureViewController()
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
- }
51
+ case("startLiveness"): let config = LivenessConfiguration.decode(argsNullable(0))
52
+ DispatchQueue.main.async {
53
+ face.startLiveness(
54
+ from: rootViewController()!,
55
+ animated: true,
56
+ configuration: config,
57
+ onLiveness: { callback($0.encode()) },
58
+ completion: nil)
59
+ }
59
60
  case("stopLiveness"): face.stopLivenessProcessing()
60
61
  case("matchFaces"): face.matchFaces(
61
62
  MatchFacesRequest.decode(args(0)),
@@ -72,8 +73,8 @@ func methodCall(_ method: String, _ callback: @escaping Callback) {
72
73
 
73
74
  case("createPerson"): db.createPerson(
74
75
  name: args(0),
75
- metadata: argsNullable(1),
76
- groupIds: argsNullable(2),
76
+ metadata: argsNullable(2),
77
+ groupIds: argsNullable(1),
77
78
  completion: { callback($0.encode()) }
78
79
  )
79
80
  case("updatePerson"): let json = args(0) as [String: Any]
@@ -116,7 +117,7 @@ func methodCall(_ method: String, _ callback: @escaping Callback) {
116
117
  })
117
118
  case("editPersonsInGroup"): db.editGroupPersons(
118
119
  groupId: args(0),
119
- request: PersonDatabase.EditGroupPersonsRequest.decode(args(0)),
120
+ request: PersonDatabase.EditGroupPersonsRequest.decode(args(1)),
120
121
  completion: { callback($0.encode()) })
121
122
  case("deleteGroup"): db.deleteGroup(groupId: args(0), completion: { callback($0.encode()) })
122
123
  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.2.990-nightly",
3
+ "version": "8.2.995-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.2.990-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/face-sdk" version="8.2.995-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>
@@ -27,7 +27,7 @@
27
27
  <source url="https://github.com/CocoaPods/Specs.git" />
28
28
  </config>
29
29
  <pods>
30
- <pod name="FaceSDKNightly" spec="8.3.4167" />
30
+ <pod name="FaceSDKNightly" spec="8.3.4179" />
31
31
  </pods>
32
32
  </podspec>
33
33
  </platform>