refactor(host-resource): move filesystem adapters behind service ports

This commit is contained in:
Darkatse 2026-06-28 22:04:21 -04:00
parent dcf9ed69a2
commit 1e83f66d29
26 changed files with 2037 additions and 1740 deletions

View file

@ -392,7 +392,7 @@ https://v2.tauri.app/develop/resources/#android
当前已落地 workaround(仅背景视频):
- 实现:`src-tauri/src/presentation/web_resources/user_data_endpoint.rs`
- 实现:`src-tauri/src/application/services/host_resource_service/user_data.rs`
- 策略:对 Android + `/backgrounds/*` + `video/*` + `Range start != 0`:
- 返回 `206` + 正确 `Content-Range/Content-Length`
- body 提供完整文件 bytes,让 WebView 自己在流上执行 Range(skip)