[Android] gradle: compute the medialibraryVersion programmatically

Steve Lhomme git at videolan.org
Thu Jul 10 13:26:59 UTC 2025


vlc-android | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jul  3 15:27:53 2025 +0200| [bef68aeb2176c705ee0da62000168d9a126e41e7] | committer: Duncan McNamara

gradle: compute the medialibraryVersion programmatically

The 0.13.13 should probably be taken from the medialibrary sources,
the '-rc17' being the version of the android library port.

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

 build.gradle | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build.gradle b/build.gradle
index d947497ea3..25629cb9ee 100644
--- a/build.gradle
+++ b/build.gradle
@@ -48,7 +48,7 @@ ext {
     vlcMajorVersion = project.hasProperty('forceVlc4') && project.getProperty('forceVlc4') ? 4 : 3
     remoteAccessVersion = '0.6.0'
     libvlcVersion = vlcMajorVersion == 3 ? '3.6.2' :'4.0.0-eap20'
-    medialibraryVersion = vlcMajorVersion == 3 ? '0.13.13-rc17' : '0.13.13-vlc4-rc17'
+    medialibraryVersion = '0.13.13' + (vlcMajorVersion == 3 ? '' : '-vlc4') + '-rc17'
     minSdkVersion = vlcMajorVersion == 3 ? 17 : 21
     buildToolsVersion = vlcMajorVersion == 3 ? '35.0.0' : '35.0.0'
     targetSdkVersion = 34



More information about the Android mailing list