Rich text editor for Flutter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
707 B

#!/bin/bash
# Important: make sure to run the script in the root folder of the repo:
# ./scripts/renegerate-translations.sh
# otherwise the script could delete the wrong folder
echo ""
echo "Run flutter pub get.."
flutter pub get
echo ""
echo "Remove the folder: lib/src/gen/flutter_gen"
rm -rf lib/src/gen/flutter_gen
echo ""
echo "Copy the folder: ./.dart_tool/flutter_gen to lib/src/gen/"
cp -r ./.dart_tool/flutter_gen lib/src/gen/
echo ""
echo "Delete unnecessary file: lib/src/gen/flutter_gen/pubspec.yaml"
rm lib/src/gen/flutter_gen/pubspec.yaml
echo ""
echo "Apply dart fixes to the newly generated files"
dart fix --apply
echo ""
echo "Formate the newly generated dart files"
dart format .