Adds a new apply_wallpaper command and its plumbing across desktop, mobile, and Android. A WorkManager-based rotation worker handles applying wallpapers in the background. Wallpaper state now tracks currentId and imageIds for precise control. - Introduced apply_wallpaper command across desktop, mobile and Android - Added WorkManager-based rotation worker to apply wallpapers in the background - Extended wallpaper state with currentId and imageIds and updated schemas/permissions
28 lines
577 B
Rust
28 lines
577 B
Rust
const COMMANDS: &[&str] = &[
|
|
"get_state",
|
|
"get_gallery",
|
|
"select_images",
|
|
"delete_image",
|
|
"get_image_ids",
|
|
"delete_images",
|
|
"set_image_crop",
|
|
"set_setting",
|
|
"set_interval",
|
|
"next_wallpaper",
|
|
"apply_wallpaper",
|
|
"get_immich_connection",
|
|
"connect_immich",
|
|
"disconnect_immich",
|
|
"get_immich_albums",
|
|
"get_immich_assets",
|
|
"import_immich_assets",
|
|
"get_immich_import_progress",
|
|
];
|
|
|
|
fn main() {
|
|
tauri_plugin::Builder::new(COMMANDS)
|
|
.android_path("android")
|
|
.ios_path("ios")
|
|
.build();
|
|
}
|