[Android] gradle: fix working directory to get the remote access client revision

Steve Lhomme git at videolan.org
Wed Feb 18 07:37:45 UTC 2026


vlc-android | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Feb 18 08:31:14 2026 +0100| [efb6db566c40420170562838489ba9099fd4fe28] | committer: Steve Lhomme

gradle: fix working directory to get the remote access client revision

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

 application/remote-access-client/build.gradle | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/application/remote-access-client/build.gradle b/application/remote-access-client/build.gradle
index 514f074bcc..b29abcbe0f 100644
--- a/application/remote-access-client/build.gradle
+++ b/application/remote-access-client/build.gradle
@@ -32,9 +32,10 @@ ext {
     library_version = "$rootProject.ext.remoteAccessVersion"
 }
 
-File remoteAccessPackage = file("remoteaccess/package.json")
+def remoteclientSourceDir = "$projectDir/remoteaccess"
+File remoteAccessPackage = file("$remoteclientSourceDir/package.json")
 def remoteAccessRevision = remoteAccessPackage.exists() ? providers.exec {
-    workingDir('remoteaccess')
+    workingDir(remoteclientSourceDir)
     commandLine('git', 'rev-parse', '--short', 'HEAD')
 }.standardOutput.asText.get().trim() : 'unknown'
 



More information about the Android mailing list