Add `-dev` suffix to app version

This commit is contained in:
Zorica Stojchevska 2022-11-07 10:35:56 +01:00 committed by Zorica Stojchevska
parent 3f721058e0
commit efd507e9f6
1 changed files with 2 additions and 1 deletions

View File

@ -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 {