Merge pull request #220 from cake-tech/pubspec-fixes

Add generation of of pubspec to app_config.sh
This commit is contained in:
mkyq 2022-01-11 11:36:26 +02:00 committed by GitHub
commit 47c3b37fc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -279,7 +279,7 @@ Future<void> 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:');