Add robius-share: abstractions for cross-platform share sheets - #8
Merged
Conversation
… Android * Android: support sharing filesystem paths and URIs by copying them to a MediaStore Downloads item on API 29+ (Android 10+), with a text-file fallback on older versions (Android 8+). * Windows: run `fill_request` on a background thread, then defer it to a `DataRequest` before handing those paths to `STorageFile`. * Linux: make sure shared files are accessible with the right mode bits
robius-share: abstractions for cross-platform share sheets
10 tasks
and we also added a cool feature where sharing a mixed payload (multiple items) now prompts the user to save them all to a directory of their choice.
kevinaboos
marked this pull request as ready for review
July 7, 2026 18:41
* Android: move file prep off main UI thread, preserve MIME types * Linux: return errors for single-item sharing * Windows: unregister the share handler after each request instead of doing it upon the next request (which may never come)
* Set `robius-share` MSRV to Rust 1.77.0, such that we're not confused about which version of Rust we can use (esp regarding unsafe) * Use resolver v2 and the 2021 edition of Rust, since 2024 wasn't needed
Member
Author
|
after the latest changes, i re-tested on windows, Linux X11, Linux wayland, iOS, macOS, and Android. All good! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Testing status: