[cleanup]: renamed new field for build revision from commitID to revision

This commit is contained in:
Magesh K
2024-12-18 02:32:11 +05:30
parent cf0a2001f0
commit 7af0992a2b
5 changed files with 22 additions and 16 deletions

View File

@@ -46,8 +46,10 @@ public class AppVersion: NSManagedObject, Decodable, Fetchable
@NSManaged public var appBundleID: String
@NSManaged public var sourceID: String?
// TODO: @mahee96: retire isBeta and use a string type to decode and store values as enum
@NSManaged public var isBeta: Bool
@NSManaged public var commitID: String?
@NSManaged public var revision: String?
/* Relationships */
@NSManaged public private(set) var app: StoreApp?
@@ -70,7 +72,7 @@ public class AppVersion: NSManagedObject, Decodable, Fetchable
case minOSVersion
case maxOSVersion
case isBeta
case commitID
case revision = "commitID"
}
public required init(from decoder: Decoder) throws
@@ -97,7 +99,7 @@ public class AppVersion: NSManagedObject, Decodable, Fetchable
self._maxOSVersion = try container.decodeIfPresent(String.self, forKey: .maxOSVersion)
// self.isBeta = try container.decodeIfPresent(Bool.self, forKey: .isBeta) ?? false
// self.commitID = try container.decodeIfPresent(String.self, forKey: .commitID)
// self.revision = try container.decodeIfPresent(String.self, forKey: .revision)
}
catch
{