Display VersionCode of the app in the settings, because Android system does not display it anymore

This commit is contained in:
Benoit Marty 2019-08-07 11:44:51 +02:00
parent 23466fb5a4
commit ee2e575211

View File

@ -19,7 +19,7 @@ package im.vector.riotx.features.version
import im.vector.riotx.BuildConfig import im.vector.riotx.BuildConfig
fun getVersion(longFormat: Boolean, useBuildNumber: Boolean): String { fun getVersion(longFormat: Boolean, useBuildNumber: Boolean): String {
var result = BuildConfig.VERSION_NAME var result = "${BuildConfig.VERSION_NAME} [${BuildConfig.VERSION_CODE}]"
var flavor = BuildConfig.SHORT_FLAVOR_DESCRIPTION var flavor = BuildConfig.SHORT_FLAVOR_DESCRIPTION