Skip to content

Commit

Permalink
Add feature flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
hafizrahman committed Dec 12, 2024
1 parent c891053 commit 219a64c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ enum class FeatureFlag {
POS_NON_SIMPLE_PRODUCT_TYPES,
POS_CASH_PAYMENTS,
POS_RECEIPTS,
PRODUCT_GLOBAL_UNIQUE_IDENTIFIER_SUPPORT;
PRODUCT_GLOBAL_UNIQUE_IDENTIFIER_SUPPORT,
BULK_UPDATE_ORDERS_STATUS;

fun isEnabled(context: Context? = null): Boolean {
return when (this) {
Expand All @@ -32,7 +33,8 @@ enum class FeatureFlag {
POS_NON_SIMPLE_PRODUCT_TYPES,
POS_CASH_PAYMENTS,
POS_RECEIPTS,
PRODUCT_GLOBAL_UNIQUE_IDENTIFIER_SUPPORT -> PackageUtils.isDebugBuild()
PRODUCT_GLOBAL_UNIQUE_IDENTIFIER_SUPPORT,
BULK_UPDATE_ORDERS_STATUS -> PackageUtils.isDebugBuild()

NEW_SHIPPING_SUPPORT,
ENDLESS_CAMPAIGNS_SUPPORT,
Expand Down

0 comments on commit 219a64c

Please sign in to comment.