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
31 lines
888 B
TOML
31 lines
888 B
TOML
[package]
|
|
name = "mtgc"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "mtgc — personal Magic: The Gathering library catalog"
|
|
|
|
[lib]
|
|
# The Tauri app logic lives in a lib so the same entry point can serve desktop
|
|
# and (later) mobile targets.
|
|
name = "mtgc_lib"
|
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
[build-dependencies]
|
|
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" }
|
|
tauri-plugin-opener = "2.5.4"
|
|
url = "2"
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies]
|
|
# Delivers sync sign-ins back to the app through the `mtgc://` scheme.
|
|
tauri-plugin-deep-link = "2"
|