Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars committed Jul 23, 2024
1 parent 6d25b73 commit 8352c80
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changes/sql-update-sqlx-0-8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
sql: patch
---

Update sqlx to 0.8 - Check out their changelog for behavior changes: https://github.com/launchbadge/sqlx/blob/main/CHANGELOG.md#080---2024-07-22
9 changes: 7 additions & 2 deletions plugins/deep-link/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use serde::de::DeserializeOwned;
use tauri::{
plugin::{Builder, PluginApi, TauriPlugin},
AppHandle, Emitter, Manager, Runtime,
AppHandle, Manager, Runtime,
};

mod commands;
Expand All @@ -23,7 +23,10 @@ fn init_deep_link<R: Runtime, C: DeserializeOwned>(
) -> crate::Result<DeepLink<R>> {
#[cfg(target_os = "android")]
{
use tauri::ipc::{Channel, InvokeBody};
use tauri::{
ipc::{Channel, InvokeBody},
Emitter,
};

let handle = _api.register_android_plugin(PLUGIN_IDENTIFIER, "DeepLinkPlugin")?;

Expand Down Expand Up @@ -388,6 +391,8 @@ pub fn init<R: Runtime>() -> TauriPlugin<R, Option<config::Config>> {
.on_event(|_app, _event| {
#[cfg(any(target_os = "macos", target_os = "ios"))]
if let tauri::RunEvent::Opened { urls } = _event {
use tauri::Emitter;

let _ = _app.emit("deep-link://new-url", urls);
_app.state::<DeepLink<R>>()
.current
Expand Down
1 change: 1 addition & 0 deletions plugins/sql/src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ impl MigrationSource<'static> for MigrationList {
migration.description.into(),
migration.kind.into(),
migration.sql.into(),
false,
));
}
}
Expand Down

0 comments on commit 8352c80

Please sign in to comment.