Skip to content

Commit

Permalink
feat: ✨ add application version in settings
Browse files Browse the repository at this point in the history
This commit adds the application version in the settings, to inform the user about the currently
running version.

closes: https://github.com/users/bk20dev/projects/1?pane=issue&itemId=68275373
  • Loading branch information
DontBlameMe committed Jul 7, 2024
1 parent 4da26b5 commit 4ef4866
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,7 @@
<string name="github" translatable="false">GitHub</string>
<string name="github_summary">Check out our GitHub repository and help us improve the app</string>
<string name="github_repository_url" translatable="false">https://github.com/bk20dev/forest</string>
<string name="version">Version: v1.0.0</string>
<string name="version_summary">The current version of the app</string>
<string name="github_releases_url" translatable="false">https://github.com/bk20dev/forest/releases</string>
</resources>
10 changes: 10 additions & 0 deletions app/src/main/res/xml/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@

</Preference>

<Preference
android:summary="@string/version_summary"
android:title="@string/version">

<intent
android:action="android.intent.action.VIEW"
android:data="@string/github_releases_url" />

</Preference>

</PreferenceCategory>

</PreferenceScreen>

0 comments on commit 4ef4866

Please sign in to comment.