[Android] Webserver: add dev build variant

Duncan McNamara git at videolan.org
Thu Dec 21 09:30:57 UTC 2023


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Wed Dec 20 17:34:34 2023 +0100| [06e24ffaf7d45b586aa857caee8c56efeccbe629] | committer: Duncan McNamara

Webserver: add dev build variant

This is to avoid falling back to debug when building with compile.sh.
It would build all the java, then when build all modules the webserver
will not have a dev variante, causing vlc-android to fallback to the
debug variant.

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

 application/webserver/build.gradle | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/application/webserver/build.gradle b/application/webserver/build.gradle
index 898aa0af3e..dc0e6305c5 100644
--- a/application/webserver/build.gradle
+++ b/application/webserver/build.gradle
@@ -27,6 +27,10 @@ android {
             minifyEnabled false
             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
         }
+        dev {
+            initWith debug
+            matchingFallbacks = ['debug']
+        }
     }
 
     task webCopy(type: Copy) {



More information about the Android mailing list