Skip to content

Commit

Permalink
Merge pull request wordpress-mobile#20782 from wordpress-mobile/task/…
Browse files Browse the repository at this point in the history
…20781-jp-social-feature-flag

Jetpack Social: Add Jetpack Social feature flag
  • Loading branch information
wargcm authored Jun 2, 2023
2 parents 835b992 + 9c9d706 commit 01df04e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions WordPress/Classes/Utility/BuildInformation/FeatureFlag.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -128,6 +129,8 @@ enum FeatureFlag: Int, CaseIterable {
return AppConfiguration.isJetpack
case .commentModerationUpdate:
return false
case .jetpackSocial:
return AppConfiguration.isJetpack && BuildConfiguration.current == .localDeveloper
}
}

Expand Down Expand Up @@ -226,6 +229,8 @@ extension FeatureFlag {
return "Personalize Home Tab"
case .commentModerationUpdate:
return "Comments Moderation Update"
case .jetpackSocial:
return "Jetpack Social"
}
}
}
Expand Down

0 comments on commit 01df04e

Please sign in to comment.