🚀 Contributors in About
* Added "Contributors" option in About, which navigates to github's contributors page
This commit is contained in:
parent
092ae331aa
commit
3c2b23db08
4 changed files with 28 additions and 14 deletions
|
|
@ -73,10 +73,12 @@ object Constants {
|
|||
val SECONDARY_SCROLLBAR @Composable get() = provideSecondaryScrollbar()
|
||||
|
||||
// Links
|
||||
val DOWNLOAD_LATEST_RELEASE_PAGE = provideDownloadLatestReleasePage()
|
||||
val RELEASES_PAGE = provideReleasesPage()
|
||||
val ISSUES_PAGE = provideIssuesPage()
|
||||
val TRANSLATION_PAGE = provideTranslationPage()
|
||||
const val DOWNLOAD_LATEST_RELEASE_PAGE =
|
||||
"https://www.github.com/Acclorite/book-story/releases/latest/download/book-story.apk"
|
||||
const val RELEASES_PAGE = "https://www.github.com/Acclorite/book-story/releases/latest"
|
||||
const val ISSUES_PAGE = "https://www.github.com/Acclorite/book-story/issues"
|
||||
const val CONTRIBUTORS_PAGE = "https://github.com/Acclorite/book-story/graphs/contributors"
|
||||
const val TRANSLATION_PAGE = "https://hosted.weblate.org/projects/book-story"
|
||||
}
|
||||
|
||||
private fun provideSupportedExtensions() = listOf(
|
||||
|
|
@ -615,13 +617,4 @@ private fun provideSecondaryScrollbar() = ScrollbarSettings(
|
|||
thumbShape = RectangleShape,
|
||||
hideDisplacement = 0.dp,
|
||||
scrollbarPadding = 0.dp
|
||||
)
|
||||
|
||||
private fun provideDownloadLatestReleasePage() =
|
||||
"https://www.github.com/Acclorite/book-story/releases/latest/download/book-story.apk"
|
||||
|
||||
private fun provideReleasesPage() = "https://www.github.com/Acclorite/book-story/releases/latest"
|
||||
|
||||
private fun provideIssuesPage() = "https://www.github.com/Acclorite/book-story/issues"
|
||||
|
||||
private fun provideTranslationPage() = "https://hosted.weblate.org/projects/book-story"
|
||||
)
|
||||
|
|
@ -170,6 +170,25 @@ private fun AboutScreen() {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
item {
|
||||
AboutItem(
|
||||
title = stringResource(id = R.string.contributors_option),
|
||||
description = null
|
||||
) {
|
||||
onEvent(
|
||||
AboutEvent.OnNavigateToBrowserPage(
|
||||
Constants.CONTRIBUTORS_PAGE,
|
||||
context,
|
||||
noAppsFound = {
|
||||
context.getString(R.string.error_no_browser)
|
||||
.showToast(context = context, longToast = false)
|
||||
}
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
item {
|
||||
AboutItem(
|
||||
title = stringResource(id = R.string.whats_new_option),
|
||||
|
|
|
|||
|
|
@ -395,6 +395,7 @@
|
|||
<string name="licenses_option">Ліцензії з відкритим кодом</string>
|
||||
<string name="credits_option">Заслуги</string>
|
||||
<string name="help_translate_option">Допомогти перекласти</string>
|
||||
<string name="contributors_option">Контриб\'ютори</string>
|
||||
<string name="slava_ukraini">Слава Україні!</string>
|
||||
|
||||
<!-- Credits -->
|
||||
|
|
|
|||
|
|
@ -396,6 +396,7 @@
|
|||
<string name="licenses_option">Open source licenses</string>
|
||||
<string name="credits_option">Credits</string>
|
||||
<string name="help_translate_option">Help translate</string>
|
||||
<string name="contributors_option">Contributors</string>
|
||||
<string name="slava_ukraini">Slava Ukraini!</string>
|
||||
|
||||
<!-- Credits -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue