Use f-droid's gradle

Drop wrapper usage
This commit is contained in:
Miguel Horta
2022-05-11 16:51:00 +01:00
committed by pelya
parent 8473363012
commit 0baa3f3eee

View File

@@ -122,7 +122,11 @@ ${ANDROID_NDK_HOME}/ndk-build -C project -j$NCPU V=1 NDK_APP_STRIP_MODE=none
./copyAssets.sh
pushd project
if $build_release ; then
./gradlew assembleRelease
if [ -x ./gradlew ]; then
./gradlew assembleRelease
else
gradle assembleRelease
fi
if [ -x jni/application/src/AndroidPostBuild.sh ]; then
pushd jni/application/src
./AndroidPostBuild.sh ${THIS_BUILD_DIR}/project/app/build/outputs/apk/release/app-release-unsigned.apk
@@ -135,7 +139,11 @@ if $build_release ; then
apksigner sign --ks ~/.android/debug.keystore --ks-key-alias androiddebugkey --ks-pass pass:android app/build/outputs/apk/release/app-release.apk
fi
else
./gradlew assembleDebug
if [ -x ./gradlew ]; then
./gradlew assembleDebug
else
gradle assembleDebug
fi
if [ -x jni/application/src/AndroidPostBuild.sh ]; then
pushd jni/application/src
./AndroidPostBuild.sh ${THIS_BUILD_DIR}/project/app/build/outputs/apk/debug/app-debug.apk