Add Remote Release Channel Check
Nucleic-Session: 7D1A5F60-CF2F-44E6-B060-51C4C2EA79D1 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -17,6 +17,18 @@ enum BuildChannel {
|
|||||||
case releaseCandidate
|
case releaseCandidate
|
||||||
/// The `stable` channel — no banner.
|
/// The `stable` channel — no banner.
|
||||||
case release
|
case release
|
||||||
|
|
||||||
|
/// The wire projection sent to the host in `hello`, so it can gate the connection on
|
||||||
|
/// channel compatibility (`ReleaseChannel.isCompatible`).
|
||||||
|
var releaseChannel: ReleaseChannel {
|
||||||
|
switch self {
|
||||||
|
case .local: .local
|
||||||
|
case .canary: .canary
|
||||||
|
case .beta: .beta
|
||||||
|
case .releaseCandidate: .releaseCandidate
|
||||||
|
case .release: .release
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Build identity for the running app: which channel it came from and its build label.
|
/// Build identity for the running app: which channel it came from and its build label.
|
||||||
|
|||||||
Reference in New Issue
Block a user