Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

refactor: move conditional compilation for non-Android modules to the end of the file

Tonhoe89028e53f75
diff --git a/src-tauri/src/commands/mod.rs b/src-tauri/src/commands/mod.rs
index bf07f09f..5f68ef26 100644
--- a/src-tauri/src/commands/mod.rs
+++ b/src-tauri/src/commands/mod.rs
@@ -1,13 +1,21 @@
pub mod auth;
pub mod autostart;
-pub mod convert;
-pub mod courses;
-pub mod dependencies;
pub mod downloads;
pub mod platform_auth;
-pub mod search;
pub mod settings;
pub mod telegram;
+
+#[cfg(not(target_os = "android"))]
+pub mod convert;
+#[cfg(not(target_os = "android"))]
+pub mod courses;
+#[cfg(not(target_os = "android"))]
+pub mod dependencies;
+#[cfg(not(target_os = "android"))]
+pub mod search;
+#[cfg(not(target_os = "android"))]
pub mod udemy_auth;
+#[cfg(not(target_os = "android"))]
pub mod udemy_courses;
+#[cfg(not(target_os = "android"))]
pub mod udemy_downloads;