[AltStore] Adds basic Patreon integration

- Lists beta versions of apps when signed in to Patreon
- Lists names of Patrons with the Credits benefit
This commit is contained in:
Riley Testut
2019-08-28 11:13:22 -07:00
parent 8df4c97a74
commit eb5b1a616a
33 changed files with 1147 additions and 39 deletions

View File

@@ -38,6 +38,7 @@ class StoreApp: NSManagedObject, Decodable, Fetchable
@NSManaged private(set) var downloadURL: URL
@NSManaged private(set) var tintColor: UIColor?
@NSManaged private(set) var isBeta: Bool
@NSManaged var sortIndex: Int32
@@ -71,6 +72,7 @@ class StoreApp: NSManagedObject, Decodable, Fetchable
case subtitle
case permissions
case size
case isBeta = "beta"
}
required init(from decoder: Decoder) throws
@@ -106,6 +108,7 @@ class StoreApp: NSManagedObject, Decodable, Fetchable
}
self.size = try container.decode(Int32.self, forKey: .size)
self.isBeta = try container.decodeIfPresent(Bool.self, forKey: .isBeta) ?? false
let permissions = try container.decodeIfPresent([AppPermission].self, forKey: .permissions) ?? []