Fix: update wry, tao, to fix android issues

This commit is contained in:
Jonathan Kelley committed 2024-03-15 20:12:13 -07:00
1 parent ef288d02d7
commit f9f902732b
9 files changed
+1169 -371

No files matched your search

+18 -3
View File
@@ -81,7 +81,12 @@ impl App {
app.set_global_hotkey_handler();
// Allow hotreloading to work - but only in debug mode
#[cfg(all(feature = "hot-reload", debug_assertions))]
#[cfg(all(
feature = "hot-reload",
debug_assertions,
not(target_os = "android"),
not(target_os = "ios")
))]
app.connect_hotreload();
(event_loop, app)
@@ -99,7 +104,12 @@ impl App {
self.shared.shortcut_manager.call_handlers(event);
}
#[cfg(all(feature = "hot-reload", debug_assertions))]
#[cfg(all(
feature = "hot-reload",
debug_assertions,
not(target_os = "android"),
not(target_os = "ios")
))]
pub fn connect_hotreload(&self) {
dioxus_hot_reload::connect({
let proxy = self.shared.proxy.clone();
@@ -265,7 +275,12 @@ impl App {
view.desktop_context.send_edits();
}
#[cfg(all(feature = "hot-reload", debug_assertions))]
#[cfg(all(
feature = "hot-reload",
debug_assertions,
not(target_os = "android"),
not(target_os = "ios")
))]
pub fn handle_hot_reload_msg(&mut self, msg: dioxus_hot_reload::HotReloadMsg) {
match msg {
dioxus_hot_reload::HotReloadMsg::UpdateTemplate(template) => {