Commit Graph

232 Commits

Author SHA1 Message Date
Seph Soliman
5436375604
Merge pull request #693 from rawatnaresh/master
(Android) Add support to detect QR codes only when inside a frame
2025-02-11 11:04:09 -08:00
Seph Soliman
15a233a407
Merge pull request #687 from jlapp9/feature/android-buttonpress-events
Add support for onCaptureButtonPressIn and onCaptureButtonPressOut events on Android
2025-02-11 10:54:10 -08:00
Seph Soliman
8e43aafb19
Merge pull request #698 from aravind3566/patch-1
upgrade com.google.mlkit:barcode-scanning version
2025-02-11 10:07:59 -08:00
Aravind 🇮🇳
4a449babed
upgrade com.google.mlkit:barcode-scanning version 2025-02-08 13:56:19 +07:00
Karen
7e94541bbf fix(android): support RN 0.77 2025-01-27 10:47:41 +08:00
Naresh Rawat
2be02ce08f lint 2025-01-26 19:54:25 +05:45
Naresh Rawat
cf8c148b54 formatting 2025-01-25 16:27:09 +05:45
Naresh Rawat
e8fd5a75d1 reafactor 2025-01-25 16:09:45 +05:45
Naresh Rawat
5cc012ab60 QR code detection inside frame 2025-01-22 14:44:52 +05:45
Jameson Lapp
40794948bc Add support for onCaptureButtonPressIn and onCaptureButtonPressOut events on Android 2024-12-19 14:35:28 -05:00
Wojciech Lewicki
79dfe34189
fix: apply changes from review 2024-08-09 09:37:14 +02:00
Wojciech Lewicki
b8417d8c5e
fix: apply changes from review 2024-08-08 14:23:38 +02:00
Wojciech Lewicki
3b0f913704
fix: indent 2024-08-08 12:46:54 +02:00
Wojciech Lewicki
0e15019377
feat: add support for new arch 2024-08-06 11:35:56 +02: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
Stefan Berndt
3135697d55
feat: add namespace to build.gradle for AGP > 7 (#617) 2024-04-30 16:18:16 -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
David Bertet
a7413aa432
Fix #614. "onError" method needs to be declared (#630) 2024-04-30 16:11:16 -07:00
Seph Soliman
81d5ba8147 Allow disabling the photo capture shutter sound on Android (#583) 2023-10-11 11:15:21 -07:00
Seph Soliman
909546e04b Fixed QR scanner not always picking up clear codes
Aspect ratio was sometimes set incorrectly, depending on device
(Pixel 6 and 7 phones had troubles scanning 20x20mm codes)
2023-10-11 09:26:58 -07:00
Seph Soliman
d70ef7374c
Merge pull request #592 from elliottkember/patch-1
Fix: Correct onScale method signature in CKCamera.kt (again)
2023-10-10 15:22:56 -07:00
Elliott Kember
54a35f62ac
Fix: Correct onScale method signature in CKCamera.kt (again)
#559 broke a change in #551 regarding override types. This restores the fix
2023-10-03 10:37:53 -07:00
Med Dhia
516e65e7fe
Update RNCameraKitModule.kt with KDoc 2023-08-24 17:37:44 +01: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
73bd920ca4 Added onError for when Android fails to initialize the camera
May fail when phone is broken or
if there are no camera with the specs (e.g. aspect ratio)
2023-07-31 18:59:06 -07:00
Seph Soliman
e9fd0826d0 Updated docs, minor tweaks on Android 2023-07-18 21:35:20 -07:00
Seph Soliman
04dd979c4b Fixed zoom not updating when maxZoom prop changes
Fixed inline docs for props
Refactored Swift/Kotlin code to look alike (e.g. gesture handling)
2023-07-17 17:31:50 -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
6e054145bf
Merge pull request #547 from DavidBertet/task/swift_migration
Lay the foundation for a Swift migration
2023-07-11 17:34:11 -07:00
Seph Soliman
478a68b23e Fixed scan frame dimensions on Android 2023-07-10 12:18:35 -07:00
David Bertet
b0048a0bb6 Remove setTorchMode method on Android
`torchMode` props should be used instead
2023-07-06 00:43:39 -07:00
Corey Phillips
30feb1c4bc
Fix: Correct onScale method signature in CKCamera.kt
The 'onScale' method was attempting to override the interface method with a nullable parameter, causing a mismatch with the parent interface. This change corrects the method signature by changing the nullable parameter to non-nullable, aligning it with the interface and ensuring proper method overriding.
2023-06-29 11:06:40 -04:00
Yousra Sdn
6196173463
chore: expose a method to set the torch mode (#523) 2023-03-10 19:32:47 -08:00
jorgepalacio
9a8c6fd2ae
Bump metadata-extrator to 2.18.0 version to avoid 2.12.0 vulnerabilities (#493) 2022-10-05 15:47:41 -07:00
Seph Soliman
edfa42380f
v13 (#491)
* Removed saveToCameraRoll & saveToCameraRollWithPhUrl.
Use react-native-cameraroll instead.

Upgraded CameraX to 1.1.0,
Upgraded com.google.mlkit:barcode-scanning to 17.0.2

* v13.0.0
2022-08-29 11:29:07 -07:00
Cássio Seffrin
1de4ed4c2c
issues/464 barcode scanner does not work in some devices (#465) 2022-08-07 16:31:48 -07:00
Chris Savvopoulos
c61c0f0200
Upgrade dependencies to latest stable; show square on tap-to-focus (#442) 2022-01-21 11:45:25 -08:00
Seph Soliman
458ac7837e Remove dependency on core-ktx
Version 1.7.0-alpha02 was released which breaks compatibility with some apps (compile min version must be 31) and we may not need it
2021-09-02 14:23:00 -07:00
Seph Soliman
e6c8879824
Merge pull request #407 from Syar-tech/fix-Syar-tech-mimetype
Fix MimeType for API 30
2021-06-24 20:20:54 -07:00
Seph Soliman
e064c615d6
Update CKCamera.kt 2021-06-24 19:32:08 -07:00
Seph Soliman
0b333b2c87 Fixes #409 Remove dependency on zxing, lower library size 2021-06-24 15:00:53 -07:00
Syar-tech
502f0ef9da fix import 2021-06-11 16:19:51 +02:00
Syar-tech
8eace315d3 Fix MimeType for API 30 2021-06-11 15:59:48 +02:00
Seph Soliman
6be7a1f6cb Added support for saveToCameraRoll on Android. Doc updates. 2021-06-08 16:01:44 -07:00
Bruce Oh
69fffec93a Adding null safety check on RNCameraKitModule 2021-03-17 15:49:11 +09:00
aarongrider
eea37b83f0 Make scaleDetector a constant to prevent threading issues 2021-01-14 12:53:22 -08:00
aarongrider
37f28488a5 Fix Android camera lifecycle 2021-01-13 15:04:40 -08:00
aarongrider
52ab2ef27b Save each captured image with unique name 2021-01-12 13:34:37 -08:00
aarongrider
06487dcc5f Fix camera view scale 2021-01-12 13:34:08 -08:00