Add `-dev` suffix to app version
This commit is contained in:
parent
3f721058e0
commit
efd507e9f6
|
@ -24,7 +24,8 @@ import ch.protonmail.android.BuildConfig
|
|||
object ProtonHeaders {
|
||||
val appVersion: String
|
||||
get() {
|
||||
val name = "android-mail@" + BuildConfig.VERSION_NAME + "." + BuildConfig.VERSION_CODE
|
||||
val devSuffix = if (BuildConfig.DEBUG) "-dev" else ""
|
||||
val name = "android-mail@" + BuildConfig.VERSION_NAME + "." + BuildConfig.VERSION_CODE + devSuffix
|
||||
return if (name[name.length - 1] == '.') {
|
||||
name.substring(0, name.length - 1)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue