feat: device hot-reload, tools-relative adb, auto port bind (#3586)
* wip: bind to 0.0.0.0 instead of 127.0.0.1 * dont hang in background - ignore suspend commands when tty is disabled * use system adb * pass configs through to android mobile launch * fix: line sizes + clear pushes frame * dont resume window state on mobile * fix screen sizing for ipad * attempt and fail to implement codesigning * Clippy and note about safety in android bindings
This commit is contained in:
1 parent
e199e86dad
commit
8334f7fbaa
22 files changed
+620
-212
No files matched your search
@@ -485,6 +485,10 @@ impl App {
|
||||
// Write this to the target dir so we can pick back up
|
||||
#[cfg(debug_assertions)]
|
||||
fn resume_from_state(&mut self, webview: &WebviewInstance) {
|
||||
if cfg!(target_os = "android") || cfg!(target_os = "ios") {
|
||||
return;
|
||||
}
|
||||
|
||||
if let Ok(state) = std::fs::read_to_string(restore_file()) {
|
||||
if let Ok(state) = serde_json::from_str::<PreservedWindowState>(&state) {
|
||||
let window = &webview.desktop_context.window;
|
||||
|
||||
@@ -288,7 +288,7 @@ pub(crate) fn to_java_load_asset(filepath: &str) -> Option<Vec<u8>> {
|
||||
}
|
||||
}
|
||||
|
||||
use std::{io::Read, ptr::NonNull};
|
||||
use std::ptr::NonNull;
|
||||
|
||||
let ctx = ndk_context::android_context();
|
||||
let vm = unsafe { jni::JavaVM::from_raw(ctx.vm().cast()) }.unwrap();
|
||||
|
||||
Reference in new issue
Block a user