Commit Graph

193 Commits

Author SHA1 Message Date
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
Seph Soliman
21f713d62d Added new camera flip icon
Added a customizable capture button in example
2023-07-19 09:55:00 -07:00
Seph Soliman
3253daa6c3 Changed and normalized default zoom to be 1.0x (thx @DavidBertet) 2023-07-18 21:03:14 -07:00
Seph Soliman
cef0a85cac
Merge pull request #555 from teslamotors/dependabot/npm_and_yarn/example/fast-xml-parser-4.2.5
Bump fast-xml-parser from 4.2.4 to 4.2.5 in /example
2023-07-18 15:06:40 -07:00
dependabot[bot]
6874b8911a
Bump semver from 5.7.1 to 5.7.2 in /example
Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v5.7.1...v5.7.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-18 22:05:18 +00:00
Seph Soliman
e129096208 Fixed zoom prop not working when cameraType is switched
(must explicitly be reset using zoom={0} if that is wanted)
Fixed non-unique queue name
2023-07-16 23:30:18 -07:00
Seph Soliman
91c57f0ded Fixed uncontrolled zoom not working on the barcode scanner 2023-07-14 16:54:21 -07:00
Seph Soliman
e6688a2c69 Added zoom control on Android 2023-07-13 18:09:21 -07:00
Seph Soliman
f58bc77ef1 Added zoom control
Added max zoom control
Added onZoom handler
2023-07-12 18:12:33 -07:00
Seph Soliman
478a68b23e Fixed scan frame dimensions on Android 2023-07-10 12:18:35 -07:00
David Bertet
5f1096230c Rework UI to make it work on both platforms 2023-07-08 01:30:02 -07:00
dependabot[bot]
03c0eca536
Bump fast-xml-parser from 4.2.4 to 4.2.5 in /example
Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) from 4.2.4 to 4.2.5.
- [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases)
- [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/NaturalIntelligence/fast-xml-parser/compare/v4.2.4...v4.2.5)

---
updated-dependencies:
- dependency-name: fast-xml-parser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-07 20:56:51 +00:00
David Bertet
d738b6c8d2 Using hooks/functional component for App 2023-07-04 12:43:32 -07:00
David Bertet
d92b40b202 Make button targets bigger by adding some padding 2023-07-04 01:40:17 -07:00