react-native-vision-camera icon indicating copy to clipboard operation
react-native-vision-camera copied to clipboard

fix: Move `Frame` into VisionCamera `Core` (and change namespace)

Open mrousavy opened this issue 1 year ago • 1 comments

What

Android

Moves Frame into the VisionCamera Core namespace and rewrites it to a Kotlin class.

⚠️ This might be a breaking change for Frame Processor Plugins, this is what they need to change:

- import com.mrousavy.camera.frameprocessors.Frame;
+ import com.mrousavy.camera.core.Frame;

iOS

Moves Frame into the VisionCamera Core subspec, and rewrites it to a Swift class.

This simplifies a few occasions where CMSampleBuffer was used in addition to orientation and isMirrored props, and also makes it a bit more efficient as it is now a Swift class instead of an NSObject.

Changes

Tested on

Related issues

mrousavy avatar Jul 12 '24 17:07 mrousavy

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-vision-camera ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 12, 2024 5:57pm

vercel[bot] avatar Jul 12 '24 17:07 vercel[bot]