Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No "resolve" methods #274

Open
mipastgt opened this issue Jan 9, 2024 · 5 comments
Open

No "resolve" methods #274

mipastgt opened this issue Jan 9, 2024 · 5 comments

Comments

@mipastgt
Copy link

mipastgt commented Jan 9, 2024

I cannot find any of the "resolve" methods from the Java URI class here. Did I miss something?

@eygraber
Copy link
Owner

eygraber commented Jan 9, 2024

The library is based on Android's Uri class (distinct from Java's URI). There are a couple of extension functions related to URI in the jvmMain source set, but nothing to do with resolve.

What part of the resolve methods were you expecting to see here?

@mipastgt
Copy link
Author

mipastgt commented Jan 9, 2024

https://docs.oracle.com/en/java/javase/21/docs//api/java.base/java/net/URI.html#resolve(java.lang.String)
Why is anybody using these outdated Android APIs for which much better plain Java variants exist?

@eygraber
Copy link
Owner

eygraber commented Jan 9, 2024

I'm aware of the class, but I'm not sure why you're looking for it in this library.

@mipastgt
Copy link
Author

mipastgt commented Jan 9, 2024

I am converting some Java code to Kotlin multiplatform and therefore I need a replacement for exactly this Java method and I was hoping to find it in your URI class too.

@eygraber
Copy link
Owner

eygraber commented Jan 9, 2024

I see. It isn't available in the library, but shouldn't be too hard to implement. I probably won't have time for it for a bit, but I'll gladly accept a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants