Skip to content

UserDefaults: Implement volatile domains, argument domain #1403

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

Closed
wants to merge 4 commits into from
Closed

UserDefaults: Implement volatile domains, argument domain #1403

wants to merge 4 commits into from

Conversation

millenomi
Copy link
Contributor

This implements:

  • The .volatileDomain(forName:) API and related calls.
  • The volatile argument domain, UserDefaults.argumentDomain.

A note: since there is no language-supported bridging in Swift Foundation, we opt to accept and return value types (Array<>, Dictionary<,_>, Date, URL…) rather than reference types (NSArray, NSDictionary, NSDate, NSURL…). We internally convert to reference types them to a. check that you are only saving plist types and b. to support existing persistent domain API (since these objects go to CF and need to be reference types).

 - Volatile domains.
 - UserDefaults.argumentDomain, a particular volatile domain, including arguments parsing.

WIP: Requires testing.
@millenomi
Copy link
Contributor Author

@swift-ci Please test.

@millenomi
Copy link
Contributor Author

:\ I may have to cut some tests, if I can't have TestFoudation do a @testable import.

@millenomi
Copy link
Contributor Author

@swift-ci Please test.

@alblue
Copy link
Contributor

alblue commented Jan 25, 2018

Please rebase on master and resubmit

@millenomi
Copy link
Contributor Author

This has been superseded by: #1408

@millenomi millenomi closed this Jan 25, 2018
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.

2 participants