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:
vesp 2026-02-16 10:55:29 +01:00
parent 974c529830
commit cbe363066c
2 changed files with 2 additions and 1 deletions

View File

@ -60,6 +60,7 @@ android {
} }
buildFeatures { buildFeatures {
compose = true compose = true
buildConfig = true
} }
packaging { packaging {
resources { resources {

View File

@ -206,7 +206,7 @@ fun SettingsScreen(
) )
Spacer(modifier = Modifier.height(4.dp)) Spacer(modifier = Modifier.height(4.dp))
Text( Text(
text = "Version 1.0", text = "Version ${cz.bugsy.karemote.BuildConfig.VERSION_NAME}",
style = MaterialTheme.typography.bodySmall, style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.onSurfaceVariant color = MaterialTheme.colorScheme.onSurfaceVariant
) )