mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 12:03:09 -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", "\"\""
|
buildConfigField "String", "ENFORCED_LANG", "\"\""
|
||||||
resValue "string", "app_name", "Kiwix"
|
resValue "string", "app_name", "Kiwix"
|
||||||
resValue "string", "app_search_string", "Search Kiwix"
|
resValue "string", "app_search_string", "Search Kiwix"
|
||||||
versionCode 54
|
if (project.hasProperty('version_code')) {
|
||||||
versionName "2.3"
|
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
|
// Custom apps built from a json file, zim file and icon set
|
||||||
map.each { name, directory ->
|
map.each { name, directory ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user