@yeomessagingcom/react-native-yeofr 0.1.12 → 0.1.13
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/README.md +27 -1
- package/ios/YEOFR.xcframework/Info.plist +27 -0
- package/ios/YEOFR.xcframework/ios-arm64/YEOFR.framework/Headers/YEOFR.h +18 -0
- package/ios/YEOFR.xcframework/ios-arm64/YEOFR.framework/Headers/YEOFRBridge.h +261 -0
- package/ios/YEOFR.xcframework/ios-arm64/YEOFR.framework/Info.plist +0 -0
- package/ios/YEOFR.xcframework/ios-arm64/YEOFR.framework/Modules/YEOFR.swiftmodule/arm64-apple-ios.abi.json +3615 -0
- package/ios/YEOFR.xcframework/ios-arm64/YEOFR.framework/Modules/YEOFR.swiftmodule/arm64-apple-ios.private.swiftinterface +96 -0
- package/ios/YEOFR.xcframework/ios-arm64/YEOFR.framework/Modules/YEOFR.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/YEOFR.xcframework/ios-arm64/YEOFR.framework/Modules/YEOFR.swiftmodule/arm64-apple-ios.swiftinterface +96 -0
- package/ios/YEOFR.xcframework/ios-arm64/YEOFR.framework/Modules/module.modulemap +6 -0
- package/ios/YEOFR.xcframework/ios-arm64/YEOFR.framework/YEOFR +0 -0
- package/ios/YEOFR.xcframework/ios-arm64/YEOFR.framework/_CodeSignature/CodeResources +190 -0
- package/ios/react-native-yeofr.podspec +23 -35
- package/package.json +5 -8
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios18.2 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name YEOFR
|
|
4
|
+
import AVFoundation
|
|
5
|
+
import CoreImage
|
|
6
|
+
import CoreVideo
|
|
7
|
+
import Foundation
|
|
8
|
+
import Swift
|
|
9
|
+
import UIKit
|
|
10
|
+
@_exported import YEOFR
|
|
11
|
+
import _Concurrency
|
|
12
|
+
import _StringProcessing
|
|
13
|
+
import _SwiftConcurrencyShims
|
|
14
|
+
public enum FaceRecognitionState {
|
|
15
|
+
case notDetected
|
|
16
|
+
case detected
|
|
17
|
+
case multipleDetected
|
|
18
|
+
public static func == (a: YEOFR.FaceRecognitionState, b: YEOFR.FaceRecognitionState) -> Swift.Bool
|
|
19
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
20
|
+
public var hashValue: Swift.Int {
|
|
21
|
+
get
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
public struct ImageFrameParameters : Swift.Equatable {
|
|
25
|
+
public let height: Swift.Int32
|
|
26
|
+
public let width: Swift.Int32
|
|
27
|
+
public let scanLine: Swift.Int32
|
|
28
|
+
public let ratio: Swift.Float
|
|
29
|
+
public let buffer: Swift.UnsafeMutableRawPointer
|
|
30
|
+
public let bufferSize: Swift.Int
|
|
31
|
+
public let uuid: Foundation.UUID
|
|
32
|
+
public init(height: Swift.Int32, width: Swift.Int32, scanLine: Swift.Int32, ratio: Swift.Float, buffer: Swift.UnsafeMutableRawPointer, bufferSize: Swift.Int)
|
|
33
|
+
public static func == (lhs: YEOFR.ImageFrameParameters, rhs: YEOFR.ImageFrameParameters) -> Swift.Bool
|
|
34
|
+
public static func imageParameter(forImageBuffer imageBuffer: CoreVideo.CVImageBuffer) -> YEOFR.ImageFrameParameters
|
|
35
|
+
}
|
|
36
|
+
public struct SDKFaceRecognitionResult : Swift.Equatable {
|
|
37
|
+
public var faceState: YEOFR.FaceRecognitionState
|
|
38
|
+
public var detectedCount: Swift.Int
|
|
39
|
+
public var faceIDs: [Swift.Int : Swift.String?]
|
|
40
|
+
public var faceRects: [Swift.Int : CoreFoundation.CGRect]
|
|
41
|
+
public var uuid: Foundation.UUID
|
|
42
|
+
public var error: (any Swift.Error)?
|
|
43
|
+
public init(faceState: YEOFR.FaceRecognitionState = .notDetected, detectedCount: Swift.Int = 0, faceIDs: [Swift.Int : Swift.String?] = [:], faceRects: [Swift.Int : CoreFoundation.CGRect] = [:], error: (any Swift.Error)?)
|
|
44
|
+
public static func == (lhs: YEOFR.SDKFaceRecognitionResult, rhs: YEOFR.SDKFaceRecognitionResult) -> Swift.Bool
|
|
45
|
+
}
|
|
46
|
+
public enum YEOFRDefaults {
|
|
47
|
+
}
|
|
48
|
+
public protocol YEOFRConfigurable {
|
|
49
|
+
var internalResizeWidth: Swift.Int { get set }
|
|
50
|
+
var frSDKThreshold: Swift.Double { get set }
|
|
51
|
+
var faceRecognitionTrackerMemoryLimit: Swift.Int { get set }
|
|
52
|
+
var keepFaceImagesInTracker: Swift.Bool { get set }
|
|
53
|
+
var faceDetectionThreshold: Swift.Int { get set }
|
|
54
|
+
var arbitraryRotation: Swift.Bool { get set }
|
|
55
|
+
var numberOfThreads: Swift.Int32 { get set }
|
|
56
|
+
var asTrackerParameters: Swift.String { get }
|
|
57
|
+
}
|
|
58
|
+
public struct YEOFRConfig : YEOFR.YEOFRConfigurable, Swift.CustomDebugStringConvertible {
|
|
59
|
+
public var internalResizeWidth: Swift.Int
|
|
60
|
+
public var frSDKThreshold: Swift.Double
|
|
61
|
+
public var faceRecognitionTrackerMemoryLimit: Swift.Int
|
|
62
|
+
public var keepFaceImagesInTracker: Swift.Bool
|
|
63
|
+
public var faceDetectionThreshold: Swift.Int
|
|
64
|
+
public var arbitraryRotation: Swift.Bool
|
|
65
|
+
public var numberOfThreads: Swift.Int32
|
|
66
|
+
public var asTrackerParameters: Swift.String {
|
|
67
|
+
get
|
|
68
|
+
}
|
|
69
|
+
public var debugDescription: Swift.String {
|
|
70
|
+
get
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
public typealias YEOFRTrackerHandle = Swift.Int64
|
|
74
|
+
@_hasMissingDesignatedInitializers final public class YEOFRSDK {
|
|
75
|
+
public static let shared: YEOFR.YEOFRSDK
|
|
76
|
+
public static let version: Swift.String
|
|
77
|
+
@discardableResult
|
|
78
|
+
final public func createTracker() -> YEOFR.FRSDKReturnCode
|
|
79
|
+
@discardableResult
|
|
80
|
+
final public func freeTracker() -> YEOFR.FRSDKReturnCode
|
|
81
|
+
final public func setTrackerHandle(_ handle: YEOFR.YEOFRTrackerHandle)
|
|
82
|
+
final public func getTrackerHandle() -> YEOFR.YEOFRTrackerHandle
|
|
83
|
+
@discardableResult
|
|
84
|
+
final public func enroll(faceID: Swift.Int64, name: Swift.String, learnFromCurrentFrame: Swift.Bool = true) -> YEOFR.FRSDKReturnCode
|
|
85
|
+
final public func detectFaces(params: YEOFR.ImageFrameParameters, needFaceRect: Swift.Bool = true) -> YEOFR.SDKFaceRecognitionResult
|
|
86
|
+
final public func faceRecognitionTrackerData() -> Foundation.Data?
|
|
87
|
+
@discardableResult
|
|
88
|
+
final public func loadTracker(from data: Foundation.Data) -> YEOFR.FRSDKReturnCode
|
|
89
|
+
@discardableResult
|
|
90
|
+
final public func resetTrackerParameters() -> YEOFR.FRSDKReturnCode
|
|
91
|
+
@discardableResult
|
|
92
|
+
final public func configureFRSDK(config: any YEOFR.YEOFRConfigurable) -> YEOFR.FRSDKReturnCode
|
|
93
|
+
@objc deinit
|
|
94
|
+
}
|
|
95
|
+
extension YEOFR.FaceRecognitionState : Swift.Equatable {}
|
|
96
|
+
extension YEOFR.FaceRecognitionState : Swift.Hashable {}
|
|
Binary file
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios18.2 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name YEOFR
|
|
4
|
+
import AVFoundation
|
|
5
|
+
import CoreImage
|
|
6
|
+
import CoreVideo
|
|
7
|
+
import Foundation
|
|
8
|
+
import Swift
|
|
9
|
+
import UIKit
|
|
10
|
+
@_exported import YEOFR
|
|
11
|
+
import _Concurrency
|
|
12
|
+
import _StringProcessing
|
|
13
|
+
import _SwiftConcurrencyShims
|
|
14
|
+
public enum FaceRecognitionState {
|
|
15
|
+
case notDetected
|
|
16
|
+
case detected
|
|
17
|
+
case multipleDetected
|
|
18
|
+
public static func == (a: YEOFR.FaceRecognitionState, b: YEOFR.FaceRecognitionState) -> Swift.Bool
|
|
19
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
20
|
+
public var hashValue: Swift.Int {
|
|
21
|
+
get
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
public struct ImageFrameParameters : Swift.Equatable {
|
|
25
|
+
public let height: Swift.Int32
|
|
26
|
+
public let width: Swift.Int32
|
|
27
|
+
public let scanLine: Swift.Int32
|
|
28
|
+
public let ratio: Swift.Float
|
|
29
|
+
public let buffer: Swift.UnsafeMutableRawPointer
|
|
30
|
+
public let bufferSize: Swift.Int
|
|
31
|
+
public let uuid: Foundation.UUID
|
|
32
|
+
public init(height: Swift.Int32, width: Swift.Int32, scanLine: Swift.Int32, ratio: Swift.Float, buffer: Swift.UnsafeMutableRawPointer, bufferSize: Swift.Int)
|
|
33
|
+
public static func == (lhs: YEOFR.ImageFrameParameters, rhs: YEOFR.ImageFrameParameters) -> Swift.Bool
|
|
34
|
+
public static func imageParameter(forImageBuffer imageBuffer: CoreVideo.CVImageBuffer) -> YEOFR.ImageFrameParameters
|
|
35
|
+
}
|
|
36
|
+
public struct SDKFaceRecognitionResult : Swift.Equatable {
|
|
37
|
+
public var faceState: YEOFR.FaceRecognitionState
|
|
38
|
+
public var detectedCount: Swift.Int
|
|
39
|
+
public var faceIDs: [Swift.Int : Swift.String?]
|
|
40
|
+
public var faceRects: [Swift.Int : CoreFoundation.CGRect]
|
|
41
|
+
public var uuid: Foundation.UUID
|
|
42
|
+
public var error: (any Swift.Error)?
|
|
43
|
+
public init(faceState: YEOFR.FaceRecognitionState = .notDetected, detectedCount: Swift.Int = 0, faceIDs: [Swift.Int : Swift.String?] = [:], faceRects: [Swift.Int : CoreFoundation.CGRect] = [:], error: (any Swift.Error)?)
|
|
44
|
+
public static func == (lhs: YEOFR.SDKFaceRecognitionResult, rhs: YEOFR.SDKFaceRecognitionResult) -> Swift.Bool
|
|
45
|
+
}
|
|
46
|
+
public enum YEOFRDefaults {
|
|
47
|
+
}
|
|
48
|
+
public protocol YEOFRConfigurable {
|
|
49
|
+
var internalResizeWidth: Swift.Int { get set }
|
|
50
|
+
var frSDKThreshold: Swift.Double { get set }
|
|
51
|
+
var faceRecognitionTrackerMemoryLimit: Swift.Int { get set }
|
|
52
|
+
var keepFaceImagesInTracker: Swift.Bool { get set }
|
|
53
|
+
var faceDetectionThreshold: Swift.Int { get set }
|
|
54
|
+
var arbitraryRotation: Swift.Bool { get set }
|
|
55
|
+
var numberOfThreads: Swift.Int32 { get set }
|
|
56
|
+
var asTrackerParameters: Swift.String { get }
|
|
57
|
+
}
|
|
58
|
+
public struct YEOFRConfig : YEOFR.YEOFRConfigurable, Swift.CustomDebugStringConvertible {
|
|
59
|
+
public var internalResizeWidth: Swift.Int
|
|
60
|
+
public var frSDKThreshold: Swift.Double
|
|
61
|
+
public var faceRecognitionTrackerMemoryLimit: Swift.Int
|
|
62
|
+
public var keepFaceImagesInTracker: Swift.Bool
|
|
63
|
+
public var faceDetectionThreshold: Swift.Int
|
|
64
|
+
public var arbitraryRotation: Swift.Bool
|
|
65
|
+
public var numberOfThreads: Swift.Int32
|
|
66
|
+
public var asTrackerParameters: Swift.String {
|
|
67
|
+
get
|
|
68
|
+
}
|
|
69
|
+
public var debugDescription: Swift.String {
|
|
70
|
+
get
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
public typealias YEOFRTrackerHandle = Swift.Int64
|
|
74
|
+
@_hasMissingDesignatedInitializers final public class YEOFRSDK {
|
|
75
|
+
public static let shared: YEOFR.YEOFRSDK
|
|
76
|
+
public static let version: Swift.String
|
|
77
|
+
@discardableResult
|
|
78
|
+
final public func createTracker() -> YEOFR.FRSDKReturnCode
|
|
79
|
+
@discardableResult
|
|
80
|
+
final public func freeTracker() -> YEOFR.FRSDKReturnCode
|
|
81
|
+
final public func setTrackerHandle(_ handle: YEOFR.YEOFRTrackerHandle)
|
|
82
|
+
final public func getTrackerHandle() -> YEOFR.YEOFRTrackerHandle
|
|
83
|
+
@discardableResult
|
|
84
|
+
final public func enroll(faceID: Swift.Int64, name: Swift.String, learnFromCurrentFrame: Swift.Bool = true) -> YEOFR.FRSDKReturnCode
|
|
85
|
+
final public func detectFaces(params: YEOFR.ImageFrameParameters, needFaceRect: Swift.Bool = true) -> YEOFR.SDKFaceRecognitionResult
|
|
86
|
+
final public func faceRecognitionTrackerData() -> Foundation.Data?
|
|
87
|
+
@discardableResult
|
|
88
|
+
final public func loadTracker(from data: Foundation.Data) -> YEOFR.FRSDKReturnCode
|
|
89
|
+
@discardableResult
|
|
90
|
+
final public func resetTrackerParameters() -> YEOFR.FRSDKReturnCode
|
|
91
|
+
@discardableResult
|
|
92
|
+
final public func configureFRSDK(config: any YEOFR.YEOFRConfigurable) -> YEOFR.FRSDKReturnCode
|
|
93
|
+
@objc deinit
|
|
94
|
+
}
|
|
95
|
+
extension YEOFR.FaceRecognitionState : Swift.Equatable {}
|
|
96
|
+
extension YEOFR.FaceRecognitionState : Swift.Hashable {}
|
|
Binary file
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>files</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>Headers/YEOFR.h</key>
|
|
8
|
+
<data>
|
|
9
|
+
0HRv2KQZ77qzRGseLvnP1rYecL4=
|
|
10
|
+
</data>
|
|
11
|
+
<key>Headers/YEOFRBridge.h</key>
|
|
12
|
+
<data>
|
|
13
|
+
IWzHCxssB7QEnA9pD44EKcnTz9Q=
|
|
14
|
+
</data>
|
|
15
|
+
<key>Info.plist</key>
|
|
16
|
+
<data>
|
|
17
|
+
X6c0RK9H2CIgOwbx2RJ71pB8ra8=
|
|
18
|
+
</data>
|
|
19
|
+
<key>Modules/YEOFR.swiftmodule/arm64-apple-ios.abi.json</key>
|
|
20
|
+
<data>
|
|
21
|
+
3jJD3WWq4GgFsHEjWUPQXDDpMMU=
|
|
22
|
+
</data>
|
|
23
|
+
<key>Modules/YEOFR.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
|
|
24
|
+
<data>
|
|
25
|
+
T09OxsTst5MN0x1LK1XAFv5tV+0=
|
|
26
|
+
</data>
|
|
27
|
+
<key>Modules/YEOFR.swiftmodule/arm64-apple-ios.swiftdoc</key>
|
|
28
|
+
<data>
|
|
29
|
+
9qjREfrBgESWJTgNOHXf0/8GJSM=
|
|
30
|
+
</data>
|
|
31
|
+
<key>Modules/YEOFR.swiftmodule/arm64-apple-ios.swiftinterface</key>
|
|
32
|
+
<data>
|
|
33
|
+
T09OxsTst5MN0x1LK1XAFv5tV+0=
|
|
34
|
+
</data>
|
|
35
|
+
<key>Modules/YEOFR.swiftmodule/arm64-apple-ios.swiftmodule</key>
|
|
36
|
+
<data>
|
|
37
|
+
Wer92zbkvqSijzEJeuZhcZFVPeo=
|
|
38
|
+
</data>
|
|
39
|
+
<key>Modules/module.modulemap</key>
|
|
40
|
+
<data>
|
|
41
|
+
0cEkiWzPcmD6LOPJlrOyroH/JN0=
|
|
42
|
+
</data>
|
|
43
|
+
</dict>
|
|
44
|
+
<key>files2</key>
|
|
45
|
+
<dict>
|
|
46
|
+
<key>Headers/YEOFR.h</key>
|
|
47
|
+
<dict>
|
|
48
|
+
<key>hash2</key>
|
|
49
|
+
<data>
|
|
50
|
+
ukohmHU0KW9cOPp7mp5wAnPa0sP4sAfQsiWcbzGG44w=
|
|
51
|
+
</data>
|
|
52
|
+
</dict>
|
|
53
|
+
<key>Headers/YEOFRBridge.h</key>
|
|
54
|
+
<dict>
|
|
55
|
+
<key>hash2</key>
|
|
56
|
+
<data>
|
|
57
|
+
KYF3ZfM3qcmD7ScGiLRtv8iHFNyT8PIrKdjTpPjp6dk=
|
|
58
|
+
</data>
|
|
59
|
+
</dict>
|
|
60
|
+
<key>Modules/YEOFR.swiftmodule/arm64-apple-ios.abi.json</key>
|
|
61
|
+
<dict>
|
|
62
|
+
<key>hash2</key>
|
|
63
|
+
<data>
|
|
64
|
+
GKVUPrMpren8HSMdn6LDY7sFXg4zEI07QMeE11sdNEo=
|
|
65
|
+
</data>
|
|
66
|
+
</dict>
|
|
67
|
+
<key>Modules/YEOFR.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
|
|
68
|
+
<dict>
|
|
69
|
+
<key>hash2</key>
|
|
70
|
+
<data>
|
|
71
|
+
YiDh4JUB7Zj50BXcaQNiJoW99E4ArWeR4D6zfTFVTcA=
|
|
72
|
+
</data>
|
|
73
|
+
</dict>
|
|
74
|
+
<key>Modules/YEOFR.swiftmodule/arm64-apple-ios.swiftdoc</key>
|
|
75
|
+
<dict>
|
|
76
|
+
<key>hash2</key>
|
|
77
|
+
<data>
|
|
78
|
+
DFd8jBv0kupAnjDeD8JN5TIPf/D0DKggxERsYQM9iDg=
|
|
79
|
+
</data>
|
|
80
|
+
</dict>
|
|
81
|
+
<key>Modules/YEOFR.swiftmodule/arm64-apple-ios.swiftinterface</key>
|
|
82
|
+
<dict>
|
|
83
|
+
<key>hash2</key>
|
|
84
|
+
<data>
|
|
85
|
+
YiDh4JUB7Zj50BXcaQNiJoW99E4ArWeR4D6zfTFVTcA=
|
|
86
|
+
</data>
|
|
87
|
+
</dict>
|
|
88
|
+
<key>Modules/YEOFR.swiftmodule/arm64-apple-ios.swiftmodule</key>
|
|
89
|
+
<dict>
|
|
90
|
+
<key>hash2</key>
|
|
91
|
+
<data>
|
|
92
|
+
di1xU1fGOIq+ef4wcGrsnXCVUvg1CMzQYwyXpY2XUiI=
|
|
93
|
+
</data>
|
|
94
|
+
</dict>
|
|
95
|
+
<key>Modules/module.modulemap</key>
|
|
96
|
+
<dict>
|
|
97
|
+
<key>hash2</key>
|
|
98
|
+
<data>
|
|
99
|
+
+5JyvnnaSRux4yw7wZPK5HoxZFtB+bt8UTMlhfA/Y2U=
|
|
100
|
+
</data>
|
|
101
|
+
</dict>
|
|
102
|
+
</dict>
|
|
103
|
+
<key>rules</key>
|
|
104
|
+
<dict>
|
|
105
|
+
<key>^.*</key>
|
|
106
|
+
<true/>
|
|
107
|
+
<key>^.*\.lproj/</key>
|
|
108
|
+
<dict>
|
|
109
|
+
<key>optional</key>
|
|
110
|
+
<true/>
|
|
111
|
+
<key>weight</key>
|
|
112
|
+
<real>1000</real>
|
|
113
|
+
</dict>
|
|
114
|
+
<key>^.*\.lproj/locversion.plist$</key>
|
|
115
|
+
<dict>
|
|
116
|
+
<key>omit</key>
|
|
117
|
+
<true/>
|
|
118
|
+
<key>weight</key>
|
|
119
|
+
<real>1100</real>
|
|
120
|
+
</dict>
|
|
121
|
+
<key>^Base\.lproj/</key>
|
|
122
|
+
<dict>
|
|
123
|
+
<key>weight</key>
|
|
124
|
+
<real>1010</real>
|
|
125
|
+
</dict>
|
|
126
|
+
<key>^version.plist$</key>
|
|
127
|
+
<true/>
|
|
128
|
+
</dict>
|
|
129
|
+
<key>rules2</key>
|
|
130
|
+
<dict>
|
|
131
|
+
<key>.*\.dSYM($|/)</key>
|
|
132
|
+
<dict>
|
|
133
|
+
<key>weight</key>
|
|
134
|
+
<real>11</real>
|
|
135
|
+
</dict>
|
|
136
|
+
<key>^(.*/)?\.DS_Store$</key>
|
|
137
|
+
<dict>
|
|
138
|
+
<key>omit</key>
|
|
139
|
+
<true/>
|
|
140
|
+
<key>weight</key>
|
|
141
|
+
<real>2000</real>
|
|
142
|
+
</dict>
|
|
143
|
+
<key>^.*</key>
|
|
144
|
+
<true/>
|
|
145
|
+
<key>^.*\.lproj/</key>
|
|
146
|
+
<dict>
|
|
147
|
+
<key>optional</key>
|
|
148
|
+
<true/>
|
|
149
|
+
<key>weight</key>
|
|
150
|
+
<real>1000</real>
|
|
151
|
+
</dict>
|
|
152
|
+
<key>^.*\.lproj/locversion.plist$</key>
|
|
153
|
+
<dict>
|
|
154
|
+
<key>omit</key>
|
|
155
|
+
<true/>
|
|
156
|
+
<key>weight</key>
|
|
157
|
+
<real>1100</real>
|
|
158
|
+
</dict>
|
|
159
|
+
<key>^Base\.lproj/</key>
|
|
160
|
+
<dict>
|
|
161
|
+
<key>weight</key>
|
|
162
|
+
<real>1010</real>
|
|
163
|
+
</dict>
|
|
164
|
+
<key>^Info\.plist$</key>
|
|
165
|
+
<dict>
|
|
166
|
+
<key>omit</key>
|
|
167
|
+
<true/>
|
|
168
|
+
<key>weight</key>
|
|
169
|
+
<real>20</real>
|
|
170
|
+
</dict>
|
|
171
|
+
<key>^PkgInfo$</key>
|
|
172
|
+
<dict>
|
|
173
|
+
<key>omit</key>
|
|
174
|
+
<true/>
|
|
175
|
+
<key>weight</key>
|
|
176
|
+
<real>20</real>
|
|
177
|
+
</dict>
|
|
178
|
+
<key>^embedded\.provisionprofile$</key>
|
|
179
|
+
<dict>
|
|
180
|
+
<key>weight</key>
|
|
181
|
+
<real>20</real>
|
|
182
|
+
</dict>
|
|
183
|
+
<key>^version\.plist$</key>
|
|
184
|
+
<dict>
|
|
185
|
+
<key>weight</key>
|
|
186
|
+
<real>20</real>
|
|
187
|
+
</dict>
|
|
188
|
+
</dict>
|
|
189
|
+
</dict>
|
|
190
|
+
</plist>
|
|
@@ -1,48 +1,36 @@
|
|
|
1
1
|
Pod::Spec.new do |s|
|
|
2
|
-
s.name
|
|
3
|
-
s.version
|
|
4
|
-
s.summary
|
|
5
|
-
s.homepage
|
|
6
|
-
s.license
|
|
7
|
-
s.author
|
|
8
|
-
s.platform
|
|
9
|
-
s.swift_version
|
|
2
|
+
s.name = "react-native-yeofr"
|
|
3
|
+
s.version = "0.1.13"
|
|
4
|
+
s.summary = "React Native iOS bridge for YEO Face Recognition."
|
|
5
|
+
s.homepage = "https://github.com/yeomessaging/react-native-yeofr"
|
|
6
|
+
s.license = { :type => "Commercial", :file => "LICENSE" }
|
|
7
|
+
s.author = { "YEO Messaging" => "luca@yeomessaging.com" }
|
|
8
|
+
s.platform = :ios, "15.1"
|
|
9
|
+
s.swift_version = "5.9"
|
|
10
10
|
|
|
11
|
-
#
|
|
12
|
-
s.source
|
|
13
|
-
:tag => s.version.to_s }
|
|
11
|
+
# Read from the installed npm package in node_modules
|
|
12
|
+
s.source = { :path => "." }
|
|
14
13
|
|
|
15
|
-
#
|
|
16
|
-
s.source_files
|
|
14
|
+
# RN bridge sources (Obj-C and/or Swift)
|
|
15
|
+
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
17
16
|
|
|
18
|
-
#
|
|
19
|
-
|
|
20
|
-
repo = "https://github.com/YEOMessaging/YEOFR-SPM"
|
|
21
|
-
asset = "YEOFR.xcframework.zip"
|
|
22
|
-
url = ENV['YEOFR_XCFRAMEWORK_URL'] || "#{repo}/releases/download/#{bin_ver}/#{asset}"
|
|
23
|
-
sha256 = ENV['YEOFR_SHA256'] || "42311f41302ea706ccfa4b1db5a2d354bf3e1631a4172802f34cb8e9679b5da4"
|
|
17
|
+
# The bundled dynamic XCFramework you copied into ios/
|
|
18
|
+
s.vendored_frameworks = "ios/YEOFR.xcframework"
|
|
24
19
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
cd ios
|
|
28
|
-
rm -rf Vendor && mkdir -p Vendor
|
|
29
|
-
echo "YEOFR: downloading #{url}"
|
|
30
|
-
curl -fL -o "#{asset}" "#{url}"
|
|
31
|
-
echo "#{sha256} #{asset}" | shasum -a 256 -c -
|
|
32
|
-
unzip -o "#{asset}" -d Vendor >/dev/null
|
|
33
|
-
CMD
|
|
34
|
-
|
|
35
|
-
# Vendored framework lives under ios/ after prepare_command
|
|
36
|
-
s.vendored_frameworks = "ios/Vendor/YEOFR.xcframework"
|
|
20
|
+
# If your XCFramework contains a separate .bundle, uncomment:
|
|
21
|
+
# s.resources = "ios/YEOFR.xcframework/**/*.bundle"
|
|
37
22
|
|
|
23
|
+
# React Native dependency
|
|
38
24
|
s.dependency "React-Core"
|
|
39
25
|
|
|
40
|
-
#
|
|
26
|
+
# ---- If your XCFramework is DEVICE-ONLY, keep these exclusions. ----
|
|
27
|
+
# (If your XCFramework also contains simulator slices, delete both blocks.)
|
|
41
28
|
s.pod_target_xcconfig = {
|
|
42
|
-
|
|
43
|
-
|
|
29
|
+
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" => "i386 x86_64 arm64",
|
|
30
|
+
"CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES" => "YES"
|
|
44
31
|
}
|
|
45
32
|
s.user_target_xcconfig = {
|
|
46
|
-
|
|
33
|
+
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" => "i386 x86_64 arm64"
|
|
47
34
|
}
|
|
35
|
+
# -------------------------------------------------------------------
|
|
48
36
|
end
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yeomessagingcom/react-native-yeofr",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "React Native iOS integration for YEO Face Recognition (device-only).",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"react-native": "index.ts",
|
|
@@ -17,17 +17,14 @@
|
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"index.ts",
|
|
20
|
-
"ios",
|
|
20
|
+
"ios/**",
|
|
21
21
|
"react-native.config.js",
|
|
22
|
+
"react-native-yeofr.podspec",
|
|
22
23
|
"README.md",
|
|
23
24
|
"LICENSE"
|
|
24
25
|
],
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
"ios",
|
|
28
|
-
"face-recognition",
|
|
29
|
-
"yeofr"
|
|
30
|
-
],
|
|
26
|
+
"publishConfig": { "access": "restricted" },
|
|
27
|
+
"keywords": ["react-native","ios","face-recognition","yeofr"],
|
|
31
28
|
"peerDependencies": {
|
|
32
29
|
"react-native": ">=0.72.0"
|
|
33
30
|
},
|