Skip to content

Commit

Permalink
Enable .com web based login on test builds
Browse files Browse the repository at this point in the history
  • Loading branch information
crazytonyli committed Nov 13, 2024
1 parent 7abbab2 commit e73c44c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions WordPress/Classes/System/WordPressAppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,11 @@ extension WordPressAppDelegate {
/// Updates the remote feature flags using an authenticated remote if a token is provided or an account exists
/// Otherwise an anonymous remote will be used
func updateFeatureFlags(authToken: String? = nil, completion: (() -> Void)? = nil) {
// Enable certain feature flags on test builds.
if BuildConfiguration.current ~= [.a8cPrereleaseTesting, .a8cBranchTest, .localDeveloper] {
FeatureFlagOverrideStore().override(RemoteFeatureFlag.dotComWebLogin, withValue: true)
}

var api: WordPressComRestApi
if let authToken {
api = WordPressComRestApi.defaultV2Api(authToken: authToken)
Expand Down

0 comments on commit e73c44c

Please sign in to comment.