chore(deps): tauri 2.0.0-rc.3 (#1671)

* chore(deps): tauri 2.0.0-rc.3

* fix builds

* fix deep link [skip ci]
This commit is contained in:
Lucas Fernandes Nogueira
2024-08-17 07:40:57 -03:00
committed by GitHub
parent 4dd7f5ddd8
commit 5d170a5444
70 changed files with 411 additions and 277 deletions
+1 -1
View File
@@ -25,6 +25,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -1,5 +1,5 @@
### Permission Table
## Permission Table
<table>
<tr>
+1 -1
View File
@@ -24,6 +24,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -15,7 +15,7 @@ disable the automatic start on boot.
- `allow-disable`
- `allow-is-enabled`
### Permission Table
## Permission Table
<table>
<tr>
+1 -1
View File
@@ -25,6 +25,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -16,7 +16,7 @@ It allows all barcode related features.
- `allow-scan`
- `allow-vibrate`
### Permission Table
## Permission Table
<table>
<tr>
+1 -1
View File
@@ -25,6 +25,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -12,7 +12,7 @@ It allows acccess to all biometric commands.
- `allow-authenticate`
- `allow-status`
### Permission Table
## Permission Table
<table>
<tr>
+1 -1
View File
@@ -24,6 +24,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -4,7 +4,7 @@ Allows reading the CLI matches
- `allow-cli-matches`
### Permission Table
## Permission Table
<table>
<tr>
+1 -1
View File
@@ -24,6 +24,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -8,7 +8,7 @@ Clipboard interaction needs to be explicitly enabled.
### Permission Table
## Permission Table
<table>
<tr>
+1 -1
View File
@@ -10,7 +10,7 @@
"tauri": "tauri"
},
"dependencies": {
"@tauri-apps/api": "2.0.0-rc.0",
"@tauri-apps/api": "2.0.0-rc.1",
"@tauri-apps/plugin-deep-link": "2.0.0-rc.0"
},
"devDependencies": {
+1 -1
View File
@@ -25,6 +25,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -4,7 +4,7 @@ Allows reading the opened deep link via the get_current command
- `allow-get-current`
### Permission Table
## Permission Table
<table>
<tr>
+11 -7
View File
@@ -24,24 +24,28 @@ fn init_deep_link<R: Runtime, C: DeserializeOwned>(
#[cfg(target_os = "android")]
{
use tauri::{
ipc::{Channel, InvokeBody},
ipc::{Channel, InvokeResponseBody},
Emitter,
};
let handle = _api.register_android_plugin(PLUGIN_IDENTIFIER, "DeepLinkPlugin")?;
#[derive(serde::Deserialize)]
struct Event {
url: String,
}
let app_handle = app.clone();
handle.run_mobile_plugin::<()>(
"setEventHandler",
imp::EventHandler {
handler: Channel::new(move |event| {
println!("got channel event: {:?}", &event);
let url = match event {
InvokeBody::Json(payload) => payload
.get("url")
.and_then(|v| v.as_str())
.map(|s| s.to_owned()),
InvokeResponseBody::Json(payload) => {
serde_json::from_str::<Event>(&payload)
.ok()
.map(|payload| payload.url)
}
_ => None,
};
+1 -1
View File
@@ -24,6 +24,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -16,7 +16,7 @@ All dialog types are enabled.
- `allow-save`
- `allow-open`
### Permission Table
## Permission Table
<table>
<tr>
+1 -1
View File
@@ -25,6 +25,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -30,7 +30,7 @@ On Windows the webview data folder access is denied.
- `read-app-specific-dirs-recursive`
- `deny-default`
### Permission Table
## Permission Table
<table>
<tr>
+1 -1
View File
@@ -24,6 +24,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -1,5 +1,5 @@
### Permission Table
## Permission Table
<table>
<tr>
+2 -2
View File
@@ -4,7 +4,7 @@
use serde::{de::DeserializeOwned, Serialize};
use tauri::{
ipc::{Channel, InvokeBody},
ipc::{Channel, InvokeResponseBody},
plugin::PluginApi,
AppHandle, Runtime,
};
@@ -36,7 +36,7 @@ impl<R: Runtime> Geolocation<R> {
) -> crate::Result<u32> {
let channel = Channel::new(move |event| {
let payload = match event {
InvokeBody::Json(payload) => serde_json::from_value::<WatchEvent>(payload)
InvokeResponseBody::Json(payload) => serde_json::from_str::<WatchEvent>(&payload)
.unwrap_or_else(|error| {
WatchEvent::Error(format!(
"Couldn't deserialize watch event payload: `{error}`"
+2 -2
View File
@@ -4,7 +4,7 @@
use serde::{de::DeserializeOwned, Serialize};
use tauri::{
ipc::{Channel, InvokeBody},
ipc::{Channel, InvokeResponseBody},
plugin::{PluginApi, PluginHandle},
AppHandle, Runtime,
};
@@ -51,7 +51,7 @@ impl<R: Runtime> Geolocation<R> {
) -> crate::Result<u32> {
let channel = Channel::new(move |event| {
let payload = match event {
InvokeBody::Json(payload) => serde_json::from_value::<WatchEvent>(dbg!(payload))
InvokeResponseBody::Json(payload) => serde_json::from_str::<WatchEvent>(&payload)
.unwrap_or_else(|error| {
WatchEvent::Error(format!(
"Couldn't deserialize watch event payload: `{error}`"
+1 -1
View File
@@ -24,6 +24,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -7,7 +7,7 @@ registered or unregistered.
### Permission Table
## Permission Table
<table>
<tr>
+1 -1
View File
@@ -24,6 +24,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -1,5 +1,5 @@
### Permission Table
## Permission Table
<table>
<tr>
+1 -1
View File
@@ -24,6 +24,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -18,7 +18,7 @@ All fetch operations are enabled.
- `allow-fetch-read-body`
- `allow-fetch-send`
### Permission Table
## Permission Table
<table>
<tr>
+1 -1
View File
@@ -25,6 +25,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -4,7 +4,7 @@ Allows the log command
- `allow-log`
### Permission Table
## Permission Table
<table>
<tr>
+1 -1
View File
@@ -25,6 +25,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -14,7 +14,7 @@ Writing to tags needs to be manually enabled.
- `allow-is-available`
- `allow-scan`
### Permission Table
## Permission Table
<table>
<tr>
+1 -1
View File
@@ -24,6 +24,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -26,7 +26,7 @@ It allows all notification related features.
- `allow-create-channel`
- `allow-permission-state`
### Permission Table
## Permission Table
<table>
<tr>
+1 -1
View File
@@ -24,6 +24,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -18,7 +18,7 @@ All information except the host name are available.
- `allow-platform`
- `allow-version`
### Permission Table
## Permission Table
<table>
<tr>
+1 -1
View File
@@ -25,6 +25,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -4,7 +4,7 @@ Allows the move_window command
- `allow-move-window`
### Permission Table
## Permission Table
<table>
<tr>
+1 -1
View File
@@ -24,6 +24,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -12,7 +12,7 @@ the application.
- `allow-exit`
- `allow-restart`
### Permission Table
## Permission Table
<table>
<tr>
+1 -1
View File
@@ -24,6 +24,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -12,7 +12,7 @@ scope pre-configured. It will allow opening `http(s)://`,
- `allow-open`
### Permission Table
## Permission Table
<table>
<tr>
+1 -1
View File
@@ -25,6 +25,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -16,7 +16,7 @@ Also allows to load or close a connection.
- `allow-load`
- `allow-select`
### Permission Table
## Permission Table
<table>
<tr>
@@ -8,7 +8,7 @@
"tauri": "tauri"
},
"devDependencies": {
"@tauri-apps/cli": "^2.0.0-rc.0",
"@tauri-apps/cli": "2.0.0-rc.3",
"vite": "^5.0.12",
"typescript": "^5.3.3"
}
+1 -1
View File
@@ -25,6 +25,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -22,7 +22,7 @@ All operations are enabled by default.
- `allow-set`
- `allow-values`
### Permission Table
## Permission Table
<table>
<tr>
+1 -1
View File
@@ -25,6 +25,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -18,7 +18,7 @@ All non-destructive operations are enabled by default.
- `allow-save-store-record`
- `allow-save`
### Permission Table
## Permission Table
<table>
<tr>
+2 -1
View File
@@ -40,9 +40,10 @@ infer = "0.15"
[target."cfg(target_os = \"windows\")".dependencies]
zip = { version = "2", default-features = false, optional = true }
windows-sys = { version = "0.52.0", features = [
windows-sys = { version = "0.59.0", features = [
"Win32_Foundation",
"Win32_UI_WindowsAndMessaging",
"Win32_UI_Shell",
] }
[target."cfg(target_os = \"linux\")".dependencies]
+1 -1
View File
@@ -24,6 +24,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -15,7 +15,7 @@ is enabled.
- `allow-install`
- `allow-download-and-install`
### Permission Table
## Permission Table
<table>
<tr>
+1 -1
View File
@@ -647,7 +647,7 @@ impl Update {
unsafe {
ShellExecuteW(
0,
std::ptr::null_mut(),
w!("open"),
file.as_ptr(),
parameters.as_ptr(),
+1 -1
View File
@@ -25,6 +25,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -12,7 +12,7 @@ All operations are enabled by default.
- `allow-upload`
- `allow-download`
### Permission Table
## Permission Table
<table>
<tr>
+1 -1
View File
@@ -24,6 +24,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -5,7 +5,7 @@ Allows connecting and sending data to a WebSocket server
- `allow-connect`
- `allow-send`
### Permission Table
## Permission Table
<table>
<tr>
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -25,6 +25,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0-rc.0"
"@tauri-apps/api": "^2.0.0-rc.1"
}
}
@@ -13,7 +13,7 @@ All operations are enabled by default.
- `allow-restore-state`
- `allow-save-window-state`
### Permission Table
## Permission Table
<table>
<tr>