mirror of
https://github.com/haexhub/haex-hub.git
synced 2025-12-16 22:20:51 +01:00
Bump version to 0.1.13 and remove unused mobile.rs
- 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 <noreply@anthropic.com>
This commit is contained in:
@ -1,33 +0,0 @@
|
|||||||
use tauri::command;
|
|
||||||
|
|
||||||
#[command]
|
|
||||||
pub async fn open_file_with_provider(path: String, mime_type: Option<String>) -> 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<String>) -> 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())
|
|
||||||
}
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://schema.tauri.app/config/2",
|
"$schema": "https://schema.tauri.app/config/2",
|
||||||
"productName": "haex-hub",
|
"productName": "haex-hub",
|
||||||
"version": "0.1.4",
|
"version": "0.1.13",
|
||||||
"identifier": "space.haex.hub",
|
"identifier": "space.haex.hub",
|
||||||
"build": {
|
"build": {
|
||||||
"beforeDevCommand": "pnpm dev",
|
"beforeDevCommand": "pnpm dev",
|
||||||
|
|||||||
Reference in New Issue
Block a user