From 24c80018d58a3bd1845244abbb275b582c4e07d0 Mon Sep 17 00:00:00 2001 From: Brandon-T Date: Thu, 8 Feb 2024 17:18:41 -0500 Subject: [PATCH] Fix #8755: Add variations as stable for Griffin until Channel is fixed in Brave-Core (#8756) - Add variations as stable for Griffin until Channel is fixed in Brave-Core --- App/iOS/Delegates/AppState.swift | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/App/iOS/Delegates/AppState.swift b/App/iOS/Delegates/AppState.swift index eade1547a26..86e51ddfdbf 100644 --- a/App/iOS/Delegates/AppState.swift +++ b/App/iOS/Delegates/AppState.swift @@ -179,6 +179,17 @@ public class AppState { } switches.append(.init(key: .rewardsFlags, value: BraveRewards.Configuration.current().flags)) + if AppConstants.buildChannel == .release { + // Chrome iOS sends "stable" and not "release" or anything else. + // Anything else will only work on staging builds. + switches.append(.init(key: .init(rawValue: "fake-variations-channel"), value: "stable")) + } else if AppConstants.buildChannel == .beta { + // Chrome iOS sends "stable" and not "release" or anything else. + // Anything else will only work on staging builds. + switches.append(.init(key: .init(rawValue: "fake-variations-channel"), value: "beta")) + } + + // Initialize BraveCore return BraveCoreMain(userAgent: UserAgent.mobile, additionalSwitches: switches) }