[AltStoreCore] Fixes incorrectly merging app versions for same app from different sources

This commit is contained in:
Riley Testut
2023-04-04 17:14:52 -05:00
parent 0b3765f3c4
commit 3e3d9a45ed
2 changed files with 16 additions and 5 deletions

View File

@@ -243,6 +243,13 @@ public extension StoreApp
return self._versions.firstObject as? AppVersion
}
var globallyUniqueID: String? {
guard let sourceIdentifier = self.sourceIdentifier else { return nil }
let globallyUniqueID = self.bundleIdentifier + "|" + sourceIdentifier
return globallyUniqueID
}
@nonobjc class func fetchRequest() -> NSFetchRequest<StoreApp>
{
return NSFetchRequest<StoreApp>(entityName: "StoreApp")