@yeomessagingcom/react-native-yeofr 0.1.30 → 0.2.0

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,10 +8,18 @@ import CoreVideo
8
8
  import Foundation
9
9
  import Swift
10
10
  import UIKit
11
+ import Vision
11
12
  @_exported import YEOFR
12
13
  import _Concurrency
13
14
  import _StringProcessing
14
15
  import _SwiftConcurrencyShims
16
+ final public class YEOFRValueDebounce {
17
+ public init(threshold: Swift.Int)
18
+ final public func reset()
19
+ @discardableResult
20
+ final public func canUpdate() -> Swift.Bool
21
+ @objc deinit
22
+ }
15
23
  public enum FaceRecognitionState {
16
24
  case notDetected
17
25
  case detected
@@ -30,7 +38,10 @@ public struct ImageFrameParameters : Swift.Equatable {
30
38
  public let buffer: Swift.UnsafeMutableRawPointer
31
39
  public let bufferSize: Swift.Int
32
40
  public let uuid: Foundation.UUID
33
- public init(height: Swift.Int32, width: Swift.Int32, scanLine: Swift.Int32, ratio: Swift.Float, buffer: Swift.UnsafeMutableRawPointer, bufferSize: Swift.Int)
41
+ public let capturedImage: CoreImage.CIImage?
42
+ #if compiler(>=5.3) && $NonescapableTypes
43
+ public init(height: Swift.Int32, width: Swift.Int32, scanLine: Swift.Int32, ratio: Swift.Float, buffer: Swift.UnsafeMutableRawPointer, bufferSize: Swift.Int, capturedImage: CoreImage.CIImage?)
44
+ #endif
34
45
  public static func == (lhs: YEOFR.ImageFrameParameters, rhs: YEOFR.ImageFrameParameters) -> Swift.Bool
35
46
  public static func imageParameter(forImageBuffer imageBuffer: CoreVideo.CVImageBuffer) -> YEOFR.ImageFrameParameters
36
47
  }
@@ -73,6 +84,25 @@ public struct YEOFRConfig : YEOFR.YEOFRConfigurable, Swift.CustomDebugStringConv
73
84
  get
74
85
  }
75
86
  }
87
+ public enum YEOFRDepthVerdict : Swift.Equatable {
88
+ case threeD(Swift.Float)
89
+ case flat(Swift.Float)
90
+ case notDetermined
91
+ public var isThreeD: Swift.Bool {
92
+ get
93
+ }
94
+ public static func == (lhs: YEOFR.YEOFRDepthVerdict, rhs: YEOFR.YEOFRDepthVerdict) -> Swift.Bool
95
+ }
96
+ public protocol YEOFRTrueDepthHandling : AVFoundation.AVCaptureVideoDataOutputSampleBufferDelegate {
97
+ var depthEnabled: Swift.Bool { get }
98
+ var videoOutput: AVFoundation.AVCaptureVideoDataOutput { get set }
99
+ var depthDataOutput: AVFoundation.AVCaptureDepthDataOutput { get set }
100
+ func onDepthVerdict(value: YEOFR.YEOFRDepthVerdict)
101
+ }
102
+ extension YEOFR.YEOFRTrueDepthHandling {
103
+ public func handleDataOutputSynchronizer(_ synchronizer: AVFoundation.AVCaptureDataOutputSynchronizer, didOutput synchronizedDataCollection: AVFoundation.AVCaptureSynchronizedDataCollection)
104
+ public func canUseTrueDepthCamera() -> Swift.Bool
105
+ }
76
106
  public typealias YEOFRTrackerHandle = Swift.Int64
77
107
  @_hasMissingDesignatedInitializers final public class YEOFRSDK {
78
108
  public static let shared: YEOFR.YEOFRSDK
@@ -8,10 +8,18 @@ import CoreVideo
8
8
  import Foundation
9
9
  import Swift
10
10
  import UIKit
11
+ import Vision
11
12
  @_exported import YEOFR
12
13
  import _Concurrency
13
14
  import _StringProcessing
14
15
  import _SwiftConcurrencyShims
16
+ final public class YEOFRValueDebounce {
17
+ public init(threshold: Swift.Int)
18
+ final public func reset()
19
+ @discardableResult
20
+ final public func canUpdate() -> Swift.Bool
21
+ @objc deinit
22
+ }
15
23
  public enum FaceRecognitionState {
16
24
  case notDetected
17
25
  case detected
@@ -30,7 +38,10 @@ public struct ImageFrameParameters : Swift.Equatable {
30
38
  public let buffer: Swift.UnsafeMutableRawPointer
31
39
  public let bufferSize: Swift.Int
32
40
  public let uuid: Foundation.UUID
33
- public init(height: Swift.Int32, width: Swift.Int32, scanLine: Swift.Int32, ratio: Swift.Float, buffer: Swift.UnsafeMutableRawPointer, bufferSize: Swift.Int)
41
+ public let capturedImage: CoreImage.CIImage?
42
+ #if compiler(>=5.3) && $NonescapableTypes
43
+ public init(height: Swift.Int32, width: Swift.Int32, scanLine: Swift.Int32, ratio: Swift.Float, buffer: Swift.UnsafeMutableRawPointer, bufferSize: Swift.Int, capturedImage: CoreImage.CIImage?)
44
+ #endif
34
45
  public static func == (lhs: YEOFR.ImageFrameParameters, rhs: YEOFR.ImageFrameParameters) -> Swift.Bool
35
46
  public static func imageParameter(forImageBuffer imageBuffer: CoreVideo.CVImageBuffer) -> YEOFR.ImageFrameParameters
36
47
  }
@@ -73,6 +84,25 @@ public struct YEOFRConfig : YEOFR.YEOFRConfigurable, Swift.CustomDebugStringConv
73
84
  get
74
85
  }
75
86
  }
87
+ public enum YEOFRDepthVerdict : Swift.Equatable {
88
+ case threeD(Swift.Float)
89
+ case flat(Swift.Float)
90
+ case notDetermined
91
+ public var isThreeD: Swift.Bool {
92
+ get
93
+ }
94
+ public static func == (lhs: YEOFR.YEOFRDepthVerdict, rhs: YEOFR.YEOFRDepthVerdict) -> Swift.Bool
95
+ }
96
+ public protocol YEOFRTrueDepthHandling : AVFoundation.AVCaptureVideoDataOutputSampleBufferDelegate {
97
+ var depthEnabled: Swift.Bool { get }
98
+ var videoOutput: AVFoundation.AVCaptureVideoDataOutput { get set }
99
+ var depthDataOutput: AVFoundation.AVCaptureDepthDataOutput { get set }
100
+ func onDepthVerdict(value: YEOFR.YEOFRDepthVerdict)
101
+ }
102
+ extension YEOFR.YEOFRTrueDepthHandling {
103
+ public func handleDataOutputSynchronizer(_ synchronizer: AVFoundation.AVCaptureDataOutputSynchronizer, didOutput synchronizedDataCollection: AVFoundation.AVCaptureSynchronizedDataCollection)
104
+ public func canUseTrueDepthCamera() -> Swift.Bool
105
+ }
76
106
  public typealias YEOFRTrackerHandle = Swift.Int64
77
107
  @_hasMissingDesignatedInitializers final public class YEOFRSDK {
78
108
  public static let shared: YEOFR.YEOFRSDK
@@ -18,11 +18,11 @@
18
18
  </data>
19
19
  <key>Modules/YEOFR.swiftmodule/arm64-apple-ios.abi.json</key>
20
20
  <data>
21
- y3DpBuZOt+B3AjXFqPCjSYmweig=
21
+ 5+4EJomDw0lGi30owc5S6CWiYbk=
22
22
  </data>
23
23
  <key>Modules/YEOFR.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
24
24
  <data>
25
- QlbpReoHeZ1JYHRJDF1GwkdlkW4=
25
+ DCSrUjdHTYPkbm7pWjxvnbGPp5E=
26
26
  </data>
27
27
  <key>Modules/YEOFR.swiftmodule/arm64-apple-ios.swiftdoc</key>
28
28
  <data>
@@ -30,11 +30,11 @@
30
30
  </data>
31
31
  <key>Modules/YEOFR.swiftmodule/arm64-apple-ios.swiftinterface</key>
32
32
  <data>
33
- QlbpReoHeZ1JYHRJDF1GwkdlkW4=
33
+ DCSrUjdHTYPkbm7pWjxvnbGPp5E=
34
34
  </data>
35
35
  <key>Modules/YEOFR.swiftmodule/arm64-apple-ios.swiftmodule</key>
36
36
  <data>
37
- hnuQvrS9K93oF+53pzg2yRYex8A=
37
+ iA35S9oMwyQOpxFtj+D2cJU8ECo=
38
38
  </data>
39
39
  <key>Modules/module.modulemap</key>
40
40
  <data>
@@ -61,14 +61,14 @@
61
61
  <dict>
62
62
  <key>hash2</key>
63
63
  <data>
64
- xNgTrky7HpefW//yqJX6Z0BFpmV1LVKhs63/co2rmGc=
64
+ AjzV9Bq5mxvPo6aBhEhgaVOcjJgYWe41du2nmR3PXH8=
65
65
  </data>
66
66
  </dict>
67
67
  <key>Modules/YEOFR.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
68
68
  <dict>
69
69
  <key>hash2</key>
70
70
  <data>
71
- CQdE7ZYo1/Sgl1hExq2Jiop4FM+hxEf8tWbGuO2H0nY=
71
+ zOic69nnJd53MoctoA21MrKi5UNG7ozmy2hxrhTQ3qo=
72
72
  </data>
73
73
  </dict>
74
74
  <key>Modules/YEOFR.swiftmodule/arm64-apple-ios.swiftdoc</key>
@@ -82,14 +82,14 @@
82
82
  <dict>
83
83
  <key>hash2</key>
84
84
  <data>
85
- CQdE7ZYo1/Sgl1hExq2Jiop4FM+hxEf8tWbGuO2H0nY=
85
+ zOic69nnJd53MoctoA21MrKi5UNG7ozmy2hxrhTQ3qo=
86
86
  </data>
87
87
  </dict>
88
88
  <key>Modules/YEOFR.swiftmodule/arm64-apple-ios.swiftmodule</key>
89
89
  <dict>
90
90
  <key>hash2</key>
91
91
  <data>
92
- 7ir6YISB4+9BKGI7uphWAyBa+w0Cfh1jbHeZ6855V9E=
92
+ L7DP3BsWxnAEruNMAPCuEraVx44Pe3nVUMSZvPQRKFI=
93
93
  </data>
94
94
  </dict>
95
95
  <key>Modules/module.modulemap</key>
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = "react-native-yeofr"
3
- s.version = "0.1.29"
3
+ s.version = "0.2.0"
4
4
  s.summary = "React Native iOS bridge for YEO Face Recognition."
5
5
  s.homepage = "https://github.com/yeomessaging/react-native-yeofr"
6
6
  s.license = { :type => "Commercial", :file => "LICENSE" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeomessagingcom/react-native-yeofr",
3
- "version": "0.1.30",
3
+ "version": "0.2.0",
4
4
  "description": "React Native iOS integration for YEO Face Recognition (device-only).",
5
5
  "main": "index.ts",
6
6
  "react-native": "index.ts",
@@ -46,7 +46,7 @@
46
46
  "@types/react-native": "^0.72.0"
47
47
  },
48
48
  "dependencies": {
49
- "@yeomessagingcom/react-native-yeofr": "^0.1.30"
49
+ "@yeomessagingcom/react-native-yeofr": "^0.2.0"
50
50
  },
51
51
  "workspaces": [
52
52
  "example"
File without changes
@@ -1,2 +0,0 @@
1
- #Sun Oct 19 23:03:10 WAT 2025
2
- gradle.version=8.9
File without changes