From 9c9d706c612f156b64977ccba1ec95427d776229 Mon Sep 17 00:00:00 2001 From: Chris McGraw <2454408+wargcm@users.noreply.github.com> Date: Wed, 31 May 2023 20:50:57 -0400 Subject: [PATCH] Add Jetpack Social feature flag --- WordPress/Classes/Utility/BuildInformation/FeatureFlag.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/WordPress/Classes/Utility/BuildInformation/FeatureFlag.swift b/WordPress/Classes/Utility/BuildInformation/FeatureFlag.swift index 6078d1e0e006..d8887e1bdeb7 100644 --- a/WordPress/Classes/Utility/BuildInformation/FeatureFlag.swift +++ b/WordPress/Classes/Utility/BuildInformation/FeatureFlag.swift @@ -40,6 +40,7 @@ enum FeatureFlag: Int, CaseIterable { case readerUserBlocking case personalizeHomeTab case commentModerationUpdate + case jetpackSocial /// Returns a boolean indicating if the feature is enabled var enabled: Bool { @@ -128,6 +129,8 @@ enum FeatureFlag: Int, CaseIterable { return false case .commentModerationUpdate: return false + case .jetpackSocial: + return AppConfiguration.isJetpack && BuildConfiguration.current == .localDeveloper } } @@ -226,6 +229,8 @@ extension FeatureFlag { return "Personalize Home Tab" case .commentModerationUpdate: return "Comments Moderation Update" + case .jetpackSocial: + return "Jetpack Social" } } }