feat: show version number at bottom of Settings screen

This commit is contained in:
Davide Ferrari
2025-12-22 14:41:30 +01:00
parent 4c9751b329
commit 5da3fcc4c5
3 changed files with 17 additions and 2 deletions

View File

@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [0.5.1] - 2025-12-22
### Added
- **Version Display**: Show app version at bottom of Settings screen
## [0.5.0] - 2025-12-22 ## [0.5.0] - 2025-12-22
### Added ### Added

View File

@@ -14,8 +14,8 @@ android {
applicationId = "com.matedroid" applicationId = "com.matedroid"
minSdk = 26 minSdk = 26
targetSdk = 35 targetSdk = 35
versionCode = 5 versionCode = 6
versionName = "0.5.0" versionName = "0.5.1"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
} }

View File

@@ -438,6 +438,16 @@ private fun SettingsContent(
Text("Preview Color Palettes (Debug)") Text("Preview Color Palettes (Debug)")
} }
} }
// Version number at bottom
Spacer(modifier = Modifier.height(48.dp))
Text(
text = "v${com.matedroid.BuildConfig.VERSION_NAME}",
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.onSurfaceVariant.copy(alpha = 0.6f),
modifier = Modifier.align(Alignment.CenterHorizontally)
)
Spacer(modifier = Modifier.height(16.dp))
} }
} }