CLI self-updater, warn on version mismatch, direct install.sh option, androidmanifest and info.plist customization, bump to 0.7-alpha.0 (#4095)
* wip.... bun installer * - warn on incompatible versions - clean up some logs - add coloring to log levels * add toasts to desktop/mobile * Auto open simulators * auto boot android * preserve url * pull out some of the warnings * add self-updater * wip: mcp * add install.sh and adjust binstall path * add some cuter styling to logs! * update "input.css" * update other input.css * style a bit more * change getting started * add windows installer * move dioxus-mobile into dioxus-desktop add sentry wip to cli * shorten timeout of toast * fix cli display * wire up customization of android manifest * udid is a real word * add 429 to lychee cache * accept all 200-204 and 429
This commit is contained in:
1 parent
53ef78823d
commit
4d3d55a7a3
56 files changed
+1560
-548
No files matched your search
@@ -50,7 +50,33 @@ pub fn try_apply_changes(dom: &VirtualDom, msg: &HotReloadMsg) -> Result<(), Pat
|
||||
///
|
||||
/// This doesn't use any form of security or protocol, so it's not safe to expose to the internet.
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
pub fn connect(endpoint: String, mut callback: impl FnMut(DevserverMsg) + Send + 'static) {
|
||||
pub fn connect(callback: impl FnMut(DevserverMsg) + Send + 'static) {
|
||||
let Some(endpoint) = dioxus_cli_config::devserver_ws_endpoint() else {
|
||||
return;
|
||||
};
|
||||
|
||||
connect_at(endpoint, callback);
|
||||
}
|
||||
|
||||
/// Connect to the devserver and handle hot-patch messages only, implementing the subsecond hotpatch
|
||||
/// protocol.
|
||||
///
|
||||
/// This is intended to be used by non-dioxus projects that want to use hotpatching.
|
||||
///
|
||||
/// To handle the full devserver protocol, use `connect` instead.
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
pub fn connect_subsecond() {
|
||||
connect(|msg| {
|
||||
if let DevserverMsg::HotReload(hot_reload_msg) = msg {
|
||||
if let Some(jumptable) = hot_reload_msg.jump_table {
|
||||
unsafe { subsecond::apply_patch(jumptable).unwrap() };
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
pub fn connect_at(endpoint: String, mut callback: impl FnMut(DevserverMsg) + Send + 'static) {
|
||||
std::thread::spawn(move || {
|
||||
let uri = format!(
|
||||
"{endpoint}?aslr_reference={}&build_id={}",
|
||||
|
||||
Reference in new issue
Block a user