Skip to content

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
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.

1 participant