Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions change-logs/1.28.0/changesets/webview-share-files.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
type: added
area: artifacts
platforms:
- android
pull_request: 5120
rollout: full
---

## zh-CN

安卓 App 里打开的网页(例如 Artifact 查看页的「分享」)现在可以直接调出系统分享,把文件分享到其他应用。

## en

Web pages in the Android app (such as Share in the Artifact viewer) can now open the system share sheet and send files to other apps.

## ja

Android アプリ内の Web ページ(Artifact ビューアの「共有」など)から、システムの共有シートを開いてファイルを他のアプリに送れるようになりました。
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ internal fun sanitizeAndroidAttachmentShareFileName(displayName: String, mimeTyp
* Removes share entries older than [maxAgeMs], foreign children, and all but the newest
* [maxEntries] entries. A receiver may keep reading a granted URI after the chooser returns, so a
* fresh entry is never removed just because a new share started.
*
* A web page's `navigator.share` (`RaftAndroidWebViewShareSession` in the shared module) stages its
* files in this same root, one `<uuid>` entry per share, so these rules cover them too; it applies
* the age and count rules itself (`raftWebViewShareStaleStagingEntries`) before each of its shares.
* Keep the entry name pattern and the limits of the two in step.
*/
internal fun sweepAndroidAttachmentShareStaging(
shareRoot: File,
Expand Down
Loading
Loading