Skip to content

Commit

Permalink
Show version number on home screen
Browse files Browse the repository at this point in the history
  • Loading branch information
tenextractor committed Jan 20, 2025
1 parent 793f98a commit 7a4f485
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ android {
}
buildFeatures {
compose = true
buildConfig = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.5.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.tenextractor.redefinablekeyboard.BuildConfig
import com.tenextractor.redefinablekeyboard.R
import com.tenextractor.redefinablekeyboard.feature_config.notoFamily

Expand All @@ -49,6 +50,8 @@ fun HomeScreen(onNavToSelectLayouts: () -> Unit, onNavToSettings: () -> Unit) {
onValueChange = { text = it },
textStyle = TextStyle.Default.copy(fontFamily = notoFamily)
)
Text("version ${BuildConfig.VERSION_NAME}", color = Color.LightGray,
modifier = Modifier.padding(10.dp))
}
}

Expand Down

0 comments on commit 7a4f485

Please sign in to comment.