mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-20 10:23:30 -04:00
Set vanilla version code/name from properties if possible
This commit is contained in:
parent
a4e13b591b
commit
290f62f54e
@ -195,8 +195,17 @@ android {
|
||||
buildConfigField "String", "ENFORCED_LANG", "\"\""
|
||||
resValue "string", "app_name", "Kiwix"
|
||||
resValue "string", "app_search_string", "Search Kiwix"
|
||||
versionCode 54
|
||||
versionName "2.3"
|
||||
if (project.hasProperty('version_code')) {
|
||||
def version_code = project.property('version_code')
|
||||
versionCode version_code.toInteger()
|
||||
} else {
|
||||
versionCode 55
|
||||
}
|
||||
if (project.hasProperty('version_name')) {
|
||||
versionName project.property('version_name')
|
||||
} else {
|
||||
versionName "2.3"
|
||||
}
|
||||
}
|
||||
// Custom apps built from a json file, zim file and icon set
|
||||
map.each { name, directory ->
|
||||
|
Loading…
x
Reference in New Issue
Block a user