Releases: mrousavy/react-native-vision-camera
Releases · mrousavy/react-native-vision-camera
Release 3.8.1
3.8.1 (2024-01-17)
✨ Features
- Add
SharedArray.getSize()(#2406) (2f21609) - Expose
FrameProcessorPluginTS type (03ee0a2) - Use JSI's
ArrayBufferinstead ofTypedArray(#2408) (ba1d7ee)
🐛 Bug Fixes
- Fixes a crash on Android when using Frame Processor on API 29 (CPU + GPU flag use in PRIVATE/YUV) (#2408) (ba1d7ee)
- Fixes a crash on Android when using
frame.toArrayBuffer()due to the resultingHardwareBufferbeing closed (#2408) (ba1d7ee) - Fix C++ build-error when trying to use
JSITypedArray.h(#2396) (60f8a8c) - Make
Frameproperties readonly in Types (#2397) (e825e21) - Release
MediaActionSoundafter playing (#2390) (bdad4e1) - Use property accessors on
Frame(#2400) (773f278)
Release 3.8.0
3.8.0 (2024-01-15)
Breaking change: Native Frame Processor Plugin constructors now take an additional argument: VisionCameraProxy. This can be used to create instances of SharedArray, see #2383 for more information.
✨ Features
- Add
minFocusDistanceprop toCameraDevice(#2392) (58ef21e) - Add zero-copy
SharedArraytype to Frame Processor Plugins (#2383) (29fe98c)
🐛 Bug Fixes
- Avoid "CameraNotReady" errors when updating props in background (#2382) (a468602)
- Fix
CamcorderProfileout of range error (#2389) (17ae5fa) - Fix JNI TypedArray error (fe614a4)
- Fix SharedArray name (d747933)
📚 Documentation
Release 3.7.1
3.7.1 (2024-01-11)
✨ Features
🐛 Bug Fixes
- Also call
onInitializedwhenisActive=false(a8b85a3), closes /github.com/mrousavy/react-native-vision-camera/issues/2364#issuecomment-1883201425 - Fix Camera not stopping when
isActiveis set tofalse(#2361) (2b10622) - Fix Preview stretching on Android (#2377) (322b6fc)
📚 Documentation
Release 2.16.7
Release 3.7.0
3.7.0 (2024-01-08)
Quite a big release again! 🥳
Notable changes:
- If you use the
CodeScannerAPI, make sure to use the newVisionCamera_enableCodeScannerflag for Android which makes sure the MLKit model always gets bundled! (see the docs) 🕵️ - A ton of blackscreen and out of sync issues have been fixed on Android. See this PR.
✨ Features
- Add new
enableCodeScannerprop tobuild.gradleto make sureCodeScanneralways works (#2355) (5c99728) - Make
enableCodeScannerexpo config-plugin install the native dependency (#2348) (a8c16e3) - Make
Framethread-safe and improve error messages (#2327) (895f3ec) - Add two new
format/errors:invalid-video-stabilization-modeandformat-required(#2354) (cc60ad2) - Support 60 FPS on Samsung devices (if available) (#2339) (0d21bc3)
🐛 Bug Fixes
- Fix blackscreen issues and lifecycle when closing Camera (#2339) (0d21bc3)
- Fix a scenario where the concurrent
configure { ... }mechanism could drop important updates (#2339) (0d21bc3) - Fix Android lifecycle by allowing Android to close the
CameraDevicewhenisActive=false(#2339) (0d21bc3) - Fix Android blackscreens by refactoring
CameraSessionsetup (#2339) (0d21bc3) - Fix "photo/video is not enabled" errors (#2339) (0d21bc3)
- Fix "maxImages (3) has already been acquired" error (#2352) (2cd22ad)
- Fix "The given value for videoStabilizationMode could not be parsed" error (#2353) (833ffb8)
- Fix crash when trying to
console.log(frame)(#2335) (3dc7511) - Fix for inset of SENSOR_INFO_ACTIVE_ARRAY_SIZE for Android < 11 (#2306) (7905f2c)
- Fix iOS native
enableZoomGesturezoom logic (#2329) (30c4f9e) - Fix min/max exposure range on Android (#2304) (0d3ecd1)
- Unwrap boxed JNI types directly (#2337) (ef4e9fa)
- Validate input props (
fps,hdr,torch, ...) instead of silently crashing (#2354) (cc60ad2)
💨 Performance Improvements
- Make
getCameraPermissionandgetMicrophonePermissionsynchronous (#2302) (591cf30) - Don't re-create anything if session is closing down (#2339) (0d21bc3)
📚 Documentation
Release 3.6.17
Release 3.6.16
Release 3.6.15
3.6.15 (2023-12-12)
✨ Features
- Add
onStartedandonStoppedevents (#2273) (4ee52d6) - Add format filter for
iso(#2234) (52f78a1) - Support for C++ Frame Processor Plugins by publishing VisionCamera as a prefab (#2251) (248a08b)
🐛 Bug Fixes
- Fix
NoSuchElementExceptioningetRecommendedBitRate(#2266) (a612eb9) - Fix
Only the original thread that created a view hierarchy can touch it's viewserror (#2278) (2630650) - Fix out-of-memory crash in QR code scanner by closing Image (#2267) (9600a38)
- Fix RN 0.73 error "'hasConstants' overrides nothing" at CameraDevicesManager.kt (#2264) (9949184)
- Only close image once (df32d2c)
- Only copy over C++ headers (6107a24)