Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ exclude = ["/examples", "/webview-dist", "/webview-src", "/node_modules"]
links = "tauri-plugin-aptabase"

[dependencies]
tauri = "2.2.5"
tokio = "1.43.0"
tauri = "2.7.0"
tokio = "1.47.1"
futures = "0.3.31"
serde = "1.0.217"
serde_json = "1.0.138"
reqwest = { version = "0.12.12", features = ["json"] }
time = { version = "0.3.37", features = ["formatting"] }
os_info = "3.9.2"
rand = "0.9.0"
log = "0.4.25"
serde = "1.0.219"
serde_json = "1.0.142"
reqwest = { version = "0.12.22", features = ["json"] }
time = { version = "0.3.41", features = ["formatting"] }
os_info = "3.12.0"
rand = "0.9.2"
log = "0.4.27"
sys-locale = "0.3.2"

[build-dependencies]
tauri-plugin = { version = "2.0.4", features = ["build"] }
tauri-plugin = { version = "2.3.1", features = ["build"] }
12 changes: 6 additions & 6 deletions examples/helloworld/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"tauri": "tauri"
},
"dependencies": {
"@tauri-apps/api": "^2.1.1",
"@tauri-apps/api": "^2.7.0",
"@aptabase/tauri": "file:../../"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^1.0.1",
"internal-ip": "^7.0.0",
"svelte": "^3.49.0",
"vite": "^3.0.2",
"@tauri-apps/cli": "^2.1.0"
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"internal-ip": "^8.0.0",
"svelte": "^5.14.0",
"vite": "^5.4.0",
"@tauri-apps/cli": "^2.7.0"
}
}
2 changes: 1 addition & 1 deletion examples/helloworld/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ crate-type = ["staticlib", "cdylib", "rlib"]
tauri-build = { version = "2.0", default-features = false, features = [] }

[dependencies]
tauri = { version = "2.1", features = [] }
tauri = { version = "2.7", features = [] }
tauri-plugin-aptabase = { path = "../../../" }
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
"package.json"
],
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-typescript": "^12.1.1",
"@rollup/plugin-terser": "^0.4.4",
"rollup": "^4.27.4",
"typescript": "^5.7.2"
},
"dependencies": {
"@tauri-apps/api": "^2.1.1",
"@tauri-apps/api": "^2.7.0",
"tslib": "^2.8.1"
}
}
1 change: 0 additions & 1 deletion permissions/autogenerated/reference.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

## Permission Table

<table>
Expand Down
10 changes: 6 additions & 4 deletions permissions/schemas/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"minimum": 1.0
},
"description": {
"description": "Human-readable description of what the permission does. Tauri convention is to use <h4> headings in markdown content for Tauri documentation generation purposes.",
"description": "Human-readable description of what the permission does. Tauri convention is to use `<h4>` headings in markdown content for Tauri documentation generation purposes.",
"type": [
"string",
"null"
Expand Down Expand Up @@ -111,7 +111,7 @@
"type": "string"
},
"description": {
"description": "Human-readable description of what the permission does. Tauri internal convention is to use <h4> headings in markdown content for Tauri documentation generation purposes.",
"description": "Human-readable description of what the permission does. Tauri internal convention is to use `<h4>` headings in markdown content for Tauri documentation generation purposes.",
"type": [
"string",
"null"
Expand Down Expand Up @@ -297,12 +297,14 @@
{
"description": "Enables the track_event command without any pre-configured scope.",
"type": "string",
"const": "allow-track-event"
"const": "allow-track-event",
"markdownDescription": "Enables the track_event command without any pre-configured scope."
},
{
"description": "Denies the track_event command without any pre-configured scope.",
"type": "string",
"const": "deny-track-event"
"const": "deny-track-event",
"markdownDescription": "Denies the track_event command without any pre-configured scope."
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ impl AptabaseClient {
pub(crate) fn start_polling(&self, interval: Duration) {
let dispatcher = self.dispatcher.clone();

tokio::spawn(async move {
tauri::async_runtime::spawn(async move {
loop {
tokio::time::sleep(interval).await;
dispatcher.flush().await;
}
});
});
}

/// Returns the current session ID, creating a new one if necessary.
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ mod config;
mod dispatcher;
mod sys;

use std::{panic::PanicInfo, sync::Arc, time::Duration};
use std::{panic::PanicHookInfo, sync::Arc, time::Duration};

use client::AptabaseClient;
use config::Config;
Expand All @@ -28,9 +28,9 @@ pub struct Builder {
}

pub type PanicHook =
Box<dyn Fn(&AptabaseClient, &PanicInfo<'_>, String) + 'static + Sync + Send>;
Box<dyn Fn(&AptabaseClient, &PanicHookInfo<'_>, String) + 'static + Sync + Send>;

fn get_panic_message(info: &PanicInfo) -> String {
fn get_panic_message(info: &PanicHookInfo) -> String {
let payload = info.payload();
if let Some(s) = payload.downcast_ref::<&str>() {
return s.to_string();
Expand Down
2 changes: 1 addition & 1 deletion webview-dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.