@regulaforensics/face-sdk 8.4.1352-beta → 8.4.1353-beta

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 CHANGED
@@ -5,7 +5,7 @@ source = File.join(__dir__, 'ios')
5
5
 
6
6
  Pod::Spec.new do |s|
7
7
  s.name = 'RNFaceSDK'
8
- s.version = '8.4.1352-beta'
8
+ s.version = '8.4.1353-beta'
9
9
  s.summary = package['description']
10
10
  s.license = package['license']
11
11
 
@@ -6,7 +6,7 @@
6
6
  "android": "scripts/android.sh"
7
7
  },
8
8
  "dependencies": {
9
- "@regulaforensics/face-sdk": "8.4.1352-beta",
9
+ "@regulaforensics/face-sdk": "8.4.1353-beta",
10
10
  "@regulaforensics/face-core-basic": "8.3.683",
11
11
  "@awesome-cordova-plugins/file": "^8.1.0",
12
12
  "@awesome-cordova-plugins/camera": "^8.1.0",
@@ -20,7 +20,7 @@
20
20
  "@awesome-cordova-plugins/camera": "^9.2.0",
21
21
  "@awesome-cordova-plugins/dialogs": "^9.2.0",
22
22
  "@awesome-cordova-plugins/file": "^9.2.0",
23
- "@regulaforensics/face-sdk": "8.4.1352-beta",
23
+ "@regulaforensics/face-sdk": "8.4.1353-beta",
24
24
  "@regulaforensics/face-core-basic": "8.3.683",
25
25
  "cordova-android": "^15.0.0",
26
26
  "cordova-ios": "^8.1.1",
@@ -8,7 +8,7 @@
8
8
  "start": "expo start"
9
9
  },
10
10
  "dependencies": {
11
- "@regulaforensics/face-sdk": "8.4.1352-beta",
11
+ "@regulaforensics/face-sdk": "8.4.1353-beta",
12
12
  "@regulaforensics/face-core-basic": "8.3.683",
13
13
  "react-native": "^0.81.4",
14
14
  "react-native-fs": "^2.20.0",
@@ -33,12 +33,12 @@ func sendEvent(_ event: String, _ data: Any? = "") {
33
33
  this!.commandDelegate.send(result!, callbackId: callbackId)
34
34
  }
35
35
 
36
- func runAsync (_ action: @escaping (UIViewController) -> Void) {
36
+ func runAsync(_ action: @escaping (UIViewController) -> Void) {
37
37
  DispatchQueue.main.async {
38
- for case let scene as UIWindowScene in UIApplication.shared.connectedScenes
39
- where scene.activationState == .foregroundActive || scene.activationState == .foregroundInactive {
40
- let window = scene.windows.first { $0.isKeyWindow } ?? scene.windows.first { !$0.isHidden && $0.alpha > 0 && $0.windowLevel == .normal }
41
- guard var presenter = window?.rootViewController else { continue }
38
+ let windows = UIApplication.shared.connectedScenes.compactMap { $0 as? UIWindowScene }.filter { $0.activationState == .foregroundActive || $0.activationState == .foregroundInactive }.flatMap { $0.windows }
39
+ let candidates = windows.filter { $0.isKeyWindow } + windows.filter { !$0.isKeyWindow && !$0.isHidden && $0.alpha > 0 && $0.windowLevel == .normal }
40
+ for window in candidates {
41
+ guard var presenter = window.rootViewController else { continue }
42
42
  while let next = presenter.presentedViewController
43
43
  ?? (presenter as? UINavigationController)?.visibleViewController
44
44
  ?? (presenter as? UINavigationController)?.topViewController
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/face-sdk",
3
- "version": "8.4.1352-beta",
3
+ "version": "8.4.1353-beta",
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.1352-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/face-sdk" version="8.4.1353-beta" 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>
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "..": {
15
15
  "name": "@regulaforensics/face-sdk",
16
- "version": "8.4.1352-beta",
16
+ "version": "8.4.1353-beta",
17
17
  "dev": true,
18
18
  "license": "commercial",
19
19
  "dependencies": {