-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6906db1
commit 648c47a
Showing
6 changed files
with
103 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
Sources/OversizeAppStoreServices/Models/Typs/ReleaseType.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// Copyright © 2024 Alexander Romanov | ||
// ReleaseType.swift, created on 04.11.2024 | ||
// | ||
|
||
import Foundation | ||
|
||
public enum ReleaseType: String, CaseIterable, Codable, Sendable, Identifiable { | ||
case manual = "MANUAL" | ||
case afterApproval = "AFTER_APPROVAL" | ||
case scheduled = "SCHEDULED" | ||
|
||
public var id: String { rawValue } | ||
|
||
public var displayName: String { | ||
switch self { | ||
case .manual: | ||
return "Manually release this version" | ||
case .afterApproval: | ||
return "Automatically release this version" | ||
case .scheduled: | ||
return "Automatically release this version after App Review, no earlier than" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters