[Android] buildsystem: set the variant abiName to all by default

Steve Lhomme git at videolan.org
Mon Jun 16 13:47:41 UTC 2025


vlc-android | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jun 12 10:42:16 2025 +0200| [284e78aa14cb1e200b328f015884c6be1368f16b] | committer: Duncan McNamara

buildsystem: set the variant abiName to all by default

GRADLE_ABI is never set when building the APK from the build script or in AndroidStudio.
outputAbi is always null for me, but maybe it works in other systems.

> https://code.videolan.org/videolan/vlc-android/commit/284e78aa14cb1e200b328f015884c6be1368f16b
---

 application/app/build.gradle | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/application/app/build.gradle b/application/app/build.gradle
index 12d2fb90ca..108d3d2d94 100644
--- a/application/app/build.gradle
+++ b/application/app/build.gradle
@@ -150,8 +150,7 @@ android {
         //Custom APK name and versionCode
         variant.outputs.each { output ->
             def outputAbi = output.getFilter(com.android.build.OutputFile.ABI)
-            def abiName = System.getenv('GRADLE_ABI')?.toLowerCase() ?: "all"
-            if (outputAbi != null) abiName = outputAbi
+            def abiName = outputAbi ?: "all"
             def versionCode = abiCodes.get(abiName, 0)
             if (variant.buildType.name == "vlcBundle") {
                 versionCode = 9



More information about the Android mailing list