[Android] Add VLC core revision in About section

Geoffrey Métais git at videolan.org
Fri Apr 8 10:05:48 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Apr  8 10:04:57 2016 +0200| [ef08588524d7511b11d4a2328fadbb515ecfcb4c] | committer: Geoffrey Métais

Add VLC core revision in About section

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

 vlc-android/build.gradle | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/vlc-android/build.gradle b/vlc-android/build.gradle
index 01aeea2..068d4f5 100644
--- a/vlc-android/build.gradle
+++ b/vlc-android/build.gradle
@@ -224,9 +224,15 @@ def hostName() {
 
 def revision() {
     def code = new ByteArrayOutputStream()
+    def vlc = new ByteArrayOutputStream()
     exec {
         commandLine 'git', 'rev-parse', '--short', 'HEAD'
         standardOutput = code
     }
-    return code.toString()
+    exec {
+        commandLine 'git', 'rev-parse', '--short', 'HEAD'
+        workingDir '../vlc'
+        standardOutput = vlc
+    }
+    return code.toString()+"VLC: "+vlc.toString()
 }



More information about the Android mailing list