From c8550695aa59d9585b54e77c8b70efa175da1349 Mon Sep 17 00:00:00 2001 From: litetex <40789489+litetex@users.noreply.github.com> Date: Sun, 27 Oct 2024 17:49:28 +0100 Subject: [PATCH] Make it possible control the version code and name --- app/build.gradle | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index d0426d5a2..c5786a5e4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -20,8 +20,15 @@ android { resValue "string", "app_name", "NewPipe" minSdk 21 targetSdk 33 - versionCode 999 + if (System.properties.containsKey('versionCodeOverride')) { + versionCode System.getProperty('versionCodeOverride') as Integer + } else { + versionCode 999 + } versionName "0.27.2" + if (System.properties.containsKey('versionNameSuffix')) { + versionNameSuffix System.getProperty('versionNameSuffix') + } testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"