From 0d39db1bdc15a398753e9bb06db442ad3dde625f Mon Sep 17 00:00:00 2001 From: M Date: Tue, 11 Jan 2022 11:35:08 +0200 Subject: [PATCH] Add generation of of pubspec to app_config.sh --- scripts/android/app_config.sh | 1 + scripts/ios/app_config.sh | 2 ++ tool/configure.dart | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/android/app_config.sh b/scripts/android/app_config.sh index 95df30548..004b0dbd2 100755 --- a/scripts/android/app_config.sh +++ b/scripts/android/app_config.sh @@ -22,4 +22,5 @@ esac cd ../.. flutter pub get +flutter pub run tool/generate_pubspec.dart flutter packages pub run tool/configure.dart $CONFIG_ARGS diff --git a/scripts/ios/app_config.sh b/scripts/ios/app_config.sh index 618e749dc..77f9d8966 100755 --- a/scripts/ios/app_config.sh +++ b/scripts/ios/app_config.sh @@ -25,6 +25,8 @@ case $APP_IOS_TYPE in ;; esac +flutter pub get +flutter pub run tool/generate_pubspec.dart flutter packages pub run tool/configure.dart $CONFIG_ARGS cd $DIR $DIR/app_icon.sh diff --git a/tool/configure.dart b/tool/configure.dart index c4f7c308f..65a2dfac0 100644 --- a/tool/configure.dart +++ b/tool/configure.dart @@ -279,7 +279,7 @@ Future generatePubspec({bool hasMonero, bool hasBitcoin}) async { cw_bitcoin: path: ./cw_bitcoin """; - final inputFile = File(pubspecDefaultPath); + final inputFile = File(pubspecOutputPath); final inputText = await inputFile.readAsString(); final inputLines = inputText.split('\n'); final dependenciesIndex = inputLines.indexWhere((line) => line.toLowerCase() == 'dependencies:');