cake_wallet/scripts/android/pubspec_gen.sh
OmarHatem b56e01bbac Merge branch 'main' of https://github.com/cake-tech/cake_wallet into MrCyjaneK-cyjan-monerodart
 Conflicts:
	scripts/android/pubspec_gen.sh
	scripts/ios/app_config.sh
2024-05-15 04:04:19 +03:00

26 lines
No EOL
653 B
Bash
Executable file

#!/bin/bash
MONERO_COM=monero.com
CAKEWALLET=cakewallet
HAVEN=haven
CONFIG_ARGS=""
case $APP_ANDROID_TYPE in
$MONERO_COM)
CONFIG_ARGS="--monero"
;;
$CAKEWALLET)
CONFIG_ARGS="--monero --bitcoin --ethereum --polygon --nano --bitcoinCash --solana --tron" #TODO: fix and add back --haven
;;
$HAVEN)
CONFIG_ARGS="--haven"
;;
esac
cd ../..
cp -rf pubspec_description.yaml pubspec.yaml
flutter pub get
flutter pub run tool/generate_pubspec.dart
flutter pub get
flutter packages pub run tool/configure.dart $CONFIG_ARGS
cd scripts/android