3.0.0
- Valet is rewritten in Swift!
- A guide for upgrading from Valet 2.* can be found in our README. Note that you do not need to migrate your keychain data. Only the API surface has changed.
This version is deprecated. Upgrade to 3.1.2+
Known issue: attempting to create a Shared Access Group Valet via Valet.sharedAccessGroupValet
or Valet.iCloudSharedAccessGroupValet
would create a standard / non-shared Valet.
Workaround
For those who released an app with Valet v3.0-3.1.1 and used a Valet.sharedAccessGroupValet
, run the following before accessing data in your Valet.sharedAccessGroupValet
:
let desiredValet = Valet.sharedAccessGroupValet(with: yourIdentifier, accessibility: yourAccessibility)
let mistakenlyCreatedValet = Valet.valet(with: yourIdentifier, accessibility: yourAccessibility)
desiredValet.migrateObjects(from: mistakenlyCreatedValet, removeOnCompletion: true)
For those who released an app with Valet v3.0-3.1.1 and used a Valet.iCloudSharedAccessGroupValet
, run the following before accessing data in your Valet.iCloudSharedAccessGroupValet
:
let desiredValet = Valet.iCloudSharedAccessGroupValet(with: yourIdentifier, accessibility: yourAccessibility)
let mistakenlyCreatedValet = Valet.iCloudValet(with: yourIdentifier, accessibility: yourAccessibility)
desiredValet.migrateObjects(from: mistakenlyCreatedValet, removeOnCompletion: true)