Skip to content

Commit ce22845

Browse files
committed
add tor optino to app config
1 parent b127e8e commit ce22845

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

lib/app_config.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'wallets/crypto_currency/intermediate/frost_currency.dart';
66

77
part 'app_config.g.dart';
88

9-
enum AppFeature { themeSelection, buy, swap }
9+
enum AppFeature { themeSelection, buy, swap, tor }
1010

1111
abstract class AppConfig {
1212
static const appName = _prefix + _separator + suffix;
@@ -77,10 +77,9 @@ abstract class AppConfig {
7777
static CryptoCurrency getCryptoCurrencyByPrettyName(final String prettyName) {
7878
// trocador hack
7979
const hackSplitter = " (Mainnet";
80-
final name =
81-
prettyName.contains(hackSplitter)
82-
? prettyName.split(hackSplitter).first.toLowerCase()
83-
: prettyName.replaceAll(" ", "").toLowerCase();
80+
final name = prettyName.contains(hackSplitter)
81+
? prettyName.split(hackSplitter).first.toLowerCase()
82+
: prettyName.replaceAll(" ", "").toLowerCase();
8483

8584
try {
8685
return coins.firstWhere(

scripts/app_config/configure_campfire.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const _shortDescriptionText = "Your privacy. Your wallet. Your Firo.";
6161
const _commitHash = "$BUILT_COMMIT_HASH";
6262
6363
const Set<AppFeature> _features = {
64+
AppFeature.tor,
6465
AppFeature.swap
6566
};
6667

scripts/app_config/configure_stack_duo.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ const _commitHash = "$BUILT_COMMIT_HASH";
5959
const Set<AppFeature> _features = {
6060
AppFeature.themeSelection,
6161
AppFeature.buy,
62+
AppFeature.tor,
6263
AppFeature.swap
6364
};
6465

scripts/app_config/configure_stack_wallet.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ const _commitHash = "$BUILT_COMMIT_HASH";
7171
const Set<AppFeature> _features = {
7272
AppFeature.themeSelection,
7373
AppFeature.buy,
74+
AppFeature.tor,
7475
AppFeature.swap
7576
};
7677

0 commit comments

Comments
 (0)