-
Notifications
You must be signed in to change notification settings - Fork 6
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 af3bc45
Showing
69 changed files
with
4,186 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,27 @@ | ||
**PLEASE READ THIS** | ||
|
||
I acknowledge that: | ||
|
||
- I have updated to the latest version of the app | ||
- I have updated all extensions | ||
- If this is an issue with the app itself, that I should be opening an issue in the app repository | ||
- I have searched the existing issues for duplicates | ||
|
||
**DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT** | ||
|
||
--- | ||
|
||
## Device information | ||
* App version: ? | ||
* Android version: ? | ||
* Device: ? | ||
|
||
## 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,85 @@ | ||
name: 🐞 Issue report | ||
description: Report a source issue in Tachiyomi | ||
labels: [Bug] | ||
body: | ||
|
||
- 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: App version | ||
description: | | ||
You can find your app 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 the latest version. | ||
required: true | ||
- label: I have updated all installed extensions. | ||
required: true | ||
- label: If this is an issue with the app itself, I should be opening an issue in the app repository. | ||
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,39 @@ | ||
name: ⭐ Feature request | ||
description: Suggest a feature to improve an existing source | ||
labels: [Feature request] | ||
body: | ||
|
||
- 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. | ||
required: true | ||
- label: I have updated the app to the latest version. | ||
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. | ||
required: true | ||
- label: I have updated the app to the latest version. | ||
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,8 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: ⚠️ Application issue | ||
url: https://github.com/suwayomi/tachiyomi-extension/issues/new/choose | ||
about: Issues and requests about the app itself should be opened in the app repository instead | ||
- name: 🖥️ Suwayomi website | ||
url: https://suwayomi.org/ | ||
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/suwayomi/tachiyomi-extension@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 |
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,31 @@ | ||
name: PR build check | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
- '.github/workflows/issue_moderator.yml' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build_individual: | ||
name: Build individual modules | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout PR | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 11 | ||
distribution: adopt | ||
|
||
- name: Build extensions | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: assembleDebug | ||
cache-read-only: true |
Oops, something went wrong.