feat: use PermissionState type from tauri, closes #979 (#1701)

This commit is contained in:
Lucas Fernandes Nogueira
2024-08-29 15:40:38 -03:00
committed by GitHub
parent 9ea9e05944
commit e2e97db519
17 changed files with 55 additions and 89 deletions
+10
View File
@@ -0,0 +1,10 @@
---
"barcode-scanner": patch
"barcode-scanner-js": patch
"geolocation": patch
"geolocation-js": patch
"notification": patch
"notification-js": patch
---
Use `PermissionState` from the `tauri` crate, which now also includes a "prompt with rationale" variant for Android (returned when your app must explain to the user why it needs the permission).
@@ -0,0 +1,5 @@
---
"notification-js": patch
---
**Breaking change**: The permission type when using the API is now `'granted' | 'denied' | 'prompt' | 'prompt-with-rationale'` instead of `'granted' | 'denied' | 'default'` for consistency with Rust types. When using the `window.Notification` API the type is unchanged to match the Web API type.
@@ -58,4 +58,4 @@
"geolocation-js": patch
---
Update to tauri 2.0.0-rc.7
Update to tauri 2.0.0-rc.8