🚀 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()
|
val SECONDARY_SCROLLBAR @Composable get() = provideSecondaryScrollbar()
|
||||||
|
|
||||||
// Links
|
// Links
|
||||||
val DOWNLOAD_LATEST_RELEASE_PAGE = provideDownloadLatestReleasePage()
|
const val DOWNLOAD_LATEST_RELEASE_PAGE =
|
||||||
val RELEASES_PAGE = provideReleasesPage()
|
"https://www.github.com/Acclorite/book-story/releases/latest/download/book-story.apk"
|
||||||
val ISSUES_PAGE = provideIssuesPage()
|
const val RELEASES_PAGE = "https://www.github.com/Acclorite/book-story/releases/latest"
|
||||||
val TRANSLATION_PAGE = provideTranslationPage()
|
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(
|
private fun provideSupportedExtensions() = listOf(
|
||||||
|
|
@ -616,12 +618,3 @@ private fun provideSecondaryScrollbar() = ScrollbarSettings(
|
||||||
hideDisplacement = 0.dp,
|
hideDisplacement = 0.dp,
|
||||||
scrollbarPadding = 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 {
|
item {
|
||||||
AboutItem(
|
AboutItem(
|
||||||
title = stringResource(id = R.string.whats_new_option),
|
title = stringResource(id = R.string.whats_new_option),
|
||||||
|
|
|
||||||
|
|
@ -395,6 +395,7 @@
|
||||||
<string name="licenses_option">Ліцензії з відкритим кодом</string>
|
<string name="licenses_option">Ліцензії з відкритим кодом</string>
|
||||||
<string name="credits_option">Заслуги</string>
|
<string name="credits_option">Заслуги</string>
|
||||||
<string name="help_translate_option">Допомогти перекласти</string>
|
<string name="help_translate_option">Допомогти перекласти</string>
|
||||||
|
<string name="contributors_option">Контриб\'ютори</string>
|
||||||
<string name="slava_ukraini">Слава Україні!</string>
|
<string name="slava_ukraini">Слава Україні!</string>
|
||||||
|
|
||||||
<!-- Credits -->
|
<!-- Credits -->
|
||||||
|
|
|
||||||
|
|
@ -396,6 +396,7 @@
|
||||||
<string name="licenses_option">Open source licenses</string>
|
<string name="licenses_option">Open source licenses</string>
|
||||||
<string name="credits_option">Credits</string>
|
<string name="credits_option">Credits</string>
|
||||||
<string name="help_translate_option">Help translate</string>
|
<string name="help_translate_option">Help translate</string>
|
||||||
|
<string name="contributors_option">Contributors</string>
|
||||||
<string name="slava_ukraini">Slava Ukraini!</string>
|
<string name="slava_ukraini">Slava Ukraini!</string>
|
||||||
|
|
||||||
<!-- Credits -->
|
<!-- Credits -->
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue