Skip to content

Commit 0d6c17e

Browse files
committed
Add a feature flag for JCP support.
1 parent 22f860f commit 0d6c17e

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)