-
-
Save cofirazak/b1a177b752fed98c0be97e3e112f77a4 to your computer and use it in GitHub Desktop.
Ultimate Flutter cleaning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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