Skip to content

Commit

Permalink
show launcher version in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
qimiko committed Jan 22, 2024
1 parent 1eab544 commit 442ef83
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
3 changes: 2 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ android {
jvmTarget = '1.8'
}
buildFeatures {
compose true
compose true
buildConfig true
}
composeOptions {
kotlinCompilerExtensionVersion compose_compiler
Expand Down
14 changes: 6 additions & 8 deletions app/src/main/java/com/geode/launcher/SettingsActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -364,14 +364,12 @@ fun SettingsScreen(
UpdateIndicator(snackbarHostState, updateStatus)
}
}
/*
OptionsGroup("Data") {
OptionsButton(
title = "Export save data",
onClick = { onExportSaveData(context) }
)
}
*/

Text(
stringResource(R.string.preference_launcher_version, BuildConfig.VERSION_NAME),
style = Typography.labelSmall,
modifier = Modifier.padding(horizontal = 16.dp, vertical = 4.dp)
)
}
}
)
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@
<string name="preference_release_channel_name">Use nightly release channel</string>

<string name="preference_check_for_updates_button">Check for updates</string>
<string name="preference_check_for_updates_description">Current version: %1$s</string>
<string name="preference_check_for_updates_description">Current loader version: %1$s</string>
<string name="preference_launcher_version">Geode Launcher v%1$s</string>
<string name="preference_check_for_updates_failed">Update failed. See logs for more details.</string>
<string name="preference_check_for_updates_none_found">No updates found.</string>
<string name="preference_check_for_updates_success">Geode has been updated!</string>
Expand Down

0 comments on commit 442ef83

Please sign in to comment.