Skip to content

Camera: move to @vyui/camera - #3

Merged
KealanAU merged 1 commit into
mainfrom
chore/vyui-camera
Jul 25, 2026
Merged

KealanAU merged 1 commit into
mainfrom
chore/vyui-camera

Conversation

@KealanAU

Copy link
Copy Markdown
Owner

Swaps the vendored @kealanau/lynx-camera tarball for @vyui/camera@0.0.2 off npm.

  • app/vendor/ tarball and its file: dependency deleted; workspace release-age exclude updated
  • capturePhoto / pickPhoto now pass includeBase64 explicitly — the new package defaults it off, the old one always returned base64
  • pickFromLibrary uses adapter.pickPhoto instead of poking NativeModules directly
  • iOS host compiles node_modules/@vyui/camera/ios (the old path pointed at a sibling checkout that no longer exists)
  • Deployment target → iOS 15, matching the package podspec (saveToLibrary uses iOS 14+ PHPhotoLibrary.requestAuthorization(for:))
  • Font source entry pinned to an explicit group: — XcodeGen was nesting it under the node_modules tree and doubling its path

Native side needs xcodegen generate + pod install in app/native/ios-host (already run locally).

The camera package is on npm now, so the file: dependency on
app/vendor/kealanau-lynx-camera-0.1.0-alpha.0.tgz goes away along with the
tarball itself.

capturePhoto and pickPhoto now pass includeBase64 explicitly: the new package
defaults it off, where the old one always returned base64 — without this every
capture fails on "Camera returned no image data". pickFromLibrary drops its
raw NativeModules workaround for adapter.pickPhoto.

iOS host: the natives compile from node_modules/@vyui/camera/ios instead of a
sibling lynx-camera checkout that no longer exists, and the deployment target
moves to iOS 15 to match the package's podspec (saveToLibrary uses the iOS 14+
PHPhotoLibrary.requestAuthorization(for:)). The font entry needed an explicit
group: XcodeGen nested it under the node_modules tree and doubled its path.
@KealanAU
KealanAU marked this pull request as ready for review July 25, 2026 08:38
@KealanAU
KealanAU merged commit 459d451 into main Jul 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant