[AltStore] Renames App to StoreApp

This commit is contained in:
Riley Testut
2019-07-31 14:07:00 -07:00
parent 39a27f932a
commit 7727a0b725
15 changed files with 82 additions and 82 deletions

View File

@@ -125,9 +125,9 @@ private extension DatabaseManager
context.performAndWait {
guard let localApp = ALTApplication(fileURL: Bundle.main.bundleURL) else { return }
let storeApp: App
let storeApp: StoreApp
if let app = App.first(satisfying: NSPredicate(format: "%K == %@", #keyPath(App.bundleIdentifier), App.altstoreAppID), in: context)
if let app = StoreApp.first(satisfying: NSPredicate(format: "%K == %@", #keyPath(StoreApp.bundleIdentifier), StoreApp.altstoreAppID), in: context)
{
storeApp = app
}
@@ -135,7 +135,7 @@ private extension DatabaseManager
{
let source = Source.makeAltStoreSource(in: context)
storeApp = App.makeAltStoreApp(in: context)
storeApp = StoreApp.makeAltStoreApp(in: context)
storeApp.version = localApp.version
storeApp.source = source
}
@@ -148,7 +148,7 @@ private extension DatabaseManager
}
else
{
installedApp = InstalledApp(resignedApp: localApp, originalBundleIdentifier: App.altstoreAppID, context: context)
installedApp = InstalledApp(resignedApp: localApp, originalBundleIdentifier: StoreApp.altstoreAppID, context: context)
installedApp.storeApp = storeApp
}