Make it build for Android
This commit is contained in:
1 parent
894f5c5e20
commit
7ce7762a94
6 files changed
+144
-10
No files matched your search
@@ -4,6 +4,9 @@
|
||||
mod config;
|
||||
mod runtime;
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
mod android;
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
mod wasm;
|
||||
|
||||
@@ -96,6 +99,9 @@ pub fn run() -> Result<(), anyhow::Error> {
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
let conf = Config::default();
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
let conf = Config::default();
|
||||
|
||||
state.set_server_address(conf.address.to_shared_string());
|
||||
let conf_shared = Arc::new(Mutex::new(conf));
|
||||
|
||||
|
||||
Reference in new issue
Block a user