fix unchanged mobile
This commit is contained in:
parent
bd2250b6c9
commit
537918674e
@ -24,7 +24,7 @@ pub trait FileManager: Interface {
|
|||||||
|
|
||||||
#[cfg(any(target_os = "android", target_os = "ios"))]
|
#[cfg(any(target_os = "android", target_os = "ios"))]
|
||||||
fn read_dir(&self,path: &str, include_hidden: bool) -> String {
|
fn read_dir(&self,path: &str, include_hidden: bool) -> String {
|
||||||
use crate::mobile::make_fd_to_json;
|
use crate::flutter::make_fd_to_json;
|
||||||
match fs::read_dir(&fs::get_path(path), include_hidden){
|
match fs::read_dir(&fs::get_path(path), include_hidden){
|
||||||
Ok(fd) => make_fd_to_json(fd),
|
Ok(fd) => make_fd_to_json(fd),
|
||||||
Err(_)=>"".into()
|
Err(_)=>"".into()
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use crate::client::file_trait::FileManager;
|
use crate::client::file_trait::FileManager;
|
||||||
use crate::mobile::connection_manager::{self, get_clients_length, get_clients_state};
|
use crate::flutter::connection_manager::{self, get_clients_length, get_clients_state};
|
||||||
use crate::mobile::{self, make_fd_to_json, Session};
|
use crate::flutter::{self, make_fd_to_json, Session};
|
||||||
use flutter_rust_bridge::{StreamSink, ZeroCopyBuffer};
|
use flutter_rust_bridge::{StreamSink, ZeroCopyBuffer};
|
||||||
use hbb_common::ResultType;
|
use hbb_common::ResultType;
|
||||||
use hbb_common::{
|
use hbb_common::{
|
||||||
@ -37,12 +37,12 @@ fn initialize(app_dir: &str) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn start_event_stream(s: StreamSink<String>) -> ResultType<()> {
|
pub fn start_event_stream(s: StreamSink<String>) -> ResultType<()> {
|
||||||
let _ = mobile::EVENT_STREAM.write().unwrap().insert(s);
|
let _ = flutter::EVENT_STREAM.write().unwrap().insert(s);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn start_rgba_stream(s: StreamSink<ZeroCopyBuffer<Vec<u8>>>) -> ResultType<()> {
|
pub fn start_rgba_stream(s: StreamSink<ZeroCopyBuffer<Vec<u8>>>) -> ResultType<()> {
|
||||||
let _ = mobile::RGBA_STREAM.write().unwrap().insert(s);
|
let _ = flutter::RGBA_STREAM.write().unwrap().insert(s);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user