Android build working too

This commit is contained in:
Jonathan Kelley committed 2023-07-05 14:35:08 -07:00
1 parent 5506c568c0
commit ea3b199eb2
10 files changed
+40 -125

No files matched your search

+10 -10
View File
@@ -123,16 +123,16 @@ pub fn launch_with_props<P: 'static>(root: Component<P>, props: P, cfg: Config)
let proxy = event_loop.create_proxy();
// Intialize hot reloading if it is enabled
// #[cfg(all(feature = "hot-reload", debug_assertions))]
// dioxus_hot_reload::connect({
// let proxy = proxy.clone();
// move |template| {
// let _ = proxy.send_event(UserWindowEvent(
// EventData::HotReloadEvent(template),
// unsafe { WindowId::dummy() },
// ));
// }
// });
#[cfg(all(feature = "hot-reload", debug_assertions))]
dioxus_hot_reload::connect({
let proxy = proxy.clone();
move |template| {
let _ = proxy.send_event(UserWindowEvent(
EventData::HotReloadEvent(template),
unsafe { WindowId::dummy() },
));
}
});
// We start the tokio runtime *on this thread*
// Any future we poll later will use this runtime to spawn tasks and for IO