Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.

Commit 49512d8

Browse files
committed
Add variations as stable for Griffin until Channel is fixed in Brave-Core
1 parent 0d7f871 commit 49512d8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

App/iOS/Delegates/AppState.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,17 @@ public class AppState {
180180
}
181181
switches.append(.init(key: .rewardsFlags, value: BraveRewards.Configuration.current().flags))
182182

183+
if AppConstants.buildChannel == .release {
184+
// Chrome iOS sends "stable" and not "release" or anything else.
185+
// Anything else will only work on staging builds.
186+
switches.append(.init(key: .init(rawValue: "fake-variations-channel"), value: "stable"))
187+
} else if AppConstants.buildChannel == .beta {
188+
// Chrome iOS sends "stable" and not "release" or anything else.
189+
// Anything else will only work on staging builds.
190+
switches.append(.init(key: .init(rawValue: "fake-variations-channel"), value: "beta"))
191+
}
192+
193+
183194
// Initialize BraveCore
184195
return BraveCoreMain(userAgent: UserAgent.mobile, additionalSwitches: switches)
185196
}

0 commit comments

Comments
 (0)