Skip to content

Commit

Permalink
fix for build
Browse files Browse the repository at this point in the history
  • Loading branch information
dreautall committed Oct 27, 2024
1 parent d65f300 commit bef2403
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 1 addition & 10 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 ->
Expand Down

0 comments on commit bef2403

Please sign in to comment.