The plugin now exposes gallery retrieval, image deletion and image crop across Android, desktop and mobile. The Rust core and Android bridge are wired to handle these commands, updating state as needed. - Add gallery, delete_image, and set_image_crop commands - across Android, desktop and mobile. - Update permissions, defaults, and schema to enable new commands.
17 lines
304 B
Rust
17 lines
304 B
Rust
const COMMANDS: &[&str] = &[
|
|
"get_state",
|
|
"get_gallery",
|
|
"select_images",
|
|
"delete_image",
|
|
"set_image_crop",
|
|
"set_setting",
|
|
"next_wallpaper",
|
|
];
|
|
|
|
fn main() {
|
|
tauri_plugin::Builder::new(COMMANDS)
|
|
.android_path("android")
|
|
.ios_path("ios")
|
|
.build();
|
|
}
|