Change certificat configuration for debug
This commit is contained in:
parent
d09b16ee33
commit
de0fc464a4
5 changed files with 34 additions and 29 deletions
|
|
@ -387,7 +387,7 @@ private fun AuthenticationScreenContentPreview() {
|
|||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.padding(all = 16.dp),
|
||||
version = VersionViewModel.Version(R.string.app_name, "0.0.0", "0"),
|
||||
version = VersionViewModel.Version(R.string.app_name, "0.0.0", "0", true),
|
||||
onGoogleSignIn = { },
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,8 @@ class VersionViewModel @Inject constructor() : ViewModel() {
|
|||
val version = Version(
|
||||
appName = R.string.app_name,
|
||||
version = BuildConfig.VERSION_NAME,
|
||||
code = BuildConfig.VERSION_CODE.toString()
|
||||
code = BuildConfig.VERSION_CODE.toString(),
|
||||
debug = BuildConfig.DEBUG,
|
||||
)
|
||||
|
||||
@Stable
|
||||
|
|
@ -24,11 +25,12 @@ class VersionViewModel @Inject constructor() : ViewModel() {
|
|||
@StringRes val appName: Int,
|
||||
val version: String,
|
||||
val code: String,
|
||||
val debug: Boolean,
|
||||
) {
|
||||
@Composable
|
||||
@Stable
|
||||
fun toText(): String {
|
||||
return "${stringResource(id = appName)} ${version}.${code}"
|
||||
return "${stringResource(id = appName)}${if (debug) "-dev" else ""} ${version}.${code}"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue