Files
hash-wallet/lib/utils/feature_flag.dart
T
jwinterm 6845dc6a8b Disable Lightning across UI surfaces (FeatureFlag.isLightningEnabled = false)
- Add FeatureFlag.isLightningEnabled flag (off)
- Gate dashboard_view_model.hasLightning behind the flag, which transitively
  hides the LightningSwitcher in TopBar and the Lightning Username settings
  row (both already gated on hasLightning)
- Remove CryptoCurrency.btcln from CryptoCurrency.all so it stops appearing
  in any all-currencies pickers/lists

Lightning code paths (cw_bitcoin/lib/lightning/, lightning send/receive
pages) are intentionally left in place so the flag can be flipped back on
once we have an LSP / Greenlight node lined up.
2026-05-14 08:39:55 -04:00

25 lines
1.2 KiB
Dart

import 'package:cw_core/utils/proxy_wrapper.dart';
import 'package:cw_core/utils/tor/disabled.dart';
import 'package:flutter/foundation.dart';
class FeatureFlag {
static const bool isCakePayEnabled = false;
static const bool isCakePayPurchaseSimulationEnabled = true;
static const bool isCakePayRedemptionFlowEnabled = false;
static const bool isExolixEnabled = true;
// Hash Wallet: Lightning disabled — running Greenlight/LSP infra is out of
// scope for now. Re-enable once we have an LSP relationship lined up.
static const bool isLightningEnabled = false;
static const bool isBackgroundSyncEnabled = true;
static bool get isInAppTorEnabled => CakeTor.instance is! CakeTorDisabled;
static const int verificationWordsCount = kDebugMode || kProfileMode ? 0 : 2;
static const bool hasDevOptions = bool.fromEnvironment('hasDevOptions', defaultValue: kDebugMode || kProfileMode);
static const bool hasBitcoinViewOnly = true;
static const bool customBackgroundEnabled = false;
static const bool duressPinEnabled = true;
static const bool isEVMChainSwitcherEnabled = false;
static const bool isAutomaticNodeSwitchingEnabled = false;
static const bool hasNewUi = true;
static const bool hasNewUiExtraPages = true;
}