mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-18 11:13:28 +01:00
- Renamed beta track to nightly
This commit is contained in:
@@ -94,7 +94,7 @@ public extension UserDefaults
|
|||||||
@NSManaged var responseCachingDisabled: Bool
|
@NSManaged var responseCachingDisabled: Bool
|
||||||
|
|
||||||
// Default track for beta updates when beta-updates are enabled
|
// Default track for beta updates when beta-updates are enabled
|
||||||
static let defaultBetaUpdatesTrack: String = ReleaseTracks.beta.rawValue
|
static let defaultBetaUpdatesTrack: String = ReleaseTracks.nightly.rawValue
|
||||||
|
|
||||||
class func registerDefaults()
|
class func registerDefaults()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ public enum ReleaseTracks: String, CodingKey, CaseIterable
|
|||||||
case local
|
case local
|
||||||
|
|
||||||
case alpha
|
case alpha
|
||||||
case beta = "nightly"
|
case nightly = "nightly"
|
||||||
case stable
|
case stable
|
||||||
|
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@ public enum ReleaseTracks: String, CodingKey, CaseIterable
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static func isBetaTrack(_ key: ReleaseTracks) -> Bool {
|
private static func isBetaTrack(_ key: ReleaseTracks) -> Bool {
|
||||||
key == .alpha || key == .beta
|
key == .alpha || key == .nightly
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -527,7 +527,7 @@ public class StoreApp: BaseEntity, Decodable
|
|||||||
{
|
{
|
||||||
if try container.decodeIfPresent(Bool.self, forKey: .isBeta) ?? false
|
if try container.decodeIfPresent(Bool.self, forKey: .isBeta) ?? false
|
||||||
{
|
{
|
||||||
channel = ReleaseTracks.beta.stringValue
|
channel = ReleaseTracks.nightly.stringValue
|
||||||
}
|
}
|
||||||
|
|
||||||
// create one from the storeApp description and use it as current
|
// create one from the storeApp description and use it as current
|
||||||
@@ -780,7 +780,7 @@ public extension StoreApp
|
|||||||
let placeholderSize: Int32 = 0
|
let placeholderSize: Int32 = 0
|
||||||
|
|
||||||
#if BETA
|
#if BETA
|
||||||
placeholderChannel = ReleaseTracks.beta.stringValue
|
placeholderChannel = ReleaseTracks.nightly.stringValue
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
let app = StoreApp(context: context)
|
let app = StoreApp(context: context)
|
||||||
|
|||||||
Reference in New Issue
Block a user