Skip to content

Instantly share code, notes, and snippets.

@cofirazak
Forked from g0rdan/terminator.sh
Created March 15, 2024 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cofirazak/b1a177b752fed98c0be97e3e112f77a4 to your computer and use it in GitHub Desktop.
Save cofirazak/b1a177b752fed98c0be97e3e112f77a4 to your computer and use it in GitHub Desktop.
Ultimate Flutter cleaning
#!/bin/bash
echo "flutter clean ..."
flutter clean
echo "Deleting .flutter-plugins ..."
rm -rf .flutter-plugins
echo "Deleting .packages ..."
rm -rf .packages
echo "Deleting .symlinks ..."
rm -rf ios/.symlinks/
echo "Deleting build/ ..."
rm -rf build/
echo "Deleting ios/Pods ..."
rm -rf ios/Pods
echo "Deleting ios/Podfile* ..."
rm ios/Podfile*
echo "Deleting .pub-cache ..."
rm -rf "${HOME}/.pub-cache/"
echo "Deleting pubspec.lock ..."
rm pubspec.lock
echo "Deleting ios/Runner.xcodeproj/project.xcworkspace ..."
rm -rf ios/Runner.xcodeproj/project.xcworkspace
echo "Deleting Library/Caches/CocoaPods ..."
rm -rf "${HOME}/Library/Caches/CocoaPods"
echo "Deleting DerivedData ..."
rm -rf "~/Library/Developer/Xcode/DerivedData"
echo "Running flutter packages get ..."
flutter packages get
echo "Done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment