mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
- Cake Pay: 36 files (~5.3k LOC) plus DI registrations, routes, and UI branches (feature was hard-disabled and unreachable) - unreachable buy providers: robinhood, dfx, onramper, meld, kryptonim (~1.7k LOC); MoonPay untouched - exchange providers that only existed as commented-out wiring: changenow, sideshift, chainflip, exolix, swaptrade, letsexchange, stealthex, xoswap, swapsxyz, thorchain, simpleswap (~5.2k LOC); Trocador untouched; ExchangeProviderDescription values and Hive adapters kept so stored trades and orders still deserialize - di.dart setup() split from one 1,452-line function into 10 sequential chunk functions; registration execution order verified identical before and after (251 register calls)
21 lines
1.0 KiB
Dart
21 lines
1.0 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 {
|
|
// Hash Bags: 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;
|
|
}
|