From c5516417371e01ceb5945eeee2e84289c4ad9621 Mon Sep 17 00:00:00 2001 From: haex Date: Mon, 10 Nov 2025 02:14:31 +0100 Subject: [PATCH] Bump version to 0.1.13 and remove unused mobile.rs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update version in tauri.conf.json to 0.1.13 - Remove incomplete and unused mobile.rs file 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src-tauri/src/mobile.rs | 33 --------------------------------- src-tauri/tauri.conf.json | 2 +- 2 files changed, 1 insertion(+), 34 deletions(-) delete mode 100644 src-tauri/src/mobile.rs 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",