0xbizk and Lucas Nogueira
d80b1be257
feat: add torch plugin for iOS and Android ( #3551 )
...
* feat(barcode-scanner): add torch toggle
* feat: torch plugin
* fix
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2026-10-13 05:37:04 -03:00
Shreyash Gupta
b3e52ce036
fix(barcode-scanner): settle the pending scan() promise on cancel ( fix #3560 ) ( #3571 )
...
On Android, cancel() called destroy() first, and destroy() sets
savedInvoke to null, so the savedInvoke?.reject("cancelled") that
follows was a no-op. The pending scan() promise was never settled and
callers awaiting it were stranded, which is especially bad in windowed
mode where the page background stays transparent.
Reject the pending invoke before tearing the camera down, matching the
order the iOS implementation already uses.
2026-10-12 10:32:41 -03:00
Niccolò Gnani
d8bfe61f20
fix(barcode-scanner): remove unnecessary permission checks on Android ( fix #2312 ) ( #3121 )
2025-11-24 14:27:46 +01:00
Olivier Lemasle and Lucas Nogueira
713c54ef83
chore(barcode): remove unused Android dependencies ( #1749 )
...
* chore(barcode): remove unused Android dependencies
Plugin barcode-scanner has two unused Android dependencies:
- com.google.zxing:core
- com.journeyapps:zxing-android-embedded
However, these dependency's AndroidManifest.xml were merged, and contained
required parameters (to get camera's permissions).
See the merged manifests:
- https://github.com/zxing/zxing/blob/zxing-3.3.0/android/AndroidManifest.xml
- https://github.com/journeyapps/zxing-android-embedded/blob/v4.3.0/zxing-android-embedded/AndroidManifest.xml
This commit removes the unused dependencies (and unused Java imports)
and updates the Android manifest.
* chore: remove comments
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2024-09-10 08:01:29 -03:00
Lucas Nogueira
acd383af75
fix(android): adjust for Kotlin and project warnings
2024-05-30 14:52:47 -03:00
Lucas Fernandes Nogueira and Amr Bashir
e438e0a62d
feat: update to alpha.17, typed mobile plugin IPC arguments ( #676 )
...
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com >
2023-10-29 16:06:44 -03:00
Lucas Fernandes Nogueira
454428cd50
feat: add barcode scanner plugin ( #536 )
2023-09-14 09:34:04 -03:00