Skip to content

Proposal to add URL -> android.net.Uri conversion helper#47

Merged
marcprux merged 1 commit intoskiptools:mainfrom
ky-is:url-toandroiduri
Feb 25, 2026
Merged

Proposal to add URL -> android.net.Uri conversion helper#47
marcprux merged 1 commit intoskiptools:mainfrom
ky-is:url-toandroiduri

Conversation

@ky-is
Copy link
Contributor

@ky-is ky-is commented Jan 26, 2025

I would like to propose adding a public method to URL that converts to a android.net.Uri. The platformValue is java.net.URI, but many APIs require the former type. toPath is analogous for converting to java.nio.file.Path.

This conversion is done slightly inconsistently in skip frameworks (see https://github.com/search?q=org%3Askiptools%20Uri.parse&type=code), so it could be good to standardize. I also use this in my app to pass a URL to Android-specific file APIs, so I think it would be helpful to have available publicly.


  • REQUIRED: I have signed the Contributor Agreement
  • REQUIRED: I have tested my change locally with swift test
  • OPTIONAL: I have tested my change on an iOS simulator or device
  • OPTIONAL: I have tested my change on an Android emulator or device

@cla-bot cla-bot bot added the cla-signed label Jan 26, 2025
@marcprux marcprux merged commit d950fad into skiptools:main Feb 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants