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:
0xbizkandLucas Nogueira authored and GitHub committed 2026-10-13 05:37:04 -03:00
1 parent c91a9e6af5
commit d80b1be257
48 files changed
+1861 -4

No files matched your search

+1
View File
@@ -79,6 +79,7 @@ tauri-plugin-barcode-scanner = { path = "../../../plugins/barcode-scanner/", ver
tauri-plugin-nfc = { path = "../../../plugins/nfc", version = "2.4.2" }
tauri-plugin-geolocation = { path = "../../../plugins/geolocation/", version = "2.4.2" }
tauri-plugin-haptics = { path = "../../../plugins/haptics/", version = "2.4.2" }
tauri-plugin-torch = { path = "../../../plugins/torch/", version = "2.0.0" }
[features]
# Enables the WebDriver automation bridge; set by the e2e suite's build (packages/api-e2e).
@@ -21,6 +21,7 @@
"haptics:allow-impact-feedback",
"haptics:allow-notification-feedback",
"haptics:allow-selection-feedback",
"haptics:allow-vibrate"
"haptics:allow-vibrate",
"torch:default"
]
}
+1
View File
@@ -95,6 +95,7 @@ pub fn run() {
app.handle().plugin(tauri_plugin_nfc::init())?;
app.handle().plugin(tauri_plugin_geolocation::init())?;
app.handle().plugin(tauri_plugin_haptics::init())?;
app.handle().plugin(tauri_plugin_torch::init())?;
}
let mut webview_window_builder =