Skip to content

Commit b838761

Browse files
authored
Merge pull request #5355 from woocommerce/feat/5354-jcp-feature-flag
Add a feature flag for JCP support
2 parents 737aacf + 0d6c17e commit b838761

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Experiments/Experiments/DefaultFeatureFlagService.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ public struct DefaultFeatureFlagService: FeatureFlagService {
2727
return buildConfig == .localDeveloper || buildConfig == .alpha
2828
case .filterProductsByCategory:
2929
return buildConfig == .localDeveloper || buildConfig == .alpha
30+
case .jetpackConnectionPackageSupport:
31+
return buildConfig == .localDeveloper || buildConfig == .alpha
3032
default:
3133
return true
3234
}

Experiments/Experiments/FeatureFlag.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,8 @@ public enum FeatureFlag: Int {
5353
/// Allows to filter products by a product category, persisting it so the filter can remain after restarting the app
5454
///
5555
case filterProductsByCategory
56+
57+
/// Allows sites with plugins that include Jetpack Connection Package and without Jetpack-the-plugin to connect to the app
58+
///
59+
case jetpackConnectionPackageSupport
5660
}

0 commit comments

Comments
 (0)