From fcbcd9d1010436cb54cb8580d481bba9cb00053a Mon Sep 17 00:00:00 2001 From: Totto16 Date: Tue, 2 Jan 2024 02:22:57 +0100 Subject: [PATCH] build apk instead of aab (app bundle) --- .github/workflows/android.yml | 4 ++-- platforms/android/app/build.gradle | 2 +- platforms/build-android.sh | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index a95a3f71..89e41588 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -51,10 +51,10 @@ jobs: - name: Build APK run: | cd platforms/android/ - ./gradlew bundleDebug --no-daemon + ./gradlew assembleDebug --no-daemon - name: Upload artifacts uses: actions/upload-artifact@v3 with: name: oopetris.aab - path: platforms/android/app/build/outputs/bundle/debug/app-debug.aab + path: platforms/android/app/build/outputs/apk/debug/app-debug.apk diff --git a/platforms/android/app/build.gradle b/platforms/android/app/build.gradle index ced75ec7..80f5f4c4 100644 --- a/platforms/android/app/build.gradle +++ b/platforms/android/app/build.gradle @@ -7,7 +7,7 @@ if (buildAsApplication) { } android { - compileSdkVersion 34 + compileSdk 34 ndkVersion "26.1.10909125" defaultConfig { if (buildAsApplication) { diff --git a/platforms/build-android.sh b/platforms/build-android.sh index b58b7ec7..63352336 100755 --- a/platforms/build-android.sh +++ b/platforms/build-android.sh @@ -259,3 +259,6 @@ for IDX in "${!DESC_ARRAY[@]}"; do cp -r "./assets/icon/icon_$RES.png" "${DESC_DIR}/ic_launcher.png" done + + +# TODO: build seperate apks for all 4 architectures!