[Android] gradle: set the misc. options with =

Steve Lhomme git at videolan.org
Mon Jul 21 16:26:18 UTC 2025


vlc-android | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jul  3 07:49:05 2025 +0200| [cee8cbadc99d179bd32850e54ec7ee440850512e] | committer: Duncan McNamara

gradle: set the misc. options with =

The old way is marked as deprecated.

> Properties should be assigned using the 'propName = value' syntax. Setting a
> property via the Gradle-generated 'propName value' or 'propName(value)'
> syntax in Groovy DSL has been deprecated.

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

 application/app/build.gradle         | 4 ++--
 application/vlc-android/build.gradle | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/application/app/build.gradle b/application/app/build.gradle
index 7c9d1b2755..619c39b0f3 100644
--- a/application/app/build.gradle
+++ b/application/app/build.gradle
@@ -133,7 +133,7 @@ android {
                 }
                 return false // continue
             }
-            enable isReleaseBuild
+            enable = isReleaseBuild
             reset()
             include "x86", "x86_64", "armeabi-v7a", "arm64-v8a"
 //            universalApk !isReleaseBuild
@@ -142,7 +142,7 @@ android {
 
     def abiCodes = ['armeabi-v7a': 5, 'arm64-v8a': 6, 'x86': 7, 'x86_64': 8]
     lint {
-        abortOnError false
+        abortOnError = false
         disable 'MissingTranslation', 'ExtraTranslation'
     }
     namespace = 'org.videolan.mobile.app'
diff --git a/application/vlc-android/build.gradle b/application/vlc-android/build.gradle
index 32a4f3e534..de32347092 100644
--- a/application/vlc-android/build.gradle
+++ b/application/vlc-android/build.gradle
@@ -49,7 +49,7 @@ android {
 
     testOptions {
         animationsDisabled = true
-        execution 'ANDROIDX_TEST_ORCHESTRATOR'
+        execution = 'ANDROIDX_TEST_ORCHESTRATOR'
         unitTests {
             includeAndroidResources = true
         }



More information about the Android mailing list