OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 set -e | 3 set -e |
4 export ANDROID_HOME="/home/vagrant/android-sdk-linux" | 4 export ANDROID_HOME="/home/vagrant/android-sdk-linux" |
5 | 5 |
6 mkdir -p build && cd build | 6 rm -rf ./build/src |
| 7 mkdir -p ./build/src && cd ./build/src |
7 | 8 |
8 # BEG: WIP and temporary sync step | 9 # BEG: WIP and temporary sync step |
| 10 echo "Copying project files..." |
9 cp -rf /vagrant/. . | 11 cp -rf /vagrant/. . |
10 rm -fv `find . -name local.properties` | 12 rm -fv `find . -name local.properties` |
11 # END: WIP and temporary sync step | 13 # END: WIP and temporary sync step |
12 | 14 |
13 ./ensure_dependencies.py | 15 ./ensure_dependencies.py |
14 | 16 |
15 cd libadblockplus-android | |
16 | |
17 echo "sdk.dir = /home/vagrant/android-sdk-linux" > local.properties | 17 echo "sdk.dir = /home/vagrant/android-sdk-linux" > local.properties |
18 echo "ndk.dir = /home/vagrant/android-ndk-linux" >> local.properties | 18 echo "ndk.dir = /home/vagrant/android-ndk-linux" >> local.properties |
19 cp local.properties ../libadblockplus-android-tests | |
20 | 19 |
21 mvn clean install | 20 echo "Building..." |
| 21 ./gradlew assemble |
22 | 22 |
| 23 echo "Done" |
OLD | NEW |