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:');