From bef2403c00143e57a5eef01c75c3af29423a214c Mon Sep 17 00:00:00 2001 From: dreautall <109872040+dreautall@users.noreply.github.com> Date: Sun, 27 Oct 2024 10:52:53 +0000 Subject: [PATCH] fix for build --- .github/workflows/release.yml | 4 ++-- android/app/build.gradle | 11 +---------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 99c99e96..56f47c09 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,11 +49,11 @@ jobs: sed -i 's/^\(version: [0-9\.]\{1,\}\(-[a-z]\{1,\}\)\{0,1\}\)$/\1+${{ github.run_number }}/m' pubspec.yaml # Build apk. - - run: flutter build apk --obfuscate --split-debug-info=build/app/outputs/symbols/apk --release --split-per-abi --dart-define=cronetHttpNoPlay=true + - run: flutter build apk --target-platform=android-arm,android-arm64 --obfuscate --split-debug-info=build/app/outputs/symbols/apk --release --split-per-abi --dart-define=cronetHttpNoPlay=true # Build aab # Since the aab is only distributed to the play store and never uploaded somewhere else, we can use the Google Play Services cronet here. - - run: flutter build appbundle --obfuscate --split-debug-info=build/app/outputs/symbols/aab --release + - run: flutter build appbundle --target-platform=android-arm,android-arm64 --obfuscate --split-debug-info=build/app/outputs/symbols/aab --release # Zip symbols - uses: montudor/action-zip@v1 diff --git a/android/app/build.gradle b/android/app/build.gradle index 99b62a26..4c4404ec 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -90,15 +90,6 @@ android { // Disables dependency metadata when building Android App Bundles. includeInBundle = false } - - splits { - abi { - enable true - - reset() - include 'armeabi-v7a', 'arm64-v8a' - } - } } flutter { @@ -115,7 +106,7 @@ dependencies { implementation 'androidx.window:window-java:1.1.0-rc01' // Added: flutter_local_notifications } -ext.abiCodes = ["armeabi-v7a": 2, "arm64-v8a": 3] +ext.abiCodes = ["x86_64": 1, "armeabi-v7a": 2, "arm64-v8a": 3] import com.android.build.OutputFile android.applicationVariants.all { variant -> variant.outputs.each { output ->