-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathconfigure_stack_duo.sh
More file actions
executable file
·93 lines (75 loc) · 2.42 KB
/
Copy pathconfigure_stack_duo.sh
File metadata and controls
executable file
·93 lines (75 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/bin/bash
set -x -e
# Configure files for Duo.
export NEW_NAME="Stack Duo"
export NEW_APP_ID="com.cypherstack.stackduo"
export NEW_APP_ID_CAMEL="com.cypherstack.stackDuo"
export NEW_APP_ID_SNAKE="com.cypherstack.stack_duo"
export NEW_BASIC_NAME="stack_duo"
NEW_PUBSPEC_NAME="stackduo"
PUBSPEC_FILE="${APP_PROJECT_ROOT_DIR}/pubspec.yaml"
# String replacements.
sed -i.bak \
-e "s/name: PLACEHOLDER/name: ${NEW_PUBSPEC_NAME}/g" \
-e "s/description: PLACEHOLDER/description: ${NEW_NAME}/g" \
"${PUBSPEC_FILE}"
rm -f "${PUBSPEC_FILE}.bak"
dart "${APP_PROJECT_ROOT_DIR}/tool/process_pubspec_deps.dart" \
"${PUBSPEC_FILE}" \
XMR \
TOR \
FROST
dart "${APP_PROJECT_ROOT_DIR}/tool/gen_interfaces.dart" \
"${APP_PROJECT_ROOT_DIR}/tool/wl_templates" \
"${APP_PROJECT_ROOT_DIR}/lib/wl_gen/generated" \
XMR \
TOR \
FROST
export INCLUDE_EPIC_SO="OFF"
export INCLUDE_MWC_SO="OFF"
pushd "${APP_PROJECT_ROOT_DIR}"
BUILT_COMMIT_HASH=$(git log -1 --pretty=format:"%H")
popd
APP_CONFIG_DART_FILE="${APP_PROJECT_ROOT_DIR}/lib/app_config.g.dart"
rm -f "$APP_CONFIG_DART_FILE"
cat << EOF > "$APP_CONFIG_DART_FILE"
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'app_config.dart';
const _prefix = "Stack";
const _separator = " ";
const _suffix = "Duo";
const _emptyWalletsMessage =
"You do not have any wallets yet. Start building your crypto Stack!";
const _appDataDirName = "stackduo";
const _shortDescriptionText = "An open-source, multicoin wallet for everyone";
const _commitHash = "$BUILT_COMMIT_HASH";
const _mwebdExeHash = "";
const Set<AppFeature> _features = {
AppFeature.themeSelection,
AppFeature.buy,
AppFeature.tor,
AppFeature.shopinBit,
AppFeature.cakePay,
AppFeature.swap
};
const ({String light, String dark})? _appIconAsset = (
light: "assets/in_app_logo_icons/stack-duo-icon_light.svg",
dark: "assets/in_app_logo_icons/stack-duo-icon_dark.svg",
);
final List<CryptoCurrency> _supportedCoins = List.unmodifiable([
Bitcoin(CryptoCurrencyNetwork.main),
Monero(CryptoCurrencyNetwork.main),
BitcoinFrost(CryptoCurrencyNetwork.main),
Bitcoin(CryptoCurrencyNetwork.test),
Bitcoin(CryptoCurrencyNetwork.test4),
BitcoinFrost(CryptoCurrencyNetwork.test),
BitcoinFrost(CryptoCurrencyNetwork.test4),
]);
final ({String from, String fromFuzzyNet, String to, String toFuzzyNet})
_swapDefaults = (
from: "BTC",
fromFuzzyNet: "btc",
to: "XMR",
toFuzzyNet: "xmr",
);
EOF