Skip to content

Commit eafc917

Browse files
authored
Enable .com web based login on test builds (#23801)
1 parent c985060 commit eafc917

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

WordPress/Classes/System/WordPressAppDelegate.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,11 @@ extension WordPressAppDelegate {
540540
/// Updates the remote feature flags using an authenticated remote if a token is provided or an account exists
541541
/// Otherwise an anonymous remote will be used
542542
func updateFeatureFlags(authToken: String? = nil, completion: (() -> Void)? = nil) {
543+
// Enable certain feature flags on test builds.
544+
if BuildConfiguration.current ~= [.a8cPrereleaseTesting, .a8cBranchTest, .localDeveloper] {
545+
FeatureFlagOverrideStore().override(RemoteFeatureFlag.dotComWebLogin, withValue: true)
546+
}
547+
543548
var api: WordPressComRestApi
544549
if let authToken {
545550
api = WordPressComRestApi.defaultV2Api(authToken: authToken)

0 commit comments

Comments
 (0)