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:
mikoto2000
2024-08-24 01:35:53 +09:00
committed by GitHub
parent 3c52f30ea4
commit 448846b834
38 changed files with 1951 additions and 820 deletions
+3 -3
View File
@@ -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>,