@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.
@@ -8,8 +8,8 @@
8
8
  "start": "expo start"
9
9
  },
10
10
  "dependencies": {
11
- "@regulaforensics/face-sdk": "8.3.997-nightly",
12
- "@regulaforensics/face-core-basic": "8.3.542-nightly",
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"): let localization = argsNullable(0) as [String : String?]?
23
- face.localizationHandler = { localization?[$0] ?? nil }
24
- case("setRequestHeaders"): headers = argsNullable(0)
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"): 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
- }
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"): 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
- }
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(2),
77
- groupIds: argsNullable(1),
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(1)),
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.997-nightly",
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.997-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
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="FaceSDKNightly" spec="8.3.4183" />
30
+ <pod name="FaceSDKStage" spec="8.3.4184" />
31
31
  </pods>
32
32
  </podspec>
33
33
  </platform>
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "..": {
15
15
  "name": "@regulaforensics/face-sdk",
16
- "version": "1.0.0",
16
+ "version": "8.3.998-rc",
17
17
  "dev": true,
18
18
  "license": "commercial"
19
19
  },