cake_wallet/scripts/android/pubspec_gen.sh

26 lines
563 B
Bash
Raw Normal View History

2022-01-11 18:20:44 +00:00
#!/bin/bash
MONERO_COM=monero.com
CAKEWALLET=cakewallet
2022-02-24 11:23:23 +00:00
HAVEN=haven
2022-01-11 18:20:44 +00:00
CONFIG_ARGS=""
case $APP_ANDROID_TYPE in
$MONERO_COM)
CONFIG_ARGS="--monero"
;;
$CAKEWALLET)
CONFIG_ARGS="--monero --bitcoin"
;;
2022-02-24 11:23:23 +00:00
$HAVEN)
2022-02-23 13:31:59 +00:00
CONFIG_ARGS="--haven"
;;
2022-01-11 18:20:44 +00:00
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