Use BuildConfig for version display in About section
Replace hardcoded version string with BuildConfig.VERSION_NAME so the About screen always reflects the version from build.gradle.kts.
This commit is contained in:
parent
974c529830
commit
cbe363066c
@ -60,6 +60,7 @@ android {
|
||||
}
|
||||
buildFeatures {
|
||||
compose = true
|
||||
buildConfig = true
|
||||
}
|
||||
packaging {
|
||||
resources {
|
||||
|
||||
@ -206,7 +206,7 @@ fun SettingsScreen(
|
||||
)
|
||||
Spacer(modifier = Modifier.height(4.dp))
|
||||
Text(
|
||||
text = "Version 1.0",
|
||||
text = "Version ${cz.bugsy.karemote.BuildConfig.VERSION_NAME}",
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user