Read picked import files through the fs plugin so Android content URIs work

On Android the open dialog returns a content:// URI, which std::fs can't
open, so ManaBox/library and deck imports failed with "no such file or
directory". Read them via tauri-plugin-fs, which resolves content URIs and
falls through to plain paths on desktop.

Closes #24
This commit is contained in:
2026-10-23 22:01:33 -05:00
parent 18948efd17
commit 5f19ddfa4a
4 changed files with 16 additions and 3 deletions

View File

@@ -16,6 +16,9 @@ tauri-build = { version = "2", features = [] }
[dependencies]
tauri = { version = "2", features = [] }
tauri-plugin-dialog = "2"
# Reads the files the dialog picks: on Android those are content:// URIs, which
# std::fs can't open.
tauri-plugin-fs = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
mtgc-core = { path = "../crates/mtgc-core" }