Commit Graph

206 Commits

Author SHA1 Message Date
Ivan Vershigora
0ed049a62d fix: bump 2026-04-24 19:25:34 +01:00
Ivan Vershigora
58ff00300c feat: detectQRCodeInImage API 2026-04-24 19:25:34 +01:00
Ivan Vershigora
e6dd85b4ea
bump to v17.0.3 2026-04-20 16:11:12 +01:00
Ivan Vershigora
75117f1287 bump to v17.0.2 2026-04-20 14:05:59 +01:00
Ivan Vershigora
edb054a8cb
fix: bugs 2026-01-17 11:24:47 +00:00
Ivan Vershigora
202f9f6455
Resolve merge conflicts, preserve no-google customizations 2026-01-17 10:21:18 +00:00
Seph Soliman
a73b84ef78 Removed iOsSleepBeforeStarting
No longer needed with proper begin/commit handling
2026-01-08 16:41:43 -08:00
Seph Soliman
a2f61a0cbb Added iOsDeferredStart for UI performance
Reformatted RealCamera.swift
2026-01-08 13:19:54 -08:00
Seph Soliman
cdc1cced0e Fixed #758
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.
2026-01-08 12:05:17 -08:00
Ivan Vershigora
05ae12c0b1
Sync from teslamotors/react-native-camera-kit@cc6515b
Selectively synced upstream changes while preserving QR-only Android implementation.

Changes auto-synced (Category A - 19 files):
- iOS: All 8 files (stress test support + allowedBarcodeTypes filtering)
- TypeScript: All 7 files (Camera components, props, types, specs)
- Example app: All 3 files (stress test + allowedBarcodeTypes example)
- Config: Moved .nvmrc to root

Changes selectively synced (Category B - 2 files):
- CodeFormat.kt: Added UPC_A("upc-a") enum value (1 hunk applied, 1 skipped)
- README.md: Added allowedBarcodeTypes docs with QR-only note

Changes skipped (Android barcode conflicts):
- CKCamera.kt: All barcode filtering logic (~50+ hunks)
  Reason: Fork uses onBarcodeRead(String), upstream uses onBarcodeRead(List<Barcode>, Size)
- CKCameraManager.kt: setAllowedBarcodeTypes property setter
- package.json: Version bump (fork maintains independent versioning)

Upstream range: 5a709e0..cc6515b (12 commits)
Main feature: allowedBarcodeTypes barcode filtering (iOS synced, Android QR-only preserved)

Fork integrity checks:
 No Google ML Kit dependencies
 QRDecoder.decode() preserved
 limpbrains/qr dependency intact
 yarn build && yarn lint passed

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-07 23:27:08 +00:00
Seph Soliman
f5e3bc98e9 Add mount stress test to CameraKit example app
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.
2026-01-05 14:33:04 -08:00
Seph Soliman
2a1f06aa12 Fixed optional behavior of allowedBarcodeTypes
Added more barcode types
2025-12-30 15:11:19 -08:00
Ivan
91909ff575
replace google mlkit with limpbrains/qr 2025-12-29 14:36:52 +00:00
copilot-swe-agent[bot]
c808dd22d8 Fix missing Bundler in linter workflow by adding gem install bundler step
Co-authored-by: scarlac <895369+scarlac@users.noreply.github.com>
2025-09-11 19:37:45 +00:00
Seph Soliman
e3c93b9b88 Fixed torch not being enabled on startup #593 2025-09-09 18:25:01 -07:00
Seph Soliman
84d11bfc58 Fixed support for RN 0.76 and other older RN versions
Removed includesGeneratedCode since it's unreliable and is temporary
Added new/old arch code split for Android
2025-09-09 13:15:50 -07:00
Seph Soliman
697ecb1b6b Fixed #742 - Regression in v16.0.0 with apps with USE_FRAMEWORKS 2025-09-05 14:00:19 -07:00
Seph Soliman
9a41d1c8ae Fixed SafeAreaView dummy support on iOS
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
2025-09-04 15:38:29 -07:00
Seph Soliman
7089dd3735 Upgraded example to RN 0.81
Added consistent example styles
Added node requirement specification
Removed SafeAreaView
Added dummy SafeAreaView implementation
2025-08-26 18:29:52 -07:00
Seph Soliman
089fd73041 Fixed AVCaptureSession (2nd attempt)
Fixed iOS 13 compile errors
2025-06-09 16:46:02 -07:00
Seph Soliman
76d956a69a Fixed lint issues
Removed hidden StatusBar to fix under-camera UI on Android
Fixed missing execution bit on gradlew
2025-06-09 14:05:14 -07:00
Seph Soliman
ed64f2fc46 Fixed AVCaptureSession startRunning error
commit should always follow a begin
2025-04-23 15:56:09 -07:00
Wojciech Lewicki
438d4c2f53
fix: maxPhotoQualityPrioritization and add barcode prop on new arch 2025-04-01 16:24:14 +02:00
phlpsong
855b90b5fe feat: add barcodeFrameSize prop 2025-02-24 22:08:16 +08:00
Wojciech Lewicki
d42580f38b
fix: apply review suggestions 2025-01-07 14:41:57 +01:00
Wojciech Lewicki
91f943a514
fix: remove old way of autolinking to make codegen work on ios 2024-11-29 12:01:27 +01:00
Wojciech Lewicki
d4ff8a9b1d
chore: bump example to rn76 2024-11-29 11:04:27 +01:00
Seph Soliman
4d8d6e3fa5 Fixed iOS bundling issues with new arch changes 2024-11-14 14:57:56 -08:00
Seph Soliman
ace123eefa Added maxPhotoQualityPrioritization for iOS
Allows a massive capture speed-up of 60-80%
2024-11-14 13:34:07 -08:00
Seph Soliman
79ccbb0d7c RN 0.62.3 -> 0.74.1 for library
Gradle 3.0 -> 8.6
compileSdkVersion 31 -> 34
2024-05-14 18:57:29 -07:00
Seph Soliman
21f760117b RN 0.71.0 -> 0.74.1
Added support for volume buttons as capture buttons
Added yarn v3.6.4
2024-05-14 17:43:02 -07:00
Martin Lichstam
80c517dc68
Add resize mode cover/contain (#644)
* 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>
2024-04-30 16:24:19 -07:00
Imdad Ismail
234e7f89eb
added code format to see type of code scanned (#633)
* 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>
2024-04-30 16:18:00 -07:00
dependabot[bot]
d8da12c8ea
Bump @babel/traverse from 7.22.4 to 7.23.2 in /example (#611)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.4 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-30 16:12:54 -07:00
dependabot[bot]
da2c7cc698
Bump react-devtools-core from 4.27.8 to 4.28.4 in /example (#612)
Bumps [react-devtools-core](https://github.com/facebook/react/tree/HEAD/packages/react-devtools-core) from 4.27.8 to 4.28.4.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/HEAD/packages/react-devtools-core)

---
updated-dependencies:
- dependency-name: react-devtools-core
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-30 16:12:09 -07:00
David Bertet
8a2df98333
Fix barcode screen top button size (#631) 2024-04-30 16:10:35 -07:00
Seph Soliman
11b15fd236 Fixed Swift runtime failure/crash during unexpected capture() call
'Unexpectedly found nil while implicitly unwrapping an Optional value'
2023-11-03 14:38:19 -07:00
Seph Soliman
5256202fef Added Ruby version guidance
Re-ran yarn to update to beta13
2023-10-11 20:54:34 -07:00
Seph Soliman
81d5ba8147 Allow disabling the photo capture shutter sound on Android (#583) 2023-10-11 11:15:21 -07:00
dependabot[bot]
3efded3d0b
Bump activesupport from 7.0.6 to 7.0.7.2 in /example
Bumps [activesupport](https://github.com/rails/rails) from 7.0.6 to 7.0.7.2.
- [Release notes](https://github.com/rails/rails/releases)
- [Changelog](https://github.com/rails/rails/blob/v7.0.7.2/activesupport/CHANGELOG.md)
- [Commits](https://github.com/rails/rails/compare/v7.0.6...v7.0.7.2)

---
updated-dependencies:
- dependency-name: activesupport
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-23 21:49:10 +00:00
David Bertet
de062130fe Fix linting error
- java.lang.Iterable#forEach requires minSdkVersion 24
- defaultConfig > targetSdkVersion 30 should be overridden by parent app, disable the error as it is Play Store specific
2023-08-11 18:16:36 +02:00
Seph Soliman
76d2306e7e Fixed 'yarn bootstrap' script 2023-07-26 15:49:45 -07:00
Seph Soliman
79fb48e863 Hide statusbar when camera is open 2023-07-25 12:38:47 -07:00
Seph Soliman
c4ac4a00d6 Fixed focusMode and zoomMode not being enabled by default 2023-07-25 09:57:31 -07:00
Seph Soliman
289696dfb1 Removed lodash as an explicit dependency 2023-07-20 12:53:53 -07:00
Seph Soliman
96940461d8 Fixed broken postinstall script (2) 2023-07-19 17:16:26 -07:00
Seph Soliman
b2bdc44a38
Merge pull request #559 from teslamotors/feature/zoom
Added zoom control
2023-07-19 16:32:59 -07:00
Seph Soliman
40cc209652 Fixed maxZoom not being normalized 2023-07-19 15:10:15 -07:00
Seph Soliman
7a89620c19 Removed unused images 2023-07-19 10:31:17 -07:00
Seph Soliman
dc10c8a8fa Added UI rotation example code 2023-07-19 10:28:51 -07:00