[Android] Add the libs versions to the logs

Nicolas Pomepuy git at videolan.org
Tue Nov 2 12:31:14 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Oct 19 07:55:42 2021 +0200| [646d505784302208a69b8561182bb496075d3cd1] | committer: Nicolas Pomepuy

Add the libs versions to the logs

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

 application/vlc-android/build.gradle                            | 2 ++
 application/vlc-android/src/org/videolan/vlc/DebugLogService.kt | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/application/vlc-android/build.gradle b/application/vlc-android/build.gradle
index 5993df699..2fec2ab67 100644
--- a/application/vlc-android/build.gradle
+++ b/application/vlc-android/build.gradle
@@ -23,6 +23,8 @@ android {
         resValue "string", "build_host", hostName()
         resValue "string", "build_revision", revision()
         resValue 'string', 'tv_provider_authority', "\"${rootProject.ext.appId}\".tv"
+        buildConfigField 'String', 'LIBVLC_VERSION', "\"${rootProject.ext.libvlcVersion}\""
+        buildConfigField 'String', 'ML_VERSION', "\"${rootProject.ext.medialibraryVersion}\""
         buildConfigField "String", "APP_ID", "\"${rootProject.ext.appId}\""
         buildConfigField 'int', 'VLC_VERSION_CODE', "${rootProject.ext.versionCode}"
         buildConfigField 'String', 'VLC_VERSION_NAME', "\"${rootProject.ext.versionName}\""
diff --git a/application/vlc-android/src/org/videolan/vlc/DebugLogService.kt b/application/vlc-android/src/org/videolan/vlc/DebugLogService.kt
index 681a268a7..8265f0da7 100644
--- a/application/vlc-android/src/org/videolan/vlc/DebugLogService.kt
+++ b/application/vlc-android/src/org/videolan/vlc/DebugLogService.kt
@@ -182,6 +182,9 @@ class DebugLogService : Service(), Logcat.Callback, Runnable {
                 bw.write("Useful info\r\n")
                 bw.write("____________________________\r\n")
                 bw.write("App version: ${BuildConfig.VLC_VERSION_CODE} / ${BuildConfig.VLC_VERSION_NAME}\r\n")
+                bw.write("libvlc: ${BuildConfig.LIBVLC_VERSION}\r\n")
+                bw.write("medialibrary: ${BuildConfig.ML_VERSION}\r\n")
+                bw.write("____________________________\r\n")
                 try {
                     bw.write("Changed settings:\r\n${PreferenceParser.getChangedPrefsString(this)}\r\n")
                 } catch (e: Exception) {



More information about the Android mailing list