mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-05-19 05:55:04 -04:00
Don't get version name from git tag
as full and basic are out of sync and this would give full the version name of basic
This commit is contained in:
@@ -12,16 +12,6 @@ if (project.hasProperty('strict.release')) {
|
||||
apply from: '../config/pmd/pmd.gradle'
|
||||
}
|
||||
|
||||
/* gets the version name from the latest Git tag */
|
||||
def getVersionName = { ->
|
||||
def stdout = new ByteArrayOutputStream()
|
||||
exec {
|
||||
commandLine 'git', 'describe', '--tags', '--always'
|
||||
standardOutput = stdout
|
||||
}
|
||||
return stdout.toString().trim()
|
||||
}
|
||||
|
||||
// yes, this actually needs both quotes https://stackoverflow.com/a/41391841
|
||||
def privilegedExtensionApplicationId = '"org.fdroid.fdroid.privileged"'
|
||||
|
||||
@@ -33,7 +23,7 @@ android {
|
||||
|
||||
defaultConfig {
|
||||
versionCode 1023051
|
||||
versionName getVersionName()
|
||||
versionName "1.23.1"
|
||||
applicationId "org.fdroid"
|
||||
|
||||
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
||||
|
||||
Reference in New Issue
Block a user