transfer repo to komikku-app

This commit is contained in:
Cuong M. Tran 2024-02-19 14:52:22 +07:00
parent 3c6696d671
commit 1b54a5dd10
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2
19 changed files with 90 additions and 35 deletions

View file

@ -6,7 +6,7 @@ I acknowledge that:
- To the latest version of the app (stable is v1.10.2)
- All extensions
- I have gone through the FAQ (https://tachiyomi.org/docs/faq/general) and troubleshooting guide (https://tachiyomi.org/docs/guides/troubleshooting/)
- If this is an issue with an official extension, that I should be opening an issue in https://github.com/cuong-tran/komikku-extensions
- If this is an issue with an official extension, that I should be opening an issue in https://github.com/komikku-app/komikku-extensions
- I have searched the existing issues and this is new ticket **NOT** a duplicate or related to another open or closed issue
- I will fill out the title and the information in this template

View file

@ -1,10 +1,10 @@
blank_issues_enabled: false
contact_links:
- name: ⚠️ Extension/source issue
url: https://github.com/cuong-tran/komikku-extensions/issues/new/choose
url: https://github.com/komikku-app/komikku-extensions/issues/new/choose
about: Issues and requests for official extensions and sources should be opened in the extensions repository instead
- name: 📦 Extensions
url: https://cuong-tran.github.io/tachiyomi-extensions/
url: https://komikku-app.github.io/tachiyomi-extensions/
about: List of all available extensions with download links
- name: 🖥️ Tachiyomi website
url: https://tachiyomi.org/

View file

@ -94,11 +94,11 @@ body:
required: true
- label: I have written a short but informative title.
required: true
- label: If this is an issue with an official extension, I should be opening an issue in the [extensions repository](https://github.com/cuong-tran/komikku-extensions/issues/new/choose).
- label: If this is an issue with an official extension, I should be opening an issue in the [extensions repository](https://github.com/komikku-app/komikku-extensions/issues/new/choose).
required: true
- label: I have gone through the [FAQ](https://tachiyomi.org/docs/faq/general) and [troubleshooting guide](https://tachiyomi.org/docs/guides/troubleshooting/).
required: true
- label: I have updated the app to version **[1.10.2](https://github.com/cuong-tran/komikku/releases/latest)**.
- label: I have updated the app to version **[1.10.2](https://github.com/komikku-app/komikku/releases/latest)**.
required: true
- label: I have updated all installed extensions.
required: true

View file

@ -31,9 +31,9 @@ body:
required: true
- label: I have written a short but informative title.
required: true
- label: If this is an issue with an official extension, I should be opening an issue in the [extensions repository](https://github.com/cuong-tran/komikku-extensions/issues/new/choose).
- label: If this is an issue with an official extension, I should be opening an issue in the [extensions repository](https://github.com/komikku-app/komikku-extensions/issues/new/choose).
required: true
- label: I have updated the app to version **[1.10.2](https://github.com/cuong-tran/komikku/releases/latest)**.
- label: I have updated the app to version **[1.10.2](https://github.com/komikku-app/komikku/releases/latest)**.
required: true
- label: I will fill out all of the requested information in this form.
required: true

View file

@ -37,7 +37,7 @@ jobs:
write-mode: overwrite
- name: Build app
if: ${{ ! startsWith(github.ref, 'refs/tags/') && github.repository == 'cuong-tran/komikku' }}
if: ${{ ! startsWith(github.ref, 'refs/tags/') && github.repository == 'komikku-app/komikku' }}
uses: gradle/gradle-command-action@v2
with:
arguments: assembleStandardRelease -x ktlintFormat --stacktrace

View file

@ -33,7 +33,7 @@ jobs:
echo "COMMIT_LOGS<<{delimiter}
$(curl -H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/cuong-tran/komikku/compare/$prev_release_sha...$current_sha" \
"https://api.github.com/repos/komikku-app/komikku/compare/$prev_release_sha...$current_sha" \
| jq '[.commits[]|{message:(.commit.message | split("\n")), username:.author.login}]' \
| jq -r '.[]|"- \(.message | first) (@\(.username))"')
{delimiter}" >> $GITHUB_ENV
@ -84,13 +84,13 @@ jobs:
write-mode: overwrite
- name: Build app
if: ${{ ! startsWith(github.ref, 'refs/tags/') && github.repository == 'cuong-tran/komikku' }}
if: ${{ ! startsWith(github.ref, 'refs/tags/') && github.repository == 'komikku-app/komikku' }}
uses: gradle/gradle-command-action@v2
with:
arguments: assembleStandardRelease -x ktlintFormat --stacktrace
- name: Sign Android Release
if: ${{ ! startsWith(github.ref, 'refs/tags/') && github.repository == 'cuong-tran/komikku' }}
if: ${{ ! startsWith(github.ref, 'refs/tags/') && github.repository == 'komikku-app/komikku' }}
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: app/build/outputs/apk/standard/release
@ -100,7 +100,7 @@ jobs:
keyPassword: ${{ secrets.KEY_PASSWORD }}
- name: Clean up build artifacts
if: ${{ ! startsWith(github.ref, 'refs/tags/') && github.repository == 'cuong-tran/komikku' }}
if: ${{ ! startsWith(github.ref, 'refs/tags/') && github.repository == 'komikku-app/komikku' }}
run: |
set -e
@ -125,7 +125,7 @@ jobs:
echo "APK_X86_64_SHA=$sha" >> $GITHUB_ENV
- name: Create release
if: ${{ ! startsWith(github.ref, 'refs/tags/') && github.repository == 'cuong-tran/komikku' }}
if: ${{ ! startsWith(github.ref, 'refs/tags/') && github.repository == 'komikku-app/komikku' }}
uses: softprops/action-gh-release@v1
with:
tag_name: pre-release-${{ github.run_number }}

View file

@ -33,7 +33,7 @@ jobs:
echo "COMMIT_LOGS<<{delimiter}
$(curl -H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/cuong-tran/komikku/compare/$prev_release_sha...$current_sha" \
"https://api.github.com/repos/komikku-app/komikku/compare/$prev_release_sha...$current_sha" \
| jq '[.commits[]|{message:(.commit.message | split("\n")), username:.author.login}]' \
| jq -r '.[]|"- \(.message | first) (@\(.username))"')
{delimiter}" >> $GITHUB_ENV
@ -75,20 +75,20 @@ jobs:
# SY -->
- name: Build app and run unit tests
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'cuong-tran/komikku'
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'komikku-app/komikku'
uses: gradle/gradle-command-action@v2
with:
arguments: assembleStandardRelease testStandardReleaseUnitTest --stacktrace
# Sign APK and create release for tags
- name: Get tag name
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'cuong-tran/komikku'
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'komikku-app/komikku'
run: |
set -x
echo "VERSION_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- name: Sign APK
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'cuong-tran/komikku'
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'komikku-app/komikku'
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: app/build/outputs/apk/standard/release
@ -98,7 +98,7 @@ jobs:
keyPassword: ${{ secrets.KEY_PASSWORD }}
- name: Clean up build artifacts
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'cuong-tran/komikku'
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'komikku-app/komikku'
run: |
set -e
@ -123,7 +123,7 @@ jobs:
echo "APK_X86_64_SHA=$sha" >> $GITHUB_ENV
- name: Create release
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'cuong-tran/komikku'
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'komikku-app/komikku'
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.VERSION_TAG }}

View file

@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Moderate issues
uses: cuong-tran/issue-moderator-action@v2
uses: komikku-app/issue-moderator-action@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
duplicate-label: Duplicate

View file

@ -1,4 +1,4 @@
Looking to report an issue/bug or make a feature request? Please refer to the [README file](https://github.com/cuong-tran/komikku#issues-feature-requests-and-contributing).
Looking to report an issue/bug or make a feature request? Please refer to the [README file](https://github.com/komikku-app/komikku#issues-feature-requests-and-contributing).
---
@ -9,7 +9,7 @@ Thanks for your interest in contributing to Komikku!
Pull requests are welcome!
If you're interested in taking on [an open issue](https://github.com/cuong-tran/komikku/issues), please comment on it so others are aware.
If you're interested in taking on [an open issue](https://github.com/komikku-app/komikku/issues), please comment on it so others are aware.
You do not need to ask for permission nor an assignment.
## Prerequisites
@ -39,16 +39,16 @@ Translations are done externally via Weblate. See [our website](https://tachiyom
# Forks
Forks are allowed so long as they abide by [the project's LICENSE](https://github.com/cuong-tran/komikku/blob/master/LICENSE).
Forks are allowed so long as they abide by [the project's LICENSE](https://github.com/komikku-app/komikku/blob/master/LICENSE).
When creating a fork, remember to:
- To avoid confusion with the main app:
- Change the app name
- Change the app icon
- Change or disable the [app update checker](https://github.com/cuong-tran/komikku/blob/master/app/src/main/java/eu/kanade/tachiyomi/data/updater/AppUpdateChecker.kt)
- Change or disable the [app update checker](https://github.com/komikku-app/komikku/blob/master/app/src/main/java/eu/kanade/tachiyomi/data/updater/AppUpdateChecker.kt)
- To avoid installation conflicts:
- Change the `applicationId` in [`build.gradle.kts`](https://github.com/cuong-tran/komikku/blob/master/app/build.gradle.kts)
- Change the `applicationId` in [`build.gradle.kts`](https://github.com/komikku-app/komikku/blob/master/app/build.gradle.kts)
- To avoid having your data polluting the main app's analytics and crash report services:
- If you want to use Firebase analytics, replace [`google-services.json`](https://github.com/cuong-tran/komikku/blob/master/app/src/standard/google-services.json) with your own
- If you want to use ACRA crash reporting, replace the `ACRA_URI` endpoint in [`build.gradle.kts`](https://github.com/cuong-tran/komikku/blob/master/app/build.gradle.kts) with your own
- If you want to use Firebase analytics, replace [`google-services.json`](https://github.com/komikku-app/komikku/blob/master/app/src/standard/google-services.json) with your own
- If you want to use ACRA crash reporting, replace the `ACRA_URI` endpoint in [`build.gradle.kts`](https://github.com/komikku-app/komikku/blob/master/app/build.gradle.kts) with your own

View file

@ -1,6 +1,6 @@
| Releases | Preview builds | Dev builds | PR builds | Mihon Support Server |
|----------|----------------|------------|-----------|----------------------|
| [![stable release](https://img.shields.io/github/release/cuong-tran/komikku.svg?maxAge=3600&label=download)](https://github.com/cuong-tran/komikku/releases/latest) | [![Preview Builder](https://github.com/cuong-tran/komikku/actions/workflows/build_preview.yml/badge.svg)](https://github.com/cuong-tran/komikku/actions/workflows/build_preview.yml) | [![Development Builder](https://github.com/cuong-tran/komikku/actions/workflows/build_develop.yml/badge.svg)](https://github.com/cuong-tran/komikku/actions/workflows/build_develop.yml) | [![CI](https://github.com/cuong-tran/komikku/actions/workflows/build_check.yml/badge.svg)](https://github.com/cuong-tran/komikku/actions/workflows/build_check.yml) | [![Discord](https://img.shields.io/discord/1195734228319617024.svg?label=discord&labelColor=7289da&color=2c2f33&style=flat)](https://discord.gg/mihon) |
| [![stable release](https://img.shields.io/github/release/komikku-app/komikku.svg?maxAge=3600&label=download)](https://github.com/komikku-app/komikku/releases/latest) | [![Preview Builder](https://github.com/komikku-app/komikku/actions/workflows/build_preview.yml/badge.svg)](https://github.com/komikku-app/komikku/actions/workflows/build_preview.yml) | [![Development Builder](https://github.com/komikku-app/komikku/actions/workflows/build_develop.yml/badge.svg)](https://github.com/komikku-app/komikku/actions/workflows/build_develop.yml) | [![CI](https://github.com/komikku-app/komikku/actions/workflows/build_check.yml/badge.svg)](https://github.com/komikku-app/komikku/actions/workflows/build_check.yml) | [![Discord](https://img.shields.io/discord/1195734228319617024.svg?label=discord&labelColor=7289da&color=2c2f33&style=flat)](https://discord.gg/mihon) |
# ![app icon](./.github/readme-images/app-icon.png) Komikku
@ -76,7 +76,7 @@ Additional features for some extensions, features include custom description, op
* Tsumino
## Download
Get the app from our [releases page](https://github.com/cuong-tran/komikku/releases/latest).
Get the app from our [releases page](https://github.com/komikku-app/komikku/releases/latest).
If you want to try new features before they get to the stable release, you can download the preview version [here](https://github.com/jobobby04/tachiyomisypreview/releases).
@ -86,7 +86,7 @@ Please make sure to read the full guidelines. Your issue may be closed without w
<details><summary>Issues</summary>
1. **Before reporting a new issue, take a look at the [FAQ](https://tachiyomi.org/docs/faq/general), the [changelog](https://github.com/cuong-tran/komikku/releases) and the already opened [issues](https://github.com/cuong-tran/komikku/issues).**
1. **Before reporting a new issue, take a look at the [FAQ](https://tachiyomi.org/docs/faq/general), the [changelog](https://github.com/komikku-app/komikku/releases) and the already opened [issues](https://github.com/komikku-app/komikku/issues).**
2. If you are unsure, ask here: [![Discord](https://img.shields.io/discord/1195734228319617024.svg)](https://discord.gg/mihon)
</details>

View file

@ -22,5 +22,5 @@ class CreateExtensionRepo(private val preferences: SourcePreferences) {
}
}
const val OFFICIAL_REPO_BASE_URL = "https://raw.githubusercontent.com/cuong-tran/komikku-extensions/repo"
const val OFFICIAL_REPO_BASE_URL = "https://raw.githubusercontent.com/komikku-app/komikku-extensions/repo"
private val repoRegex = """^https://.*/index\.min\.json$""".toRegex()

View file

@ -107,6 +107,20 @@ fun BrowseSourceToolbar(
),
)
}
// KMK -->
add(
AppBar.OverflowAction(
title = stringResource(MR.strings.pref_invalidate_download_cache),
onClick = { },
),
)
add(
AppBar.OverflowAction(
title = stringResource(MR.strings.pref_clean_invalid_downloads),
onClick = { },
),
)
// KMK <--
}
// SY <--
if (isConfigurableSource) {

View file

@ -190,6 +190,21 @@ fun MangaToolbar(
)
}
// SY <--
// KMK -->
add(
AppBar.OverflowAction(
title = stringResource(MR.strings.pref_invalidate_download_cache),
onClick = { },
),
)
add(
AppBar.OverflowAction(
title = stringResource(MR.strings.pref_clean_invalid_downloads),
onClick = { },
),
)
// KMK <--
}
.build(),
)

View file

@ -235,6 +235,16 @@ object SettingsAdvancedScreen : SearchableSettings {
context.toast(MR.strings.download_cache_invalidated)
},
),
// KMK -->
Preference.PreferenceItem.TextPreference(
title = stringResource(MR.strings.pref_clean_invalid_downloads),
subtitle = stringResource(MR.strings.pref_clean_invalid_downloads_summary),
onClick = {
Injekt.get<DownloadCache>().invalidateCache()
context.toast(MR.strings.invalid_downloads_cleaned)
},
),
// KMK <--
Preference.PreferenceItem.TextPreference(
title = stringResource(MR.strings.pref_clear_database),
subtitle = stringResource(MR.strings.pref_clear_database_summary),

View file

@ -210,7 +210,7 @@ object AboutScreen : Screen() {
label = "GitHub",
icon = CustomIcons.Github,
// SY -->
url = "https://github.com/cuong-tran/komikku",
url = "https://github.com/komikku-app/komikku",
// SY <--
)
}

View file

@ -173,6 +173,8 @@ class DownloadCache(
/**
* Returns the amount of downloaded chapters for a manga.
* This method is quick, but might count other junk files
* It's still maybe useful while developing the clean-up features
*
* @param manga the manga to check.
*/
@ -321,6 +323,15 @@ class DownloadCache(
renewCache()
}
// KMK -->
fun cleanInvalidDownloads() {
lastRenew = 0L
renewalJob?.cancel()
diskCacheFile.delete()
renewCache()
}
// KMK <--
/**
* Renews the downloads cache.
*/

View file

@ -52,9 +52,9 @@ class AppUpdateChecker {
val GITHUB_REPO: String by lazy {
// SY -->
if (isPreviewBuildType) {
"cuong-tran/komikku"
"komikku-app/komikku"
} else {
"cuong-tran/komikku"
"komikku-app/komikku"
}
// SY <--
}

View file

@ -58,7 +58,7 @@ class GetApplicationRelease(
val currentInt = syDebugVersion.toIntOrNull()
currentInt != null && newVersion.toInt() > currentInt
} else {
// Release builds: based on releases in "cuong-tran/komikku" repo
// Release builds: based on releases in "komikku-app/komikku" repo
// tagged as something like "0.1.2"
val oldVersion = versionName.replace("[^\\d.]".toRegex(), "")

View file

@ -554,6 +554,11 @@
<string name="pref_reset_user_agent_string">Reset default user agent string</string>
<string name="requires_app_restart">Requires app restart to take effect</string>
<string name="cookies_cleared">Cookies cleared</string>
<!-- KMK >> -->
<string name="pref_clean_invalid_downloads">Clean invalid downloads</string>
<string name="pref_clean_invalid_downloads_summary">Find and remove all downloads, files, folders which are not saved in your library</string>
<string name="invalid_downloads_cleaned">Invalid downloads cleaned</string>
<!-- KMK << -->
<string name="pref_invalidate_download_cache">Invalidate downloads index</string>
<string name="pref_invalidate_download_cache_summary">Force app to recheck downloaded chapters</string>
<string name="download_cache_invalidated">Downloads index invalidated</string>