Add generation of of pubspec to app_config.sh
M committed
Jan 11, 2022 at 11:35 UTC
0d39db1bdc15a398753e9bb06db442ad3dde625f
3 files changed
+4
-1
scripts/android/app_config.sh
+1
@@ -22,4 +22,5 @@ esac
22
23
cd ../..
24
flutter pub get
25
+flutter pub run tool/generate_pubspec.dart
26
flutter packages pub run tool/configure.dart $CONFIG_ARGS
scripts/ios/app_config.sh
+2
@@ -25,6 +25,8 @@ case $APP_IOS_TYPE in
25
;;
26
esac
27
28
+flutter pub get
29
+flutter pub run tool/generate_pubspec.dart
30
flutter packages pub run tool/configure.dart $CONFIG_ARGS
31
cd $DIR
32
$DIR/app_icon.sh
tool/configure.dart
+1
-1
@@ -279,7 +279,7 @@ Future<void> generatePubspec({bool hasMonero, bool hasBitcoin}) async {
279
cw_bitcoin:
280
path: ./cw_bitcoin
281
""";
282
- final inputFile = File(pubspecDefaultPath);
282
+ final inputFile = File(pubspecOutputPath);
283
final inputText = await inputFile.readAsString();
284
final inputLines = inputText.split('\n');
285
final dependenciesIndex = inputLines.indexWhere((line) => line.toLowerCase() == 'dependencies:');