Skip to content

Commit c855069

Browse files
committed
Make it possible control the version code and name
1 parent cdac50b commit c855069

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

app/build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,15 @@ android {
2020
resValue "string", "app_name", "NewPipe"
2121
minSdk 21
2222
targetSdk 33
23-
versionCode 999
23+
if (System.properties.containsKey('versionCodeOverride')) {
24+
versionCode System.getProperty('versionCodeOverride') as Integer
25+
} else {
26+
versionCode 999
27+
}
2428
versionName "0.27.2"
29+
if (System.properties.containsKey('versionNameSuffix')) {
30+
versionNameSuffix System.getProperty('versionNameSuffix')
31+
}
2532

2633
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2734

0 commit comments

Comments
 (0)