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

Commit

Permalink
Fix #8755: Add variations as stable for Griffin until Channel is fixe…
Browse files Browse the repository at this point in the history
…d in Brave-Core (#8756)

- Add variations as stable for Griffin until Channel is fixed in Brave-Core
  • Loading branch information
Brandon-T authored Feb 8, 2024
1 parent d480090 commit 24c8001
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions App/iOS/Delegates/AppState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 24c8001

Please sign in to comment.