mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-08 16:07:50 +02:00
feat(fs): resolve content URIs on Android (#1658)
* Implemented writeTextFile on Android. * Added license headers. * fix fmt checks. * implement more file APIs * change file * cleanup * refactor dialog plugin to leverage new FS APIs * implement metadata functions * fix build * expose FS rust API * resolve resources on android * update pnpm * update docs --------- Co-authored-by: Lucas Nogueira <lucas@tauri.app>
This commit is contained in:
@@ -7,7 +7,7 @@ use notify_debouncer_full::{new_debouncer, DebounceEventResult, Debouncer, FileI
|
||||
use serde::Deserialize;
|
||||
use tauri::{
|
||||
ipc::{Channel, CommandScope, GlobalScope},
|
||||
path::{BaseDirectory, SafePathBuf},
|
||||
path::BaseDirectory,
|
||||
Manager, Resource, ResourceId, Runtime, Webview,
|
||||
};
|
||||
|
||||
@@ -22,7 +22,7 @@ use std::{
|
||||
};
|
||||
|
||||
use crate::{
|
||||
commands::{resolve_path, CommandResult},
|
||||
commands::{resolve_path, CommandResult, SafeFilePath},
|
||||
scope::Entry,
|
||||
};
|
||||
|
||||
@@ -83,7 +83,7 @@ pub struct WatchOptions {
|
||||
#[tauri::command]
|
||||
pub async fn watch<R: Runtime>(
|
||||
webview: Webview<R>,
|
||||
paths: Vec<SafePathBuf>,
|
||||
paths: Vec<SafeFilePath>,
|
||||
options: WatchOptions,
|
||||
on_event: Channel<Event>,
|
||||
global_scope: GlobalScope<Entry>,
|
||||
|
||||
Reference in New Issue
Block a user