Commit Graph

182 Commits

Author SHA1 Message Date
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
Seph Soliman
fee756b55c Fixed orientation issues for both orientation locked and rotated UIs
Added support for thumbnails (for later)
Fixed default zoom to be wide angle camera instead of ultra wide
2023-07-03 20:21:20 -07:00
Seph Soliman
37737ace6f Rewrote example project
Using hooks/functional components
Fixed zoom on second pinch
Fixed orientation issues
Added support for new ultra wide camera (fix blurry close ups)
2023-07-03 20:21:11 -07:00
Seph Soliman
5a7df3ee80 Removed CameraScreen 2023-07-03 20:21:01 -07:00
David Bertet
9342a1d2d9 Lay the foundation for a Swift migration 2023-06-11 19:01:23 -07:00
Seph Soliman
9127612887
Merge pull request #549 from teslamotors/dependabot/npm_and_yarn/example/fast-xml-parser-4.2.4
Bump fast-xml-parser from 4.2.2 to 4.2.4 in /example
2023-06-11 17:58:34 -07:00
Seph Soliman
8e7b1dae47
Merge pull request #545 from DavidBertet/task/improve_type_definition
Improve type definition & README
2023-06-11 17:49:44 -07:00
dependabot[bot]
be1efbedb0
Bump fast-xml-parser from 4.2.2 to 4.2.4 in /example
Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) from 4.2.2 to 4.2.4.
- [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/4.2.2...v4.2.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 00:30:44 +00:00
David Bertet
8cd7648b41 Update example to react native ^0.71.0 2023-06-02 02:10:55 -07:00
David Bertet
05c8f1862c Improve type definition 2023-06-02 02:08:14 -07:00
Patrick Kabwe
e01d4aa834
chore: add types (#505) 2023-05-22 13:28:42 -07:00
dependabot[bot]
90b8b733d8
Bump simple-plist from 1.1.1 to 1.3.1 in /example (#468)
Bumps [simple-plist](https://github.com/wollardj/simple-plist) from 1.1.1 to 1.3.1.
- [Release notes](https://github.com/wollardj/simple-plist/releases)
- [Commits](https://github.com/wollardj/simple-plist/compare/v1.1.1...v1.3.1)

---
updated-dependencies:
- dependency-name: simple-plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-22 13:26:28 -07:00