Skip to content

Commit

Permalink
Merge pull request #10759 from woocommerce/issue/customizable-layout-…
Browse files Browse the repository at this point in the history
…feature-flag

Add EXPANDED_ANALYTIC_HUB_M2 feature flag
  • Loading branch information
atorresveiga authored Feb 12, 2024
2 parents d3ced62 + 5eaac83 commit 3c11a42
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ enum class FeatureFlag {
IAP_FOR_STORE_CREATION,
BETTER_CUSTOMER_SEARCH_M2,
ORDER_CREATION_AUTO_TAX_RATE,
BLAZE_I3;
BLAZE_I3,
EXPANDED_ANALYTIC_HUB_M2;

fun isEnabled(context: Context? = null): Boolean {
return when (this) {
Expand All @@ -26,7 +27,8 @@ enum class FeatureFlag {
WC_SHIPPING_BANNER,
BETTER_CUSTOMER_SEARCH_M2,
ORDER_CREATION_AUTO_TAX_RATE,
BLAZE_I3 -> PackageUtils.isDebugBuild()
BLAZE_I3,
EXPANDED_ANALYTIC_HUB_M2 -> PackageUtils.isDebugBuild()

IAP_FOR_STORE_CREATION -> false
}
Expand Down

0 comments on commit 3c11a42

Please sign in to comment.