diff --git a/src-tauri/src/mobile.rs b/src-tauri/src/mobile.rs deleted file mode 100644 index f7663a1..0000000 --- a/src-tauri/src/mobile.rs +++ /dev/null @@ -1,33 +0,0 @@ -use tauri::command; - -#[command] -pub async fn open_file_with_provider(path: String, mime_type: Option) -> Result<(), String> { - #[cfg(target_os = "android")] - { - open_file_android(path, mime_type).await - } - - #[cfg(not(target_os = "android"))] - { - // On other platforms, use the opener plugin - use tauri_plugin_opener::OpenerExt; - tauri::AppHandle::opener() - .open_path(path, None::<&str>) - .map_err(|e| e.to_string()) - } -} - -#[cfg(target_os = "android")] -async fn open_file_android(path: String, mime_type: Option) -> Result<(), String> { - use jni::{ - objects::{JObject, JString, JValue}, - JNIEnv, - }; - use tauri::Manager; - - // This will be called from the Rust side - // We need to call into the Android Activity to use FileProvider - - // For now, return an error - we need to implement the Java/Kotlin side first - Err("Android FileProvider implementation needed".to_string()) -} diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index d6eafae..d6be0f5 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "haex-hub", - "version": "0.1.4", + "version": "0.1.13", "identifier": "space.haex.hub", "build": { "beforeDevCommand": "pnpm dev",