mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
[AltStoreCore] Updates StoreApp to support Patreon-exclusive apps
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user