diff --git a/Experiments/Experiments/DefaultFeatureFlagService.swift b/Experiments/Experiments/DefaultFeatureFlagService.swift index b5de03bd5b1..e37b6ce490f 100644 --- a/Experiments/Experiments/DefaultFeatureFlagService.swift +++ b/Experiments/Experiments/DefaultFeatureFlagService.swift @@ -95,6 +95,8 @@ public struct DefaultFeatureFlagService: FeatureFlagService { return buildConfig == .localDeveloper || buildConfig == .alpha case .euShippingNotification: return buildConfig == .localDeveloper || buildConfig == .alpha + case .sdkLessGoogleSignIn: + return buildConfig == .localDeveloper || buildConfig == .alpha default: return true } diff --git a/Experiments/Experiments/FeatureFlag.swift b/Experiments/Experiments/FeatureFlag.swift index 872e1f5ae5f..26925cf39bf 100644 --- a/Experiments/Experiments/FeatureFlag.swift +++ b/Experiments/Experiments/FeatureFlag.swift @@ -203,4 +203,8 @@ public enum FeatureFlag: Int { /// Enables EU Bound notifications inside the Shipping Labels feature /// case euShippingNotification + + /// Do not use the Google SDK when authenticating through a Google account. + /// + case sdkLessGoogleSignIn } diff --git a/WooCommerce/Classes/Extensions/WordPressAuthenticator+Woo.swift b/WooCommerce/Classes/Extensions/WordPressAuthenticator+Woo.swift index 55c021369fa..975a3ba89c2 100644 --- a/WooCommerce/Classes/Extensions/WordPressAuthenticator+Woo.swift +++ b/WooCommerce/Classes/Extensions/WordPressAuthenticator+Woo.swift @@ -40,7 +40,8 @@ extension WordPressAuthenticator { enableManualSiteCredentialLogin: true, enableManualErrorHandlingForSiteCredentialLogin: isManualErrorHandlingEnabled, useEnterEmailAddressAsStepValueForGetStartedVC: true, - enableSiteAddressLoginOnlyInPrologue: true) + enableSiteAddressLoginOnlyInPrologue: true, + googleLoginWithoutSDK: featureFlagService.isFeatureFlagEnabled(.sdkLessGoogleSignIn)) let systemGray3LightModeColor = UIColor(red: 199/255.0, green: 199/255.0, blue: 204/255.0, alpha: 1) let systemLabelLightModeColor = UIColor(red: 0, green: 0, blue: 0, alpha: 1)