#!/bin/bash
rm *.apk
./gradlew clean 

./gradlew lintAppRelease assembleAppMatrixorg
./gradlew lintAppfdroidRelease assembleAppfdroidMatrixorg

#cp app/build/outputs/apk/app-alpha-matrixorg.apk ./alpha.apk
cp vector/build/outputs/apk/app/matrixorg/vector-app-matrixorg.apk ./riotGooglePlay.apk
cp vector/build/outputs/apk/appfdroid/matrixorg/vector-appfdroid-matrixorg.apk ./riotFDroid.apk
#!/bin/bash

# Clean all existing APK
rm *.apk

# Clean
./gradlew clean

# Run Lint and build the APK for the PlayStore
./gradlew lintAppMatrixorg assembleAppMatrixorg --stacktrace

# Run Lint and build the APK for FDroid
./gradlew lintAppfdroidMatrixorg assembleAppfdroidMatrixorg --stacktrace

# Copy (and rename) the built APKs to the root folder
cp vector/build/outputs/apk/app/matrixorg/vector-app-matrixorg.apk ./riotGooglePlay.apk
cp vector/build/outputs/apk/appfdroid/matrixorg/vector-appfdroid-matrixorg.apk ./riotFDroid.apk
Improve build script (also double build on Jenkins has been removed. Jenkins only call this script)
Improve build script (also double build on Jenkins has been removed. Jenkins only call this script)
