From d3515605f7345c45b107c2c8bec1c4228259b005 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Thu, 2 Jul 2026 21:40:54 -0700 Subject: [PATCH] Add Remote Release Channel Check Nucleic-Session: 7D1A5F60-CF2F-44E6-B060-51C4C2EA79D1 Co-authored-by: Nucleic --- NucleicRemote/NucleicRemote/Views/BuildBanner.swift | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/NucleicRemote/NucleicRemote/Views/BuildBanner.swift b/NucleicRemote/NucleicRemote/Views/BuildBanner.swift index a07e9ee..7acc399 100644 --- a/NucleicRemote/NucleicRemote/Views/BuildBanner.swift +++ b/NucleicRemote/NucleicRemote/Views/BuildBanner.swift @@ -17,6 +17,18 @@ enum BuildChannel { case releaseCandidate /// The `stable` channel — no banner. 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.