From d65f3006da141cedb0213a2ccfc834b67b630f85 Mon Sep 17 00:00:00 2001 From: dreautall <109872040+dreautall@users.noreply.github.com> Date: Sun, 27 Oct 2024 06:46:16 +0000 Subject: [PATCH] disable x84_64 builds due to issues in Google Play --- .github/workflows/release.yml | 9 --------- android/app/build.gradle | 11 ++++++++++- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a55998c8..99c99e96 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -69,10 +69,6 @@ jobs: with: name: app-armeabi-v7a-release.apk path: build/app/outputs/apk/release/app-armeabi-v7a-release.apk - - uses: actions/upload-artifact@v4 - with: - name: app-x86_64-release.apk - path: build/app/outputs/flutter-apk/app-x86_64-release.apk - uses: actions/upload-artifact@v4 with: @@ -101,17 +97,12 @@ jobs: with: name: app-armeabi-v7a-release.apk path: ./artifacts - - uses: actions/download-artifact@v4 - with: - name: app-x86_64-release.apk - path: ./artifacts - uses: softprops/action-gh-release@v2 with: files: | ./artifacts/app-arm64-v8a-release.apk ./artifacts/app-armeabi-v7a-release.apk - ./artifacts/app-x86_64-release.apk deploy: runs-on: ubuntu-latest diff --git a/android/app/build.gradle b/android/app/build.gradle index 4c4404ec..99b62a26 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -90,6 +90,15 @@ android { // Disables dependency metadata when building Android App Bundles. includeInBundle = false } + + splits { + abi { + enable true + + reset() + include 'armeabi-v7a', 'arm64-v8a' + } + } } flutter { @@ -106,7 +115,7 @@ dependencies { implementation 'androidx.window:window-java:1.1.0-rc01' // Added: flutter_local_notifications } -ext.abiCodes = ["x86_64": 1, "armeabi-v7a": 2, "arm64-v8a": 3] +ext.abiCodes = ["armeabi-v7a": 2, "arm64-v8a": 3] import com.android.build.OutputFile android.applicationVariants.all { variant -> variant.outputs.each { output ->