mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-18 23:07:27 +02:00
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>
This commit is contained in:
1 parent
c91a9e6af5
commit
d80b1be257
48 files changed
+1861
-4
No files matched your search
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"barcode-scanner": patch
|
||||
"barcode-scanner-js": patch
|
||||
---
|
||||
|
||||
On Android, expose the camera bound by an active scan so the torch plugin can turn the flash on and off during a scan.
|
||||
+12
-2
@@ -82,7 +82,8 @@
|
||||
"store",
|
||||
"updater",
|
||||
"geolocation",
|
||||
"haptics"
|
||||
"haptics",
|
||||
"torch"
|
||||
]
|
||||
},
|
||||
"api-example-js": {
|
||||
@@ -106,7 +107,8 @@
|
||||
"process-js",
|
||||
"shell-js",
|
||||
"store-js",
|
||||
"updater-js"
|
||||
"updater-js",
|
||||
"torch-js"
|
||||
],
|
||||
"postversion": "pnpm install --no-frozen-lockfile"
|
||||
},
|
||||
@@ -327,6 +329,14 @@
|
||||
"path": "./plugins/updater",
|
||||
"manager": "javascript"
|
||||
},
|
||||
"torch": {
|
||||
"path": "./plugins/torch",
|
||||
"manager": "rust"
|
||||
},
|
||||
"torch-js": {
|
||||
"path": "./plugins/torch",
|
||||
"manager": "javascript"
|
||||
},
|
||||
"upload": {
|
||||
"path": "./plugins/upload",
|
||||
"manager": "rust"
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"torch": minor:feat
|
||||
"torch-js": minor:feat
|
||||
---
|
||||
|
||||
Initial release of the torch plugin: turn the device flashlight on and off, toggle it, and query whether it is available and enabled on Android and iOS. On Android it also works while a barcode scanner scan holds the camera.
|
||||
Reference in new issue
Block a user