[AltStoreCore] Updates StoreApp to support Patreon-exclusive apps

This commit is contained in:
Riley Testut
2023-11-15 13:41:05 -06:00
committed by Magesh K
parent 869b2dc92a
commit 6ba642335b
3 changed files with 59 additions and 2 deletions

View File

@@ -203,8 +203,9 @@ public class Source: NSManagedObject, Fetchable, Decodable
/* Source Detail */
@NSManaged public var subtitle: String?
@NSManaged public var websiteURL: URL?
@NSManaged public var localizedDescription: String?
@NSManaged public var websiteURL: URL?
@NSManaged public var patreonURL: URL?
// Optional properties with fallbacks.
// `private` to prevent accidentally using instead of `effective[PropertyName]`
@@ -257,6 +258,7 @@ public class Source: NSManagedObject, Fetchable, Decodable
case headerImageURL = "headerURL"
case websiteURL = "website"
case tintColor
case patreonURL
case apps
case news
@@ -287,6 +289,7 @@ public class Source: NSManagedObject, Fetchable, Decodable
self.localizedDescription = try container.decodeIfPresent(String.self, forKey: .localizedDescription)
self.iconURL = try container.decodeIfPresent(URL.self, forKey: .iconURL)
self.headerImageURL = try container.decodeIfPresent(URL.self, forKey: .headerImageURL)
self.patreonURL = try container.decodeIfPresent(URL.self, forKey: .patreonURL)
if let tintColorHex = try container.decodeIfPresent(String.self, forKey: .tintColor)
{