File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8686
8787 - name : package release
8888 run : |
89- mv build/app/outputs/flutter- apk/app-universal-release.apk app-universal-release.apk
90- mv build/app/outputs/flutter- apk/app-arm64-v8a-release.apk app-arm64-v8a-release.apk
91- mv build/app/outputs/flutter- apk/app-armeabi-v7a-release.apk app-armeabi-v7a-release.apk
89+ mv build/app/outputs/apk/release /app-universal-release.apk app-universal-release.apk
90+ mv build/app/outputs/apk/release /app-arm64-v8a-release.apk app-arm64-v8a-release.apk
91+ mv build/app/outputs/apk/release /app-armeabi-v7a-release.apk app-armeabi-v7a-release.apk
9292 mv build/app/outputs/bundle/release/app-release.aab app-release.aab
9393
9494 - name : upload Universal APK to artifacts
Original file line number Diff line number Diff line change @@ -58,9 +58,16 @@ android {
5858 }
5959 }
6060
61+ // Splits and AAB builds are mutually exclusive in AGP 8 (the bundle
62+ // task chokes on per-ABI shrunk-resources outputs). Enable splits
63+ // only when the gradle invocation is building APKs, not bundles.
64+ // See https://issuetracker.google.com/402800800
65+ val buildingBundle = gradle.startParameter.taskNames.any {
66+ it.contains(" bundle" , ignoreCase = true )
67+ }
6168 splits {
6269 abi {
63- isEnable = true
70+ isEnable = ! buildingBundle
6471 reset()
6572 include(" arm64-v8a" , " armeabi-v7a" )
6673 isUniversalApk = true
You can’t perform that action at this time.
0 commit comments