@onefootprint/footprint-native-camera-module 0.1.1 → 0.1.2

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.
Files changed (31) hide show
  1. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCamera.xcframework/Info.plist +5 -5
  2. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCamera.xcframework/ios-arm64/FootprintNativeCamera.framework/FootprintNativeCamera +0 -0
  3. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCamera.xcframework/ios-arm64/FootprintNativeCamera.framework/Headers/FootprintNativeCamera.h +11 -4
  4. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCamera.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCamera.framework/FootprintNativeCamera +0 -0
  5. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCamera.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCamera.framework/Headers/FootprintNativeCamera.h +11 -4
  6. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/Info.plist +5 -5
  7. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64/FootprintNativeCameraSwift.framework/FootprintNativeCameraSwift +0 -0
  8. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64/FootprintNativeCameraSwift.framework/FootprintNativeCameraSwift_FootprintNativeCameraSwift.bundle/Assets.car +0 -0
  9. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64/FootprintNativeCameraSwift.framework/FootprintNativeCameraSwift_FootprintNativeCameraSwift.bundle/Info.plist +0 -0
  10. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64/FootprintNativeCameraSwift.framework/Info.plist +0 -0
  11. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/arm64-apple-ios.abi.json +903 -85
  12. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/arm64-apple-ios.private.swiftinterface +18 -4
  13. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  14. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/arm64-apple-ios.swiftinterface +18 -4
  15. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/FootprintNativeCameraSwift +0 -0
  16. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/FootprintNativeCameraSwift_FootprintNativeCameraSwift.bundle/Assets.car +0 -0
  17. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/FootprintNativeCameraSwift_FootprintNativeCameraSwift.bundle/Info.plist +0 -0
  18. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/FootprintNativeCameraSwift_FootprintNativeCameraSwift.bundle/_CodeSignature/CodeDirectory +0 -0
  19. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/FootprintNativeCameraSwift_FootprintNativeCameraSwift.bundle/_CodeSignature/CodeResources +2 -2
  20. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/Info.plist +0 -0
  21. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/arm64-apple-ios-simulator.abi.json +903 -85
  22. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +18 -4
  23. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  24. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/arm64-apple-ios-simulator.swiftinterface +18 -4
  25. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/x86_64-apple-ios-simulator.abi.json +903 -85
  26. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +18 -4
  27. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  28. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +18 -4
  29. package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/_CodeSignature/CodeResources +1 -1
  30. package/android/libs/footprint-native-camera-module.aar +0 -0
  31. 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: 0xFF4A24DB))
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: 0xFF4A24DB))
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
  }