[Android] gradle: set the multiDexEnabled 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:44:46 2025 +0200| [35d9e4fa33d01da3d547428f075488193744e638] | committer: Duncan McNamara
gradle: set the multiDexEnabled 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/35d9e4fa33d01da3d547428f075488193744e638
---
application/app/build.gradle | 2 +-
application/donations/build.gradle | 2 +-
application/moviepedia/build.gradle | 2 +-
application/remote-access-server/build.gradle | 2 +-
application/vlc-android/build.gradle | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/application/app/build.gradle b/application/app/build.gradle
index 9865e7f7bd..b17c470e76 100644
--- a/application/app/build.gradle
+++ b/application/app/build.gradle
@@ -38,7 +38,7 @@ android {
versionCode rootProject.ext.versionCode
versionName rootProject.ext.versionName
vectorDrawables.useSupportLibrary = true
- multiDexEnabled true
+ multiDexEnabled = true
testInstrumentationRunner "org.videolan.vlc.MultidexTestRunner"
// The following argument makes the Android Test Orchestrator run its
diff --git a/application/donations/build.gradle b/application/donations/build.gradle
index b248a59dd5..e9da9e6563 100644
--- a/application/donations/build.gradle
+++ b/application/donations/build.gradle
@@ -47,7 +47,7 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
- multiDexEnabled true
+ multiDexEnabled = true
buildConfigField "String", "PUBLIC_API_KEY", "\"${getPublicApiKey(project)}\""
}
diff --git a/application/moviepedia/build.gradle b/application/moviepedia/build.gradle
index d57032dd55..2f97bd253c 100644
--- a/application/moviepedia/build.gradle
+++ b/application/moviepedia/build.gradle
@@ -28,7 +28,7 @@ android {
buildConfigField 'int', 'VLC_VERSION_CODE', "${rootProject.ext.versionCode}"
buildConfigField "String", "MOVIEPEDIA_API_URL", "\"${getMoviepediaUrl(project)}\""
- multiDexEnabled true
+ multiDexEnabled = true
}
buildTypes {
diff --git a/application/remote-access-server/build.gradle b/application/remote-access-server/build.gradle
index 8388ca87c6..02f7519a34 100644
--- a/application/remote-access-server/build.gradle
+++ b/application/remote-access-server/build.gradle
@@ -11,7 +11,7 @@ android {
}
defaultConfig {
- multiDexEnabled true
+ multiDexEnabled = true
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
compileSdk = rootProject.ext.compileSdkVersion
diff --git a/application/vlc-android/build.gradle b/application/vlc-android/build.gradle
index 5c0b9d4cce..32a4f3e534 100644
--- a/application/vlc-android/build.gradle
+++ b/application/vlc-android/build.gradle
@@ -76,7 +76,7 @@ android {
buildConfigField "String", "APP_ID", "\"${rootProject.ext.appId}.debug\""
resValue 'string', 'tv_provider_authority', "${rootProject.ext.appId}.debug.tv"
buildConfigField "boolean", "NO_TV", "false"
- multiDexEnabled true
+ multiDexEnabled = true
}
vlcBundle {
initWith release
More information about the Android
mailing list