[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
committed by Magesh K
parent 7f2bd494b5
commit b88044757f
2 changed files with 16 additions and 5 deletions

View File

@@ -375,6 +375,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")