refactor dioxus platform support to use feature mobile
This commit is contained in:
+2
-12
@@ -210,12 +210,7 @@ pub fn Channel(id: ChannelId) -> Element {
|
||||
)
|
||||
}
|
||||
|
||||
#[cfg(any(
|
||||
target_os = "windows",
|
||||
target_os = "macos",
|
||||
target_os = "linux",
|
||||
target_arch = "wasm32",
|
||||
))]
|
||||
#[cfg(any(feature = "desktop", feature = "web"))]
|
||||
pub fn pick_and_send_file(net: &Coroutine<Command>) {
|
||||
let channels = if let Some(user) = STATE.server.read().this_user() {
|
||||
vec![user.channel]
|
||||
@@ -237,12 +232,7 @@ pub fn pick_and_send_file(net: &Coroutine<Command>) {
|
||||
});
|
||||
});
|
||||
}
|
||||
#[cfg(not(any(
|
||||
target_os = "windows",
|
||||
target_os = "macos",
|
||||
target_os = "linux",
|
||||
target_arch = "wasm32",
|
||||
)))]
|
||||
#[cfg(not(any(feature = "desktop", feature = "web")))]
|
||||
pub fn pick_and_send_file(net: &Coroutine<Command>) {}
|
||||
|
||||
#[component]
|
||||
|
||||
+3
-3
@@ -1,11 +1,11 @@
|
||||
#[cfg(feature = "web")]
|
||||
mod web;
|
||||
|
||||
#[cfg(feature = "desktop")]
|
||||
#[cfg(any(feature = "desktop", feature = "android"))]
|
||||
mod desktop;
|
||||
|
||||
#[cfg(all(feature = "web", not(feature = "desktop")))]
|
||||
#[cfg(all(feature = "web", not(any(feature = "desktop", feature = "android"))))]
|
||||
pub use web::*;
|
||||
|
||||
#[cfg(feature = "desktop")]
|
||||
#[cfg(any(feature = "desktop", feature = "android"))]
|
||||
pub use desktop::*;
|
||||
|
||||
Reference in New Issue
Block a user