A share button beside the preview's close button sends the face being shown at Scryfall's large size: on desktop the image is decoded and put on the clipboard (tauri-plugin-clipboard-manager); on Android it's saved to the cache and handed to the system share sheet by a small in-repo plugin (SharePlugin.kt) through the app's FileProvider. The preview's corner buttons are also a little larger.
36 lines
1.1 KiB
TOML
36 lines
1.1 KiB
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(not(any(target_os = "android", target_os = "ios")))'.dependencies]
|
|
# Copying a card image: the clipboard takes raw pixels, and Scryfall serves JPEGs.
|
|
tauri-plugin-clipboard-manager = "2"
|
|
image = { version = "0.25", default-features = false, features = ["jpeg"] }
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies]
|
|
# Delivers sync sign-ins back to the app through the `mtgc://` scheme.
|
|
tauri-plugin-deep-link = "2"
|