2024-05-22 19:38:49 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -x -e
|
|
|
|
|
|
|
|
# Configure files for Stack Wallet.
|
|
|
|
|
2024-05-22 23:56:51 +00:00
|
|
|
export NEW_NAME="Stack Wallet"
|
|
|
|
export NEW_APP_ID="com.cypherstack.stackwallet"
|
|
|
|
export NEW_APP_ID_CAMEL="com.cypherstack.stackWallet"
|
|
|
|
export NEW_APP_ID_SNAKE="com.cypherstack.stack_wallet"
|
|
|
|
export NEW_BASIC_NAME="stack_wallet"
|
2024-05-22 19:38:49 +00:00
|
|
|
|
2024-05-22 23:56:51 +00:00
|
|
|
NEW_PUBSPEC_NAME="stackwallet"
|
2024-05-22 19:38:49 +00:00
|
|
|
PUBSPEC_FILE="${APP_PROJECT_ROOT_DIR}/pubspec.yaml"
|
|
|
|
|
|
|
|
# String replacements.
|
|
|
|
if [[ "$(uname)" == 'Darwin' ]]; then
|
|
|
|
# macos specific sed
|
2024-05-22 23:56:51 +00:00
|
|
|
sed -i '' "s/name: PLACEHOLDER/name: ${NEW_PUBSPEC_NAME}/g" "${PUBSPEC_FILE}"
|
|
|
|
sed -i '' "s/description: PLACEHOLDER/description: ${NEW_NAME}/g" "${PUBSPEC_FILE}"
|
2024-05-22 19:38:49 +00:00
|
|
|
else
|
2024-05-22 23:56:51 +00:00
|
|
|
sed -i "s/name: PLACEHOLDER/name: ${NEW_PUBSPEC_NAME}/g" "${PUBSPEC_FILE}"
|
|
|
|
sed -i "s/description: PLACEHOLDER/description: ${NEW_NAME}/g" "${PUBSPEC_FILE}"
|
2024-05-22 19:38:49 +00:00
|
|
|
fi
|
|
|
|
|
2024-05-24 19:56:14 +00:00
|
|
|
pushd "${APP_PROJECT_ROOT_DIR}"
|
|
|
|
BUILT_COMMIT_HASH=$(git log -1 --pretty=format:"%H")
|
|
|
|
popd
|
2024-05-22 19:38:49 +00:00
|
|
|
|
|
|
|
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 = "Wallet";
|
2024-05-23 15:20:11 +00:00
|
|
|
const _appDataDirName = "stackwallet";
|
2024-06-20 16:36:02 +00:00
|
|
|
const _shortDescriptionText = "An open-source, multicoin wallet for everyone";
|
2024-05-24 19:56:14 +00:00
|
|
|
const _commitHash = "$BUILT_COMMIT_HASH";
|
2024-05-22 19:38:49 +00:00
|
|
|
|
2024-06-05 18:05:22 +00:00
|
|
|
const Set<AppFeature> _features = {
|
|
|
|
AppFeature.themeSelection,
|
|
|
|
AppFeature.buy,
|
|
|
|
AppFeature.swap
|
|
|
|
};
|
|
|
|
|
2024-05-23 21:38:37 +00:00
|
|
|
const ({String light, String dark})? _appIconAsset = null;
|
|
|
|
|
2024-05-22 19:38:49 +00:00
|
|
|
final List<CryptoCurrency> _supportedCoins = List.unmodifiable([
|
|
|
|
Bitcoin(CryptoCurrencyNetwork.main),
|
2024-06-03 21:17:43 +00:00
|
|
|
Monero(CryptoCurrencyNetwork.main),
|
|
|
|
Banano(CryptoCurrencyNetwork.main),
|
2024-05-22 19:38:49 +00:00
|
|
|
Bitcoincash(CryptoCurrencyNetwork.main),
|
2024-06-03 21:17:43 +00:00
|
|
|
BitcoinFrost(CryptoCurrencyNetwork.main),
|
2024-05-22 19:38:49 +00:00
|
|
|
Dogecoin(CryptoCurrencyNetwork.main),
|
|
|
|
Ecash(CryptoCurrencyNetwork.main),
|
2024-06-03 21:17:43 +00:00
|
|
|
Epiccash(CryptoCurrencyNetwork.main),
|
2024-05-22 19:38:49 +00:00
|
|
|
Ethereum(CryptoCurrencyNetwork.main),
|
|
|
|
Firo(CryptoCurrencyNetwork.main),
|
2024-06-03 21:17:43 +00:00
|
|
|
Litecoin(CryptoCurrencyNetwork.main),
|
|
|
|
Nano(CryptoCurrencyNetwork.main),
|
|
|
|
Namecoin(CryptoCurrencyNetwork.main),
|
2024-05-22 19:38:49 +00:00
|
|
|
Particl(CryptoCurrencyNetwork.main),
|
|
|
|
Peercoin(CryptoCurrencyNetwork.main),
|
|
|
|
Solana(CryptoCurrencyNetwork.main),
|
|
|
|
Stellar(CryptoCurrencyNetwork.main),
|
|
|
|
Tezos(CryptoCurrencyNetwork.main),
|
|
|
|
Wownero(CryptoCurrencyNetwork.main),
|
|
|
|
Bitcoin(CryptoCurrencyNetwork.test),
|
2024-06-19 15:15:49 +00:00
|
|
|
Bitcoin(CryptoCurrencyNetwork.test4),
|
2024-05-22 19:38:49 +00:00
|
|
|
Bitcoincash(CryptoCurrencyNetwork.test),
|
2024-06-19 15:15:49 +00:00
|
|
|
BitcoinFrost(CryptoCurrencyNetwork.test),
|
|
|
|
BitcoinFrost(CryptoCurrencyNetwork.test4),
|
2024-05-22 19:38:49 +00:00
|
|
|
Dogecoin(CryptoCurrencyNetwork.test),
|
2024-06-19 15:15:49 +00:00
|
|
|
Firo(CryptoCurrencyNetwork.test),
|
|
|
|
Litecoin(CryptoCurrencyNetwork.test),
|
2024-05-22 19:38:49 +00:00
|
|
|
Peercoin(CryptoCurrencyNetwork.test),
|
2024-06-19 15:15:49 +00:00
|
|
|
Stellar(CryptoCurrencyNetwork.test),
|
2024-05-22 19:38:49 +00:00
|
|
|
]);
|
|
|
|
|
|
|
|
EOF
|