mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-14 09:13:25 +01:00
Migrates from Core Data model v4 to v5
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -27,4 +27,11 @@ class InstalledAppToInstalledAppMigrationPolicy: NSEntityMigrationPolicy
|
||||
// Cannot use NSManagedObject subclasses during migration, so fallback to using KVC instead.
|
||||
dInstance.setValue(teams.first, forKey: #keyPath(InstalledApp.team))
|
||||
}
|
||||
|
||||
@objc(defaultIsActiveForBundleID:)
|
||||
func defaultIsActive(for bundleID: String) -> NSNumber
|
||||
{
|
||||
let isActive = (bundleID == StoreApp.altstoreAppID)
|
||||
return NSNumber(value: isActive)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user