Skip to content

Commit

Permalink
Added tool for cleaning building files
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasfj committed Jul 5, 2020
1 parent 72edb41 commit 40c6e81
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tool/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
ROOT="$DIR/.."

# Remove all the generated files
# Not removing .cxx/ and .gradle/ can cause problems when jumping between
# flutter versions.

cd "$ROOT"
flutter clean

cd "$ROOT/example/"
flutter clean

cd "$ROOT"
rm -rf android/.cxx/
rm -rf example/android/.gradle/
rm -f example/.packages

0 comments on commit 40c6e81

Please sign in to comment.