@onefootprint/footprint-native-camera-module 0.1.0 → 0.1.1
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/Info.plist +0 -4
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCamera.xcframework/ios-arm64/FootprintNativeCamera.framework/FootprintNativeCamera +0 -0
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCamera.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCamera.framework/FootprintNativeCamera +0 -0
- 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.private.swiftinterface +1 -1
- 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 +1 -1
- 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.private.swiftinterface +1 -1
- 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 +1 -1
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/Modules/FootprintNativeCameraSwift.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1 -1
- 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 +1 -1
- package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/ios-arm64_x86_64-simulator/FootprintNativeCameraSwift.framework/_CodeSignature/CodeResources +1 -1
- package/FootprintNativeCameraSwift.podspec +1 -1
- package/README.md +21 -65
- package/android/libs/footprint-native-camera-module.aar +0 -0
- package/package.json +1 -1
|
@@ -7,8 +7,6 @@
|
|
|
7
7
|
<dict>
|
|
8
8
|
<key>BinaryPath</key>
|
|
9
9
|
<string>FootprintNativeCamera.framework/FootprintNativeCamera</string>
|
|
10
|
-
<key>DebugSymbolsPath</key>
|
|
11
|
-
<string>dSYMs</string>
|
|
12
10
|
<key>LibraryIdentifier</key>
|
|
13
11
|
<string>ios-arm64_x86_64-simulator</string>
|
|
14
12
|
<key>LibraryPath</key>
|
|
@@ -26,8 +24,6 @@
|
|
|
26
24
|
<dict>
|
|
27
25
|
<key>BinaryPath</key>
|
|
28
26
|
<string>FootprintNativeCamera.framework/FootprintNativeCamera</string>
|
|
29
|
-
<key>DebugSymbolsPath</key>
|
|
30
|
-
<string>dSYMs</string>
|
|
31
27
|
<key>LibraryIdentifier</key>
|
|
32
28
|
<string>ios-arm64</string>
|
|
33
29
|
<key>LibraryPath</key>
|
|
Binary file
|
|
Binary file
|
package/FootprintNativeCameraSwift/Frameworks/FootprintNativeCameraSwift.xcframework/Info.plist
CHANGED
|
@@ -8,32 +8,32 @@
|
|
|
8
8
|
<key>BinaryPath</key>
|
|
9
9
|
<string>FootprintNativeCameraSwift.framework/FootprintNativeCameraSwift</string>
|
|
10
10
|
<key>LibraryIdentifier</key>
|
|
11
|
-
<string>ios-
|
|
11
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
12
12
|
<key>LibraryPath</key>
|
|
13
13
|
<string>FootprintNativeCameraSwift.framework</string>
|
|
14
14
|
<key>SupportedArchitectures</key>
|
|
15
15
|
<array>
|
|
16
16
|
<string>arm64</string>
|
|
17
|
+
<string>x86_64</string>
|
|
17
18
|
</array>
|
|
18
19
|
<key>SupportedPlatform</key>
|
|
19
20
|
<string>ios</string>
|
|
21
|
+
<key>SupportedPlatformVariant</key>
|
|
22
|
+
<string>simulator</string>
|
|
20
23
|
</dict>
|
|
21
24
|
<dict>
|
|
22
25
|
<key>BinaryPath</key>
|
|
23
26
|
<string>FootprintNativeCameraSwift.framework/FootprintNativeCameraSwift</string>
|
|
24
27
|
<key>LibraryIdentifier</key>
|
|
25
|
-
<string>ios-
|
|
28
|
+
<string>ios-arm64</string>
|
|
26
29
|
<key>LibraryPath</key>
|
|
27
30
|
<string>FootprintNativeCameraSwift.framework</string>
|
|
28
31
|
<key>SupportedArchitectures</key>
|
|
29
32
|
<array>
|
|
30
33
|
<string>arm64</string>
|
|
31
|
-
<string>x86_64</string>
|
|
32
34
|
</array>
|
|
33
35
|
<key>SupportedPlatform</key>
|
|
34
36
|
<string>ios</string>
|
|
35
|
-
<key>SupportedPlatformVariant</key>
|
|
36
|
-
<string>simulator</string>
|
|
37
37
|
</dict>
|
|
38
38
|
</array>
|
|
39
39
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
2
|
// swift-compiler-version: Apple Swift version 6.3.3 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
|
|
3
|
-
// swift-module-flags: -target arm64-apple-
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios14.0 -enable-objc-interop -enable-library-evolution -swift-version 6 -O -enable-experimental-feature DebugDescriptionMacro -module-name FootprintNativeCameraSwift -package-name footprintnativecameraswift
|
|
4
4
|
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3
|
|
5
5
|
import AVFoundation
|
|
6
6
|
import Combine
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
2
|
// swift-compiler-version: Apple Swift version 6.3.3 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
|
|
3
|
-
// swift-module-flags: -target arm64-apple-
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios14.0 -enable-objc-interop -enable-library-evolution -swift-version 6 -O -enable-experimental-feature DebugDescriptionMacro -module-name FootprintNativeCameraSwift -package-name footprintnativecameraswift
|
|
4
4
|
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3
|
|
5
5
|
import AVFoundation
|
|
6
6
|
import Combine
|
|
Binary file
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<dict>
|
|
7
7
|
<key>Assets.car</key>
|
|
8
8
|
<data>
|
|
9
|
-
|
|
9
|
+
iSpBN//iKpGtqqJzpZXIcEsaDbc=
|
|
10
10
|
</data>
|
|
11
11
|
</dict>
|
|
12
12
|
<key>files2</key>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<dict>
|
|
16
16
|
<key>hash2</key>
|
|
17
17
|
<data>
|
|
18
|
-
|
|
18
|
+
TyV/ZZoJQj08QkIuxahmIPw43ysCAQ1VTG9Iqr/twHE=
|
|
19
19
|
</data>
|
|
20
20
|
</dict>
|
|
21
21
|
</dict>
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
2
|
// swift-compiler-version: Apple Swift version 6.3.3 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
|
|
3
|
-
// swift-module-flags: -target arm64-apple-
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios14.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 6 -O -enable-experimental-feature DebugDescriptionMacro -module-name FootprintNativeCameraSwift -package-name footprintnativecameraswift
|
|
4
4
|
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3
|
|
5
5
|
import AVFoundation
|
|
6
6
|
import Combine
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
2
|
// swift-compiler-version: Apple Swift version 6.3.3 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
|
|
3
|
-
// swift-module-flags: -target arm64-apple-
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios14.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 6 -O -enable-experimental-feature DebugDescriptionMacro -module-name FootprintNativeCameraSwift -package-name footprintnativecameraswift
|
|
4
4
|
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3
|
|
5
5
|
import AVFoundation
|
|
6
6
|
import Combine
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
2
|
// swift-compiler-version: Apple Swift version 6.3.3 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
|
|
3
|
-
// swift-module-flags: -target x86_64-apple-
|
|
3
|
+
// swift-module-flags: -target x86_64-apple-ios14.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 6 -O -enable-experimental-feature DebugDescriptionMacro -module-name FootprintNativeCameraSwift -package-name footprintnativecameraswift
|
|
4
4
|
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3
|
|
5
5
|
import AVFoundation
|
|
6
6
|
import Combine
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
2
|
// swift-compiler-version: Apple Swift version 6.3.3 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
|
|
3
|
-
// swift-module-flags: -target x86_64-apple-
|
|
3
|
+
// swift-module-flags: -target x86_64-apple-ios14.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 6 -O -enable-experimental-feature DebugDescriptionMacro -module-name FootprintNativeCameraSwift -package-name footprintnativecameraswift
|
|
4
4
|
// swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3
|
|
5
5
|
import AVFoundation
|
|
6
6
|
import Combine
|
|
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
|
|
|
10
10
|
s.license = package['license']
|
|
11
11
|
s.author = 'Footprint'
|
|
12
12
|
s.homepage = 'https://onefootprint.com'
|
|
13
|
-
s.platforms = { :ios => '
|
|
13
|
+
s.platforms = { :ios => '14.0' }
|
|
14
14
|
s.swift_version = '5.9'
|
|
15
15
|
s.source = { git: '' }
|
|
16
16
|
s.static_framework = true
|
package/README.md
CHANGED
|
@@ -1,78 +1,34 @@
|
|
|
1
|
-
# footprint-native-camera-module
|
|
1
|
+
# @onefootprint/footprint-native-camera-module
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Native document-capture implementation — camera, auto-capture, and on-device
|
|
4
|
+
detection — for [Footprint](https://www.onefootprint.com)'s Expo SDK. It ships the
|
|
5
|
+
compiled iOS and Android binaries and is consumed through
|
|
6
|
+
[`@onefootprint/footprint-expo-camera-module`](https://www.npmjs.com/package/@onefootprint/footprint-expo-camera-module);
|
|
7
|
+
you don't call it directly.
|
|
4
8
|
|
|
5
|
-
|
|
6
|
-
- `@onefootprint/footprint-expo-camera-module` — via React Native autolinking (iOS podspec + Android gradle subproject), for the Expo SDK's native document capture.
|
|
9
|
+
## Install
|
|
7
10
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
| File | What |
|
|
11
|
-
|---|---|
|
|
12
|
-
| `CameraCaptureState.kt` / `CaptureMode.kt` / `AutoCaptureStatus.kt` | Camera/capture state enums (`.value: String` for cross-runtime mapping). |
|
|
13
|
-
| `DocumentSide.kt` | `typealias DocumentSide = String` + `DocumentSides` constants. |
|
|
14
|
-
| `CaptureAppearance.kt` / `CaptureTheme.kt` | Theme contract painted by the capture screen. Built via `CaptureAppearance.fromVariables(...)` from the broader `Appearance.variables` bag. |
|
|
15
|
-
| `CaptureCopy.kt` / `CaptureTranslations.kt` | Localized copy table keyed by language code. |
|
|
16
|
-
| `CaptureUploadClient.kt` | Interface for per-side upload + process. Adapters provided by consumers. |
|
|
17
|
-
|
|
18
|
-
## Public surface (Android)
|
|
19
|
-
|
|
20
|
-
| File | What |
|
|
21
|
-
|---|---|
|
|
22
|
-
| `DocumentCaptureScreen.kt` | Compose screen. Same name as iOS's SwiftUI view. |
|
|
23
|
-
| `DocumentCaptureActivity.kt` | Hosts the Compose screen. Declared in this module's `AndroidManifest.xml`; merged into consumer apps automatically. |
|
|
24
|
-
| `DocumentCaptureContract.kt` | `ActivityResultContract<DocumentCaptureInput, DocumentCaptureOutcome>`. |
|
|
25
|
-
| `AutocaptureManager.kt` / `DocumentDetection.kt` / `FaceDetection.kt` | Per-frame detection. |
|
|
26
|
-
|
|
27
|
-
## Public surface (iOS — via `FootprintNativeCameraSwift/Sources/`)
|
|
28
|
-
|
|
29
|
-
| File | What |
|
|
30
|
-
|---|---|
|
|
31
|
-
| `DocumentCaptureScreen.swift` | SwiftUI view. Wrap in `UIHostingController` from UIKit hosts. |
|
|
32
|
-
| `CameraManager.swift` / `AutocaptureManager.swift` / `CameraPreview.swift` / `PhotoPicker.swift` | Capture primitives. |
|
|
33
|
-
|
|
34
|
-
## Distribution
|
|
35
|
-
|
|
36
|
-
| Target | How |
|
|
37
|
-
|---|---|
|
|
38
|
-
| HandoffSwift (iOS) | Consumes `FootprintNativeCameraSwift/Package.swift` (SwiftPM). |
|
|
39
|
-
| HandoffSharedLogic (Android) | Composite Gradle build — `includeBuild("../footprint-native-camera-module")` in `HandoffSharedLogic/settings.gradle.kts`. |
|
|
40
|
-
| Expo bridge (both) | React Native autolinking via `react-native.config.js` → `FootprintNativeCameraSwift.podspec` (iOS) + `android/build.gradle` (Android). |
|
|
41
|
-
|
|
42
|
-
## Build
|
|
11
|
+
Install it together with the camera bridge and the SDK:
|
|
43
12
|
|
|
44
13
|
```sh
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
14
|
+
npm install @onefootprint/footprint-expo \
|
|
15
|
+
@onefootprint/footprint-expo-camera-module \
|
|
16
|
+
@onefootprint/footprint-native-camera-module
|
|
48
17
|
```
|
|
49
18
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
- Both are gitignored and regenerated from source.
|
|
54
|
-
|
|
55
|
-
## Dev workflow
|
|
19
|
+
React Native autolinking wires up the native code automatically (iOS podspec +
|
|
20
|
+
Android Gradle) — there's no manual native setup. Run `npx expo prebuild --clean`
|
|
21
|
+
after installing.
|
|
56
22
|
|
|
57
|
-
|
|
23
|
+
## Documentation
|
|
58
24
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
pnpm build:native # rebuilds xcframework + AAR
|
|
62
|
-
yalc publish # pushes to local yalc store
|
|
63
|
-
|
|
64
|
-
# In any consumer (footprint-expo-camera-module, ...):
|
|
65
|
-
yalc update # pulls the latest from yalc
|
|
66
|
-
pnpm install
|
|
67
|
-
```
|
|
25
|
+
See the **[native onboarding guide](https://docs.onefootprint.com/articles/sdks/expo-native)**
|
|
26
|
+
for the full integration (initialize → identify → collect → process).
|
|
68
27
|
|
|
69
|
-
|
|
28
|
+
## Requirements
|
|
70
29
|
|
|
71
|
-
|
|
30
|
+
Expo SDK 53+, React 19+, React Native 0.70+.
|
|
72
31
|
|
|
73
|
-
|
|
74
|
-
workflow (macOS runner, npm OIDC trusted publishing). `prepack` runs `build:native`, so the
|
|
75
|
-
gitignored xcframeworks + AAR are rebuilt from source and packed into the tarball. Preview the
|
|
76
|
-
tarball contents with `npm pack --dry-run`.
|
|
32
|
+
## License
|
|
77
33
|
|
|
78
|
-
|
|
34
|
+
MIT
|
|
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.1",
|
|
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",
|