fix: pass off env vars to android apps (#3621)
* fix: pass off env vars to android apps * move to jni_onload * fix clippy
This commit is contained in:
1 parent
ce2b223af9
commit
03c2d6711d
7 files changed
+65
-10
No files matched your search
@@ -282,7 +282,7 @@ pub(crate) fn to_java_load_asset(filepath: &str) -> Option<Vec<u8>> {
|
||||
// in debug mode, the asset might be under `/data/local/tmp/dx/` - attempt to read it from there if it exists
|
||||
#[cfg(debug_assertions)]
|
||||
{
|
||||
let path = std::path::PathBuf::from("/data/local/tmp/dx/").join(normalized);
|
||||
let path = dioxus_cli_config::android_session_cache_dir().join(normalized);
|
||||
if path.exists() {
|
||||
return std::fs::read(path).ok();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user