@onefootprint/footprint-native-camera-module 0.1.1 → 0.1.3
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/FootprintNativeCameraSwift/Frameworks/FootprintNativeCamera.xcframework/ios-arm64/FootprintNativeCamera.framework/FootprintNativeCamera +0 -0
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCamera.xcframework/ios-arm64/FootprintNativeCamera.framework/Headers/FootprintNativeCamera.h +11 -4
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCamera.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCamera.framework/FootprintNativeCamera +0 -0
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCamera.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCamera.framework/Headers/FootprintNativeCamera.h +11 -4
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/Info.plist +5 -5
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64/FootprintNativeCameraSwift.framework/FootprintNativeCameraSwift +0 -0
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64/FootprintNativeCameraSwift.framework/FootprintNativeCameraSwift_FootprintNativeCameraSwift.bundle/Assets.car +0 -0
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64/FootprintNativeCameraSwift.framework/FootprintNativeCameraSwift_FootprintNativeCameraSwift.bundle/Info.plist +0 -0
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64/FootprintNativeCameraSwift.framework/Info.plist +0 -0
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/arm64-apple-ios.abi.json +903 -85
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/arm64-apple-ios.private.swiftinterface +18 -4
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/arm64-apple-ios.swiftinterface +18 -4
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/FootprintNativeCameraSwift +0 -0
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/FootprintNativeCameraSwift_FootprintNativeCameraSwift.bundle/Assets.car +0 -0
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/FootprintNativeCameraSwift_FootprintNativeCameraSwift.bundle/Info.plist +0 -0
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/FootprintNativeCameraSwift_FootprintNativeCameraSwift.bundle/_CodeSignature/CodeDirectory +0 -0
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/FootprintNativeCameraSwift_FootprintNativeCameraSwift.bundle/_CodeSignature/CodeResources +2 -2
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/Info.plist +0 -0
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/arm64-apple-ios-simulator.abi.json +903 -85
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +18 -4
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/arm64-apple-ios-simulator.swiftinterface +18 -4
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/x86_64-apple-ios-simulator.abi.json +903 -85
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +18 -4
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +18 -4
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/_CodeSignature/CodeResources +1 -1
- package/android/libs/footprint-native-camera-module.aar +0 -0
- package/package.json +1 -1
|
@@ -26,13 +26,25 @@ import _StringProcessing
|
|
|
26
26
|
import _SwiftConcurrencyShims
|
|
27
27
|
public class AutocaptureManager {
|
|
28
28
|
public init()
|
|
29
|
-
public func detectForAutoCapture(_ image: CoreVideo.CVPixelBuffer, orientation: ImageIO.CGImagePropertyOrientation, side: Swift.String) -> Swift.String
|
|
29
|
+
public func detectForAutoCapture(_ image: CoreVideo.CVPixelBuffer, orientation: ImageIO.CGImagePropertyOrientation, side: Swift.String, isPassport: Swift.Bool = false) -> Swift.String
|
|
30
30
|
@objc deinit
|
|
31
31
|
}
|
|
32
32
|
public struct CameraConstants {
|
|
33
33
|
public let deviceToFrameWidthRatioPortraitDoc: CoreFoundation.CGFloat
|
|
34
34
|
public let deviceToFrameWidthRatioLandscapeDoc: CoreFoundation.CGFloat
|
|
35
35
|
public let deviceToFrameRatioSelfie: CoreFoundation.CGFloat
|
|
36
|
+
public let documentBoxHeightRatioCard: CoreFoundation.CGFloat
|
|
37
|
+
public let documentBoxHeightRatioPassport: CoreFoundation.CGFloat
|
|
38
|
+
public let documentCenteringMargin: CoreFoundation.CGFloat
|
|
39
|
+
public let documentAcceptFillFactor: CoreFoundation.CGFloat
|
|
40
|
+
public let documentMaxFillFactor: CoreFoundation.CGFloat
|
|
41
|
+
public let documentAcceptFillFactorPassport: CoreFoundation.CGFloat
|
|
42
|
+
public let documentMaxFillFactorPassport: CoreFoundation.CGFloat
|
|
43
|
+
public let documentCenteringMarginPassport: CoreFoundation.CGFloat
|
|
44
|
+
public let motionAccelerationThresholdPassport: Swift.Double
|
|
45
|
+
public let autocaptureGracePeriod: Swift.Double
|
|
46
|
+
public let autocaptureGracePeriodPassport: Swift.Double
|
|
47
|
+
public let motionAccelerationThreshold: Swift.Double
|
|
36
48
|
public init()
|
|
37
49
|
}
|
|
38
50
|
public enum CameraError : Swift.Error {
|
|
@@ -57,7 +69,7 @@ public enum CameraError : Swift.Error {
|
|
|
57
69
|
}
|
|
58
70
|
final public let orientationHelper: FootprintNativeCameraSwift.CameraOrientationHelper
|
|
59
71
|
@objc override dynamic public init()
|
|
60
|
-
public func setupCaptureSession() throws
|
|
72
|
+
public func setupCaptureSession(position: AVFoundation.AVCaptureDevice.Position = .back) throws
|
|
61
73
|
public func setupDetection(processFrame: @escaping (CoreVideo.CVImageBuffer, ImageIO.CGImagePropertyOrientation) -> Swift.Void)
|
|
62
74
|
public func switchToFrontCamera()
|
|
63
75
|
public func capturePhoto(completion: @escaping (Swift.Result<AVFoundation.AVCapturePhoto, FootprintNativeCameraSwift.CameraError>) -> Swift.Void)
|
|
@@ -162,10 +174,12 @@ public struct CaptureTokens {
|
|
|
162
174
|
public let backgroundColor: FootprintNativeCameraSwift.CaptureTokens.BackgroundColor
|
|
163
175
|
public let textColor: FootprintNativeCameraSwift.CaptureTokens.TextColor
|
|
164
176
|
public let borderColor: FootprintNativeCameraSwift.CaptureTokens.BorderColor
|
|
165
|
-
public init(accent: SwiftUICore.Color = Color(fpHex:
|
|
177
|
+
public init(accent: SwiftUICore.Color = Color(fpHex: 0xFF387F7F))
|
|
166
178
|
}
|
|
167
179
|
extension SwiftUICore.Color {
|
|
168
180
|
public init(fpHex hex: Swift.UInt32)
|
|
181
|
+
public init(fpHex light: Swift.UInt32, dark: Swift.UInt32)
|
|
182
|
+
public init?(fpHexString hex: Swift.String?)
|
|
169
183
|
}
|
|
170
184
|
final public class CameraCaptureViewModel : Combine.ObservableObject, @unchecked Swift.Sendable {
|
|
171
185
|
@Combine.Published<FootprintNativeCamera.CameraCaptureState> @_projectedValueProperty($cameraCaptureState) final public var cameraCaptureState: FootprintNativeCamera.CameraCaptureState {
|
|
@@ -358,7 +372,7 @@ public enum CaptureButtonVariant {
|
|
|
358
372
|
public typealias Body = @_opaqueReturnTypeOf("$s26FootprintNativeCameraSwift21CapturePreviewOverlayV4bodyQrvp", 0) __
|
|
359
373
|
}
|
|
360
374
|
@_Concurrency.MainActor @preconcurrency public struct CountdownView : SwiftUICore.View {
|
|
361
|
-
@_Concurrency.MainActor @preconcurrency public init(shouldRun: SwiftUICore.Binding<Swift.Bool>, tokens: FootprintNativeCameraSwift.CaptureTokens = CaptureTokens(), onComplete: @escaping () -> Swift.Void)
|
|
375
|
+
@_Concurrency.MainActor @preconcurrency public init(shouldRun: SwiftUICore.Binding<Swift.Bool>, tokens: FootprintNativeCameraSwift.CaptureTokens = CaptureTokens(), isPassport: Swift.Bool = false, onComplete: @escaping () -> Swift.Void)
|
|
362
376
|
@_Concurrency.MainActor @preconcurrency public var body: some SwiftUICore.View {
|
|
363
377
|
get
|
|
364
378
|
}
|
|
@@ -26,13 +26,25 @@ import _StringProcessing
|
|
|
26
26
|
import _SwiftConcurrencyShims
|
|
27
27
|
public class AutocaptureManager {
|
|
28
28
|
public init()
|
|
29
|
-
public func detectForAutoCapture(_ image: CoreVideo.CVPixelBuffer, orientation: ImageIO.CGImagePropertyOrientation, side: Swift.String) -> Swift.String
|
|
29
|
+
public func detectForAutoCapture(_ image: CoreVideo.CVPixelBuffer, orientation: ImageIO.CGImagePropertyOrientation, side: Swift.String, isPassport: Swift.Bool = false) -> Swift.String
|
|
30
30
|
@objc deinit
|
|
31
31
|
}
|
|
32
32
|
public struct CameraConstants {
|
|
33
33
|
public let deviceToFrameWidthRatioPortraitDoc: CoreFoundation.CGFloat
|
|
34
34
|
public let deviceToFrameWidthRatioLandscapeDoc: CoreFoundation.CGFloat
|
|
35
35
|
public let deviceToFrameRatioSelfie: CoreFoundation.CGFloat
|
|
36
|
+
public let documentBoxHeightRatioCard: CoreFoundation.CGFloat
|
|
37
|
+
public let documentBoxHeightRatioPassport: CoreFoundation.CGFloat
|
|
38
|
+
public let documentCenteringMargin: CoreFoundation.CGFloat
|
|
39
|
+
public let documentAcceptFillFactor: CoreFoundation.CGFloat
|
|
40
|
+
public let documentMaxFillFactor: CoreFoundation.CGFloat
|
|
41
|
+
public let documentAcceptFillFactorPassport: CoreFoundation.CGFloat
|
|
42
|
+
public let documentMaxFillFactorPassport: CoreFoundation.CGFloat
|
|
43
|
+
public let documentCenteringMarginPassport: CoreFoundation.CGFloat
|
|
44
|
+
public let motionAccelerationThresholdPassport: Swift.Double
|
|
45
|
+
public let autocaptureGracePeriod: Swift.Double
|
|
46
|
+
public let autocaptureGracePeriodPassport: Swift.Double
|
|
47
|
+
public let motionAccelerationThreshold: Swift.Double
|
|
36
48
|
public init()
|
|
37
49
|
}
|
|
38
50
|
public enum CameraError : Swift.Error {
|
|
@@ -57,7 +69,7 @@ public enum CameraError : Swift.Error {
|
|
|
57
69
|
}
|
|
58
70
|
final public let orientationHelper: FootprintNativeCameraSwift.CameraOrientationHelper
|
|
59
71
|
@objc override dynamic public init()
|
|
60
|
-
public func setupCaptureSession() throws
|
|
72
|
+
public func setupCaptureSession(position: AVFoundation.AVCaptureDevice.Position = .back) throws
|
|
61
73
|
public func setupDetection(processFrame: @escaping (CoreVideo.CVImageBuffer, ImageIO.CGImagePropertyOrientation) -> Swift.Void)
|
|
62
74
|
public func switchToFrontCamera()
|
|
63
75
|
public func capturePhoto(completion: @escaping (Swift.Result<AVFoundation.AVCapturePhoto, FootprintNativeCameraSwift.CameraError>) -> Swift.Void)
|
|
@@ -162,10 +174,12 @@ public struct CaptureTokens {
|
|
|
162
174
|
public let backgroundColor: FootprintNativeCameraSwift.CaptureTokens.BackgroundColor
|
|
163
175
|
public let textColor: FootprintNativeCameraSwift.CaptureTokens.TextColor
|
|
164
176
|
public let borderColor: FootprintNativeCameraSwift.CaptureTokens.BorderColor
|
|
165
|
-
public init(accent: SwiftUICore.Color = Color(fpHex:
|
|
177
|
+
public init(accent: SwiftUICore.Color = Color(fpHex: 0xFF387F7F))
|
|
166
178
|
}
|
|
167
179
|
extension SwiftUICore.Color {
|
|
168
180
|
public init(fpHex hex: Swift.UInt32)
|
|
181
|
+
public init(fpHex light: Swift.UInt32, dark: Swift.UInt32)
|
|
182
|
+
public init?(fpHexString hex: Swift.String?)
|
|
169
183
|
}
|
|
170
184
|
final public class CameraCaptureViewModel : Combine.ObservableObject, @unchecked Swift.Sendable {
|
|
171
185
|
@Combine.Published<FootprintNativeCamera.CameraCaptureState> @_projectedValueProperty($cameraCaptureState) final public var cameraCaptureState: FootprintNativeCamera.CameraCaptureState {
|
|
@@ -358,7 +372,7 @@ public enum CaptureButtonVariant {
|
|
|
358
372
|
public typealias Body = @_opaqueReturnTypeOf("$s26FootprintNativeCameraSwift21CapturePreviewOverlayV4bodyQrvp", 0) __
|
|
359
373
|
}
|
|
360
374
|
@_Concurrency.MainActor @preconcurrency public struct CountdownView : SwiftUICore.View {
|
|
361
|
-
@_Concurrency.MainActor @preconcurrency public init(shouldRun: SwiftUICore.Binding<Swift.Bool>, tokens: FootprintNativeCameraSwift.CaptureTokens = CaptureTokens(), onComplete: @escaping () -> Swift.Void)
|
|
375
|
+
@_Concurrency.MainActor @preconcurrency public init(shouldRun: SwiftUICore.Binding<Swift.Bool>, tokens: FootprintNativeCameraSwift.CaptureTokens = CaptureTokens(), isPassport: Swift.Bool = false, onComplete: @escaping () -> Swift.Void)
|
|
362
376
|
@_Concurrency.MainActor @preconcurrency public var body: some SwiftUICore.View {
|
|
363
377
|
get
|
|
364
378
|
}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onefootprint/footprint-native-camera-module",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Native KMM camera module: detection, autocapture, and document capture UI for iOS + Android. Consumed by @onefootprint/footprint-expo-camera-module (the Expo bridge) and by HandoffSharedLogic.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|