Shell script is used to deep clean a Flutter project
Another alternative to Melos or Puby
- Scan all Flutter projects in your directory
- Run
flutter clean
in all projects - Remove all native-related files and folders
- ios/Pods
- ios/Podfile.lock
- ios/.symlinks
- android/.gradle
- android/build
- pubspec.lock
- build
- macos/Pods
- macos/Podfile.lock
- macos/.symlinks
- Place scripts in your root project directory
- Run the command
sh flutter_clean.sh
to deep clean current Flutter project, include all nested projects - Run the command
sh flutter_clean.sh false
to clean current Flutter project only
- Run the command
sh flutter_get.sh
to get all Flutter projects - Run the command
sh flutter_get.sh true
to get all Flutter project and runpod install
after getting
- Run the command
sh flutter_reset.sh
to clean and then get all Flutter projects in your current directory