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

Commit

Permalink
Add variations as stable for Griffin until Channel is fixed in Brave-…
Browse files Browse the repository at this point in the history
…Core
  • Loading branch information
Brandon-T committed Feb 8, 2024
1 parent 0d7f871 commit 49512d8
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 @@ -180,6 +180,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 49512d8

Please sign in to comment.