mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-11 15:53:30 +01:00
Updates + migrates Core Data model to v2
This commit is contained in:
File diff suppressed because one or more lines are too long
25
AltStore/Model/Migrations/Policies/StoreAppPolicy.swift
Normal file
25
AltStore/Model/Migrations/Policies/StoreAppPolicy.swift
Normal file
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// StoreAppPolicy.swift
|
||||
// AltStore
|
||||
//
|
||||
// Created by Riley Testut on 9/14/19.
|
||||
// Copyright © 2019 Riley Testut. All rights reserved.
|
||||
//
|
||||
|
||||
import CoreData
|
||||
|
||||
@objc(StoreAppToStoreAppMigrationPolicy)
|
||||
class StoreAppToStoreAppMigrationPolicy: NSEntityMigrationPolicy
|
||||
{
|
||||
@objc(migrateIconURL)
|
||||
func migrateIconURL() -> URL
|
||||
{
|
||||
return URL(string: "https://via.placeholder.com/150")!
|
||||
}
|
||||
|
||||
@objc(migrateScreenshotURLs)
|
||||
func migrateScreenshotURLs() -> NSCopying
|
||||
{
|
||||
return [] as NSArray
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user