| 1 | #!/bin/bash |
| 2 | set -x -e |
| 3 | cd "$(dirname "$0")" |
| 4 | |
| 5 | # IMPORTANT: Make sure to update action 'Build Reown` in |
| 6 | # - .github/workflows/pr_test_build_android.yml |
| 7 | # - .github/workflows/pr_test_build_linux.yml |
| 8 | # https://github.com/cake-tech/reown_flutter/releases/download/v0.0.4/reown_flutter-v0.0.4.tar.gz |
| 9 | |
| 10 | HASH=8a6d79ef7a268c493eeba45feef9991eea119bbd |
| 11 | |
| 12 | if [[ ! -d "reown_flutter/.git" ]]; |
| 13 | then |
| 14 | rm -rf reown_flutter |
| 15 | git clone https://github.com/cake-tech/reown_flutter |
| 16 | cd reown_flutter |
| 17 | else |
| 18 | cd reown_flutter |
| 19 | git fetch -a |
| 20 | fi |
| 21 | |
| 22 | git reset --hard |
| 23 | git checkout $HASH |
| 24 | git reset --hard |
| 25 | |
| 26 | ./scripts/generate_all.sh |