This repository has been archived by the owner on Jan 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7849d19
Showing
122 changed files
with
8,371 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Editor configuration, see https://editorconfig.org | ||
root = true | ||
|
||
[*.kt] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
ij_kotlin_allow_trailing_comma = true | ||
ij_kotlin_allow_trailing_comma_on_call_site = true | ||
ij_kotlin_name_count_to_use_star_import = 2147483647 | ||
ij_kotlin_name_count_to_use_star_import_for_members = 2147483647 | ||
|
||
[*.properties] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
**PLEASE READ THIS** | ||
|
||
I acknowledge that: | ||
|
||
- I have updated to the latest version of the app (stable is v0.15.1) | ||
- I have updated all extensions | ||
- If this is an issue with the app itself, that I should be opening an issue in https://github.com/tachiyomiorg/tachiyomi | ||
- I have searched the existing issues for duplicates | ||
- For source requests, I have checked the list of existing extensions including the multi-source spreadsheet: https://tachiyomi.org/extensions/ | ||
|
||
**DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT** | ||
|
||
--- | ||
|
||
## Device information | ||
* Tachiyomi version: ? | ||
* Android version: ? | ||
* Device: ? | ||
|
||
## Source information | ||
* Source name: ? | ||
* Source extension version: ? | ||
|
||
## Steps to reproduce | ||
1. First step | ||
2. Second step | ||
|
||
## Issue/Request | ||
? | ||
|
||
## Other details | ||
Additional details and attachments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
name: 🐞 Issue report | ||
description: Report a source issue in Tachiyomi | ||
labels: [Bug] | ||
body: | ||
|
||
- type: input | ||
id: source | ||
attributes: | ||
label: Source information | ||
description: | | ||
You can find the extension name and version in **Browse → Extensions**. | ||
placeholder: | | ||
Example: "Komga 1.3.18" | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
id: language | ||
attributes: | ||
label: Source language | ||
placeholder: | | ||
Example: "English" | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: reproduce-steps | ||
attributes: | ||
label: Steps to reproduce | ||
description: Provide an example of the issue. | ||
placeholder: | | ||
Example: | ||
1. First step | ||
2. Second step | ||
3. Issue here | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: expected-behavior | ||
attributes: | ||
label: Expected behavior | ||
placeholder: | | ||
Example: | ||
"This should happen..." | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: actual-behavior | ||
attributes: | ||
label: Actual behavior | ||
placeholder: | | ||
Example: | ||
"This happened instead..." | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
id: tachiyomi-version | ||
attributes: | ||
label: Tachiyomi version | ||
description: | | ||
You can find your Tachiyomi version in **More → About**. | ||
placeholder: | | ||
Example: "0.15.1" | ||
validations: | ||
required: true | ||
|
||
- type: input | ||
id: android-version | ||
attributes: | ||
label: Android version | ||
description: | | ||
You can find this somewhere in your Android settings. | ||
placeholder: | | ||
Example: "Android 11" | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: other-details | ||
attributes: | ||
label: Other details | ||
placeholder: | | ||
Additional details and attachments. | ||
- type: checkboxes | ||
id: acknowledgements | ||
attributes: | ||
label: Acknowledgements | ||
description: Your issue will be closed if you haven't done these steps. | ||
options: | ||
- label: I have searched the existing issues and this is a new ticket, **NOT** a duplicate or related to another open or closed issue. | ||
required: true | ||
- label: I have written a short but informative title. | ||
required: true | ||
- label: I have updated the app to version **[0.15.1](https://github.com/tachiyomiorg/tachiyomi/releases/latest)**. | ||
required: true | ||
- label: I have updated all installed extensions. | ||
required: true | ||
- label: I have tried the [troubleshooting guide](https://tachiyomi.org/help/guides/troubleshooting/). | ||
required: true | ||
- label: If this is an issue with the app itself, I should be opening an issue in the [app repository](https://github.com/tachiyomiorg/tachiyomi/issues/new/choose). | ||
required: true | ||
- label: I will fill out all of the requested information in this form. | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: ⭐ Feature request | ||
description: Suggest a feature to improve an existing source | ||
labels: [Feature request] | ||
body: | ||
|
||
- type: input | ||
id: source | ||
attributes: | ||
label: Source name | ||
description: | | ||
You can find the extension name in **Browse → Extensions**. | ||
placeholder: | | ||
Example: "Komga" | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: feature-description | ||
attributes: | ||
label: Describe your suggested feature | ||
description: How can an existing extension be improved? | ||
placeholder: | | ||
Example: | ||
"It should work like this..." | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: other-details | ||
attributes: | ||
label: Other details | ||
placeholder: | | ||
Additional details and attachments. | ||
- type: checkboxes | ||
id: acknowledgements | ||
attributes: | ||
label: Acknowledgements | ||
description: Your issue will be closed if you haven't done these steps. | ||
options: | ||
- label: I have searched the existing issues and this is a new ticket, **NOT** a duplicate or related to another open or closed issue. | ||
required: true | ||
- label: I have written a short but informative title. | ||
required: true | ||
- label: If this is an issue with the app itself, I should be opening an issue in the [app repository](https://github.com/tachiyomiorg/tachiyomi/issues/new/choose). | ||
required: true | ||
- label: I have updated the app to version **[0.15.1](https://github.com/tachiyomiorg/tachiyomi/releases/latest)**. | ||
required: true | ||
- label: I will fill out all of the requested information in this form. | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: 🧠 Meta request | ||
description: Suggest improvements to the project | ||
labels: [Meta request] | ||
body: | ||
|
||
- type: textarea | ||
id: feature-description | ||
attributes: | ||
label: Describe why this should be added | ||
description: How can the project be improved? | ||
placeholder: | | ||
Example: | ||
"It should work like this..." | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: other-details | ||
attributes: | ||
label: Other details | ||
placeholder: | | ||
Additional details and attachments. | ||
- type: checkboxes | ||
id: acknowledgements | ||
attributes: | ||
label: Acknowledgements | ||
description: Your issue will be closed if you haven't done these steps. | ||
options: | ||
- label: I have searched the existing issues and this is a new ticket, **NOT** a duplicate or related to another open or closed issue. | ||
required: true | ||
- label: I have written a short but informative title. | ||
required: true | ||
- label: If this is an issue with the app itself, I should be opening an issue in the [app repository](https://github.com/tachiyomiorg/tachiyomi/issues/new/choose). | ||
required: true | ||
- label: I have updated the app to version **[0.15.1](https://github.com/tachiyomiorg/tachiyomi/releases/latest)**. | ||
required: true | ||
- label: I have updated all installed extensions. | ||
required: true | ||
- label: I will fill out all of the requested information in this form. | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: ⚠️ Application issue | ||
url: https://github.com/tachiyomiorg/tachiyomi/issues/new/choose | ||
about: Issues and requests about the app itself should be opened in the tachiyomi repository instead | ||
- name: 📦 Tachiyomi extensions | ||
url: https://tachiyomi.org/extensions | ||
about: List of all available extensions with download links | ||
- name: 🖥️ Tachiyomi website | ||
url: https://tachiyomi.org/help/ | ||
about: Guides, troubleshooting, and answers to common questions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Checklist: | ||
|
||
- [ ] Updated `extVersionCode` value in `build.gradle` for individual extensions | ||
- [ ] Referenced all related issues in the PR body (e.g. "Closes #xyz") | ||
- [ ] Added the `isNsfw = true` flag in `build.gradle` when appropriate | ||
- [ ] Have not changed source names | ||
- [ ] Have explicitly kept the `id` if a source's name or language were changed | ||
- [ ] Have tested the modifications by compiling and running the extension through Android Studio |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": [ | ||
"config:base" | ||
], | ||
"includePaths": [ | ||
".github/**" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
rsync -a --delete --exclude .git --exclude .gitignore ../main/repo/ . | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --global user.name "github-actions[bot]" | ||
git status | ||
if [ -n "$(git status --porcelain)" ]; then | ||
git add . | ||
git commit -m "Update extensions repo" | ||
git push | ||
|
||
# Purge cached index on jsDelivr | ||
curl https://purge.jsdelivr.net/gh/tachiyomiorg/extensions@repo/index.min.json | ||
else | ||
echo "No changes to commit" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
TOOLS="$(ls -d ${ANDROID_HOME}/build-tools/* | tail -1)" | ||
|
||
mkdir -p repo/apk | ||
mkdir -p repo/icon | ||
|
||
cp -f apk/* repo/apk | ||
|
||
cd repo | ||
|
||
APKS=( ../apk/*".apk" ) | ||
|
||
for APK in ${APKS[@]}; do | ||
FILENAME=$(basename ${APK}) | ||
BADGING="$(${TOOLS}/aapt dump --include-meta-data badging $APK)" | ||
|
||
PACKAGE=$(echo "$BADGING" | grep package:) | ||
PKGNAME=$(echo $PACKAGE | grep -Po "package: name='\K[^']+") | ||
VCODE=$(echo $PACKAGE | grep -Po "versionCode='\K[^']+") | ||
VNAME=$(echo $PACKAGE | grep -Po "versionName='\K[^']+") | ||
NSFW=$(echo $BADGING | grep -Po "tachiyomi.extension.nsfw' value='\K[^']+") | ||
|
||
APPLICATION=$(echo "$BADGING" | grep application:) | ||
LABEL=$(echo $APPLICATION | grep -Po "label='\K[^']+") | ||
|
||
LANG=$(echo $APK | grep -Po "tachiyomi-\K[^\.]+") | ||
|
||
ICON=$(echo "$BADGING" | grep -Po "application-icon-320.*'\K[^']+") | ||
unzip -p $APK $ICON > icon/${PKGNAME}.png | ||
|
||
SOURCE_INFO=$(jq ".[\"$PKGNAME\"]" < ../output.json) | ||
|
||
# Fixes the language code without needing to update the packages. | ||
SOURCE_LEN=$(echo $SOURCE_INFO | jq length) | ||
|
||
if [ $SOURCE_LEN = "1" ]; then | ||
SOURCE_LANG=$(echo $SOURCE_INFO | jq -r '.[0].lang') | ||
|
||
if [ $SOURCE_LANG != $LANG ] && [ $SOURCE_LANG != "all" ] && [ $SOURCE_LANG != "other" ] && [ $LANG != "all" ] && [ $LANG != "other" ]; then | ||
LANG=$SOURCE_LANG | ||
fi | ||
fi | ||
|
||
jq -n \ | ||
--arg name "$LABEL" \ | ||
--arg pkg "$PKGNAME" \ | ||
--arg apk "$FILENAME" \ | ||
--arg lang "$LANG" \ | ||
--argjson code $VCODE \ | ||
--arg version "$VNAME" \ | ||
--argjson nsfw $NSFW \ | ||
--argjson sources "$SOURCE_INFO" \ | ||
'{name:$name, pkg:$pkg, apk:$apk, lang:$lang, code:$code, version:$version, nsfw:$nsfw, sources:$sources}' | ||
|
||
done | jq -sr '[.[]]' > index.json | ||
|
||
# Alternate minified copy | ||
jq -c '.' < index.json > index.min.json | ||
|
||
cat index.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
set -e | ||
shopt -s globstar nullglob extglob | ||
|
||
# Get APKs from previous jobs' artifacts | ||
cp -R ~/apk-artifacts/ $PWD | ||
APKS=( **/*".apk" ) | ||
|
||
# Fail if too little extensions seem to have been built | ||
if [ "${#APKS[@]}" -le "1" ]; then | ||
echo "Insufficient amount of APKs found. Please check the project configuration." | ||
exit 1 | ||
else | ||
echo "Moving ${#APKS[@]} APKs" | ||
fi | ||
|
||
DEST=$PWD/apk | ||
rm -rf $DEST && mkdir -p $DEST | ||
|
||
for APK in ${APKS[@]}; do | ||
BASENAME=$(basename $APK) | ||
APKNAME="${BASENAME%%+(-release*)}.apk" | ||
APKDEST="$DEST/$APKNAME" | ||
|
||
cp $APK $APKDEST | ||
done |
Oops, something went wrong.