Skip to content

Codable conformance for URLComponents #1299

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

Merged
merged 5 commits into from
Nov 7, 2017

Conversation

bubski
Copy link
Contributor

@bubski bubski commented Nov 5, 2017

Continuation of #1108, #1127, #1148 & #1192

This PR mirrors final missing changes from swiftlang/swift#11368


Added conformances + unit tests for

  • URLComponents

I had problems with NSCFConstantString being overreleased (CFString constants bridged from CoreFoundation's CFSTR("")).

I don't know how to properly fix this, so any advice is welcome.
I took the inspiration for a CFStringCreateCopy workaround from https://github.com/apple/swift-corelibs-foundation/pull/144/files

@parkera
Copy link
Contributor

parkera commented Nov 6, 2017

The lack of an un-deallocatable nature of CFSTR is a known issue that stems from us deciding to use Swift objects to underlie all CF types. Using the CFStringCreateCopy is a good enough workaround for now.

@bubski
Copy link
Contributor Author

bubski commented Nov 6, 2017

fyi @parkera I had to push a small update after #1285 was merged

@spevans
Copy link
Contributor

spevans commented Nov 7, 2017

@swift-ci please test

@ianpartridge
Copy link
Contributor

@swift-ci please test and merge

@swift-ci swift-ci merged commit 24ac050 into swiftlang:master Nov 7, 2017
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

Successfully merging this pull request may close these issues.

5 participants