Provenance
Provenance copied to clipboard
Backup / Restore
Somewhat related to #1 but not a full syncing solution.
Work in Progress Ticket
This falls into 2 categories:
- iCloud automatic backup For this to really work correctly we need to respect the directory guidelines, https://developer.apple.com/icloud/documentation/data-storage/index.html
ie; ROMs, BIOSes etc should be moved out of Documents, but save states and Realm should stay there
- User genereated artwork should stay in documents
- Artwork that can be redownloaded (default artwork) should be in Caches
- Roms should be in Caches (possibly add an option to not auto-delete by marking ROMs flagged as favorite with the 'do not back up' but leave in Documents (this causes the roms to not be deleted but not included in backups.
- Manual Backup / Restore
Manually allow backup of Realm, Saves, Custom Images Use a framework to allow different locations https://github.com/amosavian/FileProvider
Example code for locking realm DB temporarily.
let containerURL = FileManager.default.url(forUbiquityContainerIdentifier: nil)
let realmArchiveURL = containerURL.appendPathComponent("MyArchivedRealm.realm")
let realm = try! Realm()
try! realm.writeCopy(toFile: realmArchiveURL)
Research TODO:
-
Try out IceCream maybe https://github.com/caiyue1993/IceCream
-
Is iCloud backup working? Does it work with side loaded apps at all?
-
Entitlements for iCloud Drive
- Can be automated creating the containers, app bundle ids using fastlane
- https://docs.fastlane.tools/actions/update_app_group_identifiers/
-
Do something about hard coded
PVAppGroupId -
Realm DB moved?
-
resign? for changing prov pfoiel entitlements https://docs.fastlane.tools/actions/resign/