diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index 9f0508ef10..0000000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,5 +0,0 @@ -blank_issues_enabled: false -contact_links: - - name: 🖥️ Mihon website - url: https://mihon.app/ - about: Guides, troubleshooting, and answers to common questions diff --git a/.github/ISSUE_TEMPLATE/report_issue.yml b/.github/ISSUE_TEMPLATE/report_issue.yml deleted file mode 100644 index 30ac127397..0000000000 --- a/.github/ISSUE_TEMPLATE/report_issue.yml +++ /dev/null @@ -1,104 +0,0 @@ -name: 🐞 Issue report -description: Report an issue in Mihon -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 - description: Explain what you should expect to happen. - placeholder: | - Example: - "This should happen..." - validations: - required: true - - - type: textarea - id: actual-behavior - attributes: - label: Actual behavior - description: Explain what actually happens. - placeholder: | - Example: - "This happened instead..." - validations: - required: true - - - type: textarea - id: crash-logs - attributes: - label: Crash logs - description: | - If you're experiencing crashes, share the crash logs from **More → Settings → Advanced** then press **Dump crash logs**. - placeholder: | - You can paste the crash logs in plain text or upload it as an attachment. - - - type: input - id: mihon-version - attributes: - label: Mihon version - description: You can find your Mihon version in **More → About**. - placeholder: | - Example: "0.16.5" - 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: input - id: device - attributes: - label: Device - description: List your device and model. - placeholder: | - Example: "Google Pixel 5" - 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: Read this carefully, we will close and ignore your issue if you skimmed through this. - 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 gone through the [FAQ](https://mihon.app/docs/faq/general) and [troubleshooting guide](https://mihon.app/docs/guides/troubleshooting/). - required: true - - label: I have updated the app to version **[0.16.5](https://github.com/mihonapp/mihon/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 diff --git a/.github/ISSUE_TEMPLATE/request_feature.yml b/.github/ISSUE_TEMPLATE/request_feature.yml deleted file mode 100644 index a653bfda04..0000000000 --- a/.github/ISSUE_TEMPLATE/request_feature.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: ⭐ Feature request -description: Suggest a feature to improve Mihon -labels: [Feature request] -body: - - - type: textarea - id: feature-description - attributes: - label: Describe your suggested feature - description: How can Mihon 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: Read this carefully, we will close and ignore your issue if you skimmed through this. - 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.16.5](https://github.com/mihonapp/mihon/releases/latest)**. - required: true - - label: I will fill out all of the requested information in this form. - required: true diff --git a/.github/mergify.yml b/.github/mergify.yml deleted file mode 100644 index c9ddf76029..0000000000 --- a/.github/mergify.yml +++ /dev/null @@ -1,10 +0,0 @@ -#pull_request_rules: -# - name: Automatically merge translations -# conditions: -# - "author = weblate" -# - "-conflict" -# - "current-day-of-week = Sat" -# - "created-at < 1 day ago" -# actions: -# merge: -# method: squash \ No newline at end of file diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md deleted file mode 100644 index b724808d33..0000000000 --- a/.github/pull_request_template.md +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/.github/renovate.json5 b/.github/renovate.json5 deleted file mode 100644 index c01f918f54..0000000000 --- a/.github/renovate.json5 +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": ["config:base"], - "labels": ["Dependencies"], - "packageRules": [ - { - "groupName": "Compose BOM (Alpha)", - "matchPackageNames": [ - "dev.chrisbanes.compose:compose-bom" - ], - "ignoreUnstable": false - } - ] -} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000..df3f9ab366 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: Java Ci + +on: + push: + branches: + - '**' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@main + with: + submodules: true + - name: Set up JDK 18 + uses: actions/setup-java@main + with: + java-version: 22 + distribution: temurin + - name: Assemble APK + run: ./gradlew --no-daemon assembleDebug \ No newline at end of file diff --git a/.github/workflows/build_pull_request.yml b/.github/workflows/build_pull_request.yml deleted file mode 100644 index ef49e04148..0000000000 --- a/.github/workflows/build_pull_request.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: PR build check -on: - pull_request: - paths-ignore: - - '**.md' - - 'i18n/src/commonMain/resources/**/strings.xml' - - 'i18n/src/commonMain/resources/**/plurals.xml' - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number }} - cancel-in-progress: true - -permissions: - contents: read - -jobs: - build: - name: Build app - runs-on: ubuntu-latest - - steps: - - name: Clone repo - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - - - name: Validate Gradle Wrapper - uses: gradle/actions/wrapper-validation@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2 - - - name: Dependency Review - uses: actions/dependency-review-action@72eb03d02c7872a771aacd928f3123ac62ad6d3a # v4.3.3 - - - name: Set up JDK - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 - with: - java-version: 17 - distribution: adopt - - - name: Set up gradle - uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2 - - - name: Build app and run unit tests - run: ./gradlew detekt assembleStandardRelease testReleaseUnitTest diff --git a/.github/workflows/build_push.yml b/.github/workflows/build_push.yml deleted file mode 100644 index fd6862b3fa..0000000000 --- a/.github/workflows/build_push.yml +++ /dev/null @@ -1,113 +0,0 @@ -name: CI -on: - push: - branches: - - main - tags: - - v* - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build: - name: Build app - runs-on: ubuntu-latest - - steps: - - name: Clone repo - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - - - name: Validate Gradle Wrapper - uses: gradle/actions/wrapper-validation@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2 - - - name: Setup Android SDK - run: | - ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager "build-tools;29.0.3" - - - name: Set up JDK - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 - with: - java-version: 17 - distribution: adopt - - - name: Set up gradle - uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2 - - - name: Build app and run unit tests - run: ./gradlew detekt assembleStandardRelease testReleaseUnitTest - - # Sign APK and create release for tags - - - name: Get tag name - if: startsWith(github.ref, 'refs/tags/') && github.repository == 'mihonapp/mihon' - run: | - set -x - echo "VERSION_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV - - - name: Sign APK - if: startsWith(github.ref, 'refs/tags/') && github.repository == 'mihonapp/mihon' - uses: r0adkll/sign-android-release@349ebdef58775b1e0d8099458af0816dc79b6407 # v1 - with: - releaseDirectory: app/build/outputs/apk/standard/release - signingKeyBase64: ${{ secrets.SIGNING_KEY }} - alias: ${{ secrets.ALIAS }} - keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} - keyPassword: ${{ secrets.KEY_PASSWORD }} - - - name: Clean up build artifacts - if: startsWith(github.ref, 'refs/tags/') && github.repository == 'mihonapp/mihon' - run: | - set -e - - mv app/build/outputs/apk/standard/release/app-standard-universal-release-unsigned-signed.apk mihon-${{ env.VERSION_TAG }}.apk - sha=`sha256sum mihon-${{ env.VERSION_TAG }}.apk | awk '{ print $1 }'` - echo "APK_UNIVERSAL_SHA=$sha" >> $GITHUB_ENV - - cp app/build/outputs/apk/standard/release/app-standard-arm64-v8a-release-unsigned-signed.apk mihon-arm64-v8a-${{ env.VERSION_TAG }}.apk - sha=`sha256sum mihon-arm64-v8a-${{ env.VERSION_TAG }}.apk | awk '{ print $1 }'` - echo "APK_ARM64_V8A_SHA=$sha" >> $GITHUB_ENV - - cp app/build/outputs/apk/standard/release/app-standard-armeabi-v7a-release-unsigned-signed.apk mihon-armeabi-v7a-${{ env.VERSION_TAG }}.apk - sha=`sha256sum mihon-armeabi-v7a-${{ env.VERSION_TAG }}.apk | awk '{ print $1 }'` - echo "APK_ARMEABI_V7A_SHA=$sha" >> $GITHUB_ENV - - cp app/build/outputs/apk/standard/release/app-standard-x86-release-unsigned-signed.apk mihon-x86-${{ env.VERSION_TAG }}.apk - sha=`sha256sum mihon-x86-${{ env.VERSION_TAG }}.apk | awk '{ print $1 }'` - echo "APK_X86_SHA=$sha" >> $GITHUB_ENV - - cp app/build/outputs/apk/standard/release/app-standard-x86_64-release-unsigned-signed.apk mihon-x86_64-${{ env.VERSION_TAG }}.apk - sha=`sha256sum mihon-x86_64-${{ env.VERSION_TAG }}.apk | awk '{ print $1 }'` - echo "APK_X86_64_SHA=$sha" >> $GITHUB_ENV - - - name: Create Release - if: startsWith(github.ref, 'refs/tags/') && github.repository == 'mihonapp/mihon' - uses: softprops/action-gh-release@69320dbe05506a9a39fc8ae11030b214ec2d1f87 # v2.0.5 - with: - tag_name: ${{ env.VERSION_TAG }} - name: Mihon ${{ env.VERSION_TAG }} - body: | - --- - - ### Checksums - - | Variant | SHA-256 | - | ------- | ------- | - | Universal | ${{ env.APK_UNIVERSAL_SHA }} - | arm64-v8a | ${{ env.APK_ARM64_V8A_SHA }} - | armeabi-v7a | ${{ env.APK_ARMEABI_V7A_SHA }} - | x86 | ${{ env.APK_X86_SHA }} | - | x86_64 | ${{ env.APK_X86_64_SHA }} | - - ## If you are unsure which version to choose then go with mihon-${{ env.VERSION_TAG }}.apk - files: | - mihon-${{ env.VERSION_TAG }}.apk - mihon-arm64-v8a-${{ env.VERSION_TAG }}.apk - mihon-armeabi-v7a-${{ env.VERSION_TAG }}.apk - mihon-x86-${{ env.VERSION_TAG }}.apk - mihon-x86_64-${{ env.VERSION_TAG }}.apk - draft: true - prerelease: false - env: - GITHUB_TOKEN: ${{ secrets.PAT }} diff --git a/.github/workflows/issue_moderator.yml b/.github/workflows/issue_moderator.yml deleted file mode 100644 index 1a4fbe18f7..0000000000 --- a/.github/workflows/issue_moderator.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Issue moderator - -on: - issues: - types: [opened, edited, reopened] - issue_comment: - types: [created] - -jobs: - moderate: - runs-on: ubuntu-latest - steps: - - name: Moderate issues - uses: keiyoushi/issue-moderator-action@a017be83547db6e107431ce7575f53c1dfa3296a - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - duplicate-label: Duplicate - - auto-close-rules: | - [ - { - "type": "both", - "regex": "^(?!.*myanimelist.*).*(aniyomi|anime).*$", - "ignoreCase": true, - "message": "Mihon does not support anime, and has no plans to support anime. In addition Mihon is not affiliated with Aniyomi https://github.com/jmir1/aniyomi" - }, - { - "type": "both", - "regex": ".*(?:fail(?:ed|ure|s)?|can\\s*(?:no|')?t|(?:not|un).*able|(?