mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-11 15:53:30 +01:00
[AltStore] Adds App.size
This commit is contained in:
@@ -27,6 +27,7 @@ class App: NSManagedObject, Decodable, Fetchable
|
||||
|
||||
@NSManaged private(set) var developerName: String
|
||||
@NSManaged private(set) var localizedDescription: String
|
||||
@NSManaged private(set) var size: Int32
|
||||
|
||||
@NSManaged private(set) var iconName: String
|
||||
@NSManaged private(set) var screenshotNames: [String]
|
||||
@@ -66,6 +67,7 @@ class App: NSManagedObject, Decodable, Fetchable
|
||||
case tintColor
|
||||
case subtitle
|
||||
case permissions
|
||||
case size
|
||||
}
|
||||
|
||||
required init(from decoder: Decoder) throws
|
||||
@@ -100,6 +102,8 @@ class App: NSManagedObject, Decodable, Fetchable
|
||||
self.tintColor = tintColor
|
||||
}
|
||||
|
||||
self.size = try container.decode(Int32.self, forKey: .size)
|
||||
|
||||
let permissions = try container.decodeIfPresent([AppPermission].self, forKey: .permissions) ?? []
|
||||
|
||||
context.insert(self)
|
||||
|
||||
Reference in New Issue
Block a user