chore: add project scaffolding and resources
This initial commit scaffolds the project with essential docs, assets, and build configs. It adds Android icons, design assets, and release metadata to support mobile targets. A fastlane config and F-Droid manifest are included to streamline builds. - Adds F-Droid configuration for automated builds - Includes license and privacy policy documents - Provides app icons and assets for Android and design system
This commit is contained in:
@@ -43,6 +43,13 @@ impl<R: Runtime> Wallpaper<R> {
|
||||
.run_mobile_plugin("deleteImage", payload)
|
||||
.map_err(Into::into)
|
||||
}
|
||||
pub fn get_image_ids(&self) -> crate::Result<Vec<String>> {
|
||||
let response: ImageIdsResponse = self.0.run_mobile_plugin("getImageIds", ())?;
|
||||
Ok(response.ids)
|
||||
}
|
||||
pub fn delete_images(&self, payload: DeleteImagesRequest) -> crate::Result<WallpaperState> {
|
||||
self.0.run_mobile_plugin("deleteImages", payload).map_err(Into::into)
|
||||
}
|
||||
pub fn set_image_crop(&self, payload: ImageCropRequest) -> crate::Result<GalleryImage> {
|
||||
self.0
|
||||
.run_mobile_plugin("setImageCrop", payload)
|
||||
@@ -53,6 +60,11 @@ impl<R: Runtime> Wallpaper<R> {
|
||||
.run_mobile_plugin("setSetting", payload)
|
||||
.map_err(Into::into)
|
||||
}
|
||||
pub fn set_interval(&self, payload: IntervalRequest) -> crate::Result<WallpaperState> {
|
||||
self.0
|
||||
.run_mobile_plugin("setInterval", payload)
|
||||
.map_err(Into::into)
|
||||
}
|
||||
pub fn next_wallpaper(&self) -> crate::Result<WallpaperState> {
|
||||
self.0
|
||||
.run_mobile_plugin("nextWallpaper", ())
|
||||
|
||||
Reference in New Issue
Block a user