NSGenericException "startRunning may not be called between calls to
beginConfiguration and commitConfiguration"
The root cause was that AVCaptureSession.previewLayer.session = X
causes beginConfiguration + commitConfiguration, and since we had that
running on the main thread, it caused a race condition between the main
and sessionQueue threads.
iOsSleepBeforeStarting will be removed in an upcoming major release to
avoid breaking changes in v16.
Introduces a mount stress test feature in the example app, allowing repeated mounting and unmounting of the CameraExample component at a configurable interval. Updates CameraExample to support a 'stress' mode that triggers image capture and random zoom changes on mount.
Fixed zoom issue
Fixed Fabric (new arch) compile issues on both platforms
Fixed included broken codegen lib code
Fixed broken .h import paths to avoid setting custom build settings
Fixed potential memory issue by disabling view recycling
Added Fabric (new arch) support for camera view component
Added RN 0.81 for example
Added RN 0.79 for main lib
Added helper for re-running codegen
Added gitignore for Android codegen making a podspec
Added support for scanThrottleDelay on Android
Added includesGeneratedCode to package.json to indicate changes
Rewrote optional int props to use -1 instead due to RN bug
Moved to Obj-C with C++ support (.mm) to avoid C++ compile issues
* Add resize mode cover/contain
* Add resize to simulator, change type enum and add listener for resize
* Add resize to camera example
* Add description of resizeMode to readme
* Add description of resizeMode to readme
* Update ios/ReactNativeCameraKit/CameraView.swift
---------
Co-authored-by: Seph Soliman <github@seph.dk>
* added code format to see type of code scanned
* Update ios/ReactNativeCameraKit/SimulatorCamera.swift
Changed supported barcode types to list of CodeFormat
Co-authored-by: David Bertet <11665957+DavidBertet@users.noreply.github.com>
* Update android/src/main/java/com/rncamerakit/CodeFormat.kt
Added annotation for int type
Co-authored-by: David Bertet <11665957+DavidBertet@users.noreply.github.com>
* Added CodeFormat types and fixed an indentation on a function to match other functions
* Replaced AVMetadataObject with CodeFormat in all files
* Updated code format to case Iterable and changed supportedBarcodeType to code format cases
* Update src/Camera.d.ts
---------
Co-authored-by: David Bertet <11665957+DavidBertet@users.noreply.github.com>
Co-authored-by: Seph Soliman <github@seph.dk>