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

feat: URL & URLSearchParams #234

Merged
merged 11 commits into from
Mar 26, 2024
Merged

feat: URL & URLSearchParams #234

merged 11 commits into from
Mar 26, 2024

Conversation

triniwiz
Copy link
Member

No description provided.

@cla-bot cla-bot bot added the cla: yes label Jan 18, 2024
@edusperoni
Copy link
Collaborator

maybe this (and the android counterpart) can be written using the new node way of binding modules (so no changes needed in the Runtime.h/mm):

https://github.com/NativeScript/ios/pull/221/files

Also, I think we should just use "URL" instead of URLImpl for the property

@triniwiz
Copy link
Member Author

This seems way nicer

@shirakaba
Copy link

See my pre-review comments on the equivalent Android PR – I've got the same questions about this repo as well. And thanks again!

@triniwiz triniwiz marked this pull request as ready for review January 20, 2024 03:32
@NathanWalker NathanWalker force-pushed the feat/ada-url-y-search-params branch 4 times, most recently from 33515bd to c604b9f Compare January 30, 2024 22:28
URL.createObjectURL = function (object, options = null) {
try {
if (object instanceof Blob || object instanceof File) {
const id = NSUUID.UUID().UUIDString;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@triniwiz you need to convert the UUID to lowercase. iOS generates UUID in uppercase but the standard is to use lower case:

Are UUIDs Case-sensitive?
No, UUIDs are written in base 16 which uses numbers 0-9 and characters a-f. There is no distinction between upper and lowercase letters. However, RCF 4122 section 3 requires that UUID generators output in lowercase and systems accept UUIDs in upper and lowercase.

@NathanWalker NathanWalker force-pushed the feat/ada-url-y-search-params branch from 1f0a6b5 to 4c11dab Compare January 31, 2024 17:45
@NathanWalker NathanWalker merged commit dc3c76f into main Mar 26, 2024
3 checks passed
farfromrefug added a commit to Akylas/nativescript-ios-runtime that referenced this pull request Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants