diff --git a/.github/workflows/manual-patch.yml b/.github/workflows/manual-patch.yml index 2b16df3..422aa8f 100644 --- a/.github/workflows/manual-patch.yml +++ b/.github/workflows/manual-patch.yml @@ -39,7 +39,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - run: [1, 2, 3, 4, 5, 6, 7, 8, 9] + run: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] steps: - name: Checkout uses: actions/checkout@v4.2.2 @@ -62,7 +62,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - run: [1, 2, 3, 4, 5, 6, 7, 8, 9] + run: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] steps: - name: Checkout uses: actions/checkout@v4.2.2 diff --git a/README.md b/README.md index d47bccc..b56537d 100644 --- a/README.md +++ b/README.md @@ -238,7 +238,7 @@ Old patches, because latest patch not support split apks ### [Revanced:](https://github.com/revanced/revanced-patches) | Stable version | Beta version | -| ---------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| ---------------------------------------------------------------------- | ------------------------------------------------------------------------- | | [All Architectures](../../releases/download/all/tiktok-revanced.apk) | [All Architectures](../../releases/download/all/tiktok-beta-revanced.apk) | --- @@ -296,6 +296,16 @@ Old patches, because latest patch not support split apks --- +[![Duolingo](https://img.shields.io/badge/Duolingo-%234DC730.svg?style=for-the-badge&logo=Duolingo&logoColor=white)](https://play.google.com/store/apps/details?id=com.duolingo) + +### [Revanced:](https://github.com/revanced/revanced-patches) + +| Stable version | Beta version | +| ------------------------------------------------------------------------ | --------------------------------------------------------------------------- | +| [All Architectures](../../releases/download/all/duolingo-revanced.apk) | [All Architectures](../../releases/download/all/duolingo-beta-revanced.apk) | + +--- + ### [RAR:](https://play.google.com/store/apps/details?id=com.rarlab.rar) ### [Revanced:](https://github.com/revanced/revanced-patches) diff --git a/src/build/Revanced-Beta.sh b/src/build/Revanced-Beta.sh index c7d7b40..05b6251 100644 --- a/src/build/Revanced-Beta.sh +++ b/src/build/Revanced-Beta.sh @@ -154,6 +154,14 @@ revanced_dl(){ get_apk "com.google.android.apps.youtube.music" "youtube-music-beta-armeabi-v7a" "youtube-music" "google-inc/youtube-music/youtube-music" "armeabi-v7a" patch "youtube-music-beta-armeabi-v7a" "revanced" } +10() { + revanced_dl + # Patch Duolingo + get_patches_key "Duolingo" + lock_version="1" + get_apk "com.duolingo" "duolingo-beta" "duolingo" "duolingo/duolingo-duolingo/duolingo-language-lessons" "Bundle" + patch "duolingo-beta" "revanced" +} case "$1" in 1) 1 @@ -182,4 +190,7 @@ case "$1" in 9) 9 ;; + 10) + 10 + ;; esac diff --git a/src/build/Revanced.sh b/src/build/Revanced.sh index 101418c..02e75d1 100644 --- a/src/build/Revanced.sh +++ b/src/build/Revanced.sh @@ -153,6 +153,14 @@ revanced_dl(){ get_apk "com.google.android.apps.youtube.music" "youtube-music-armeabi-v7a" "youtube-music" "google-inc/youtube-music/youtube-music" "armeabi-v7a" patch "youtube-music-armeabi-v7a" "revanced" } +10() { + revanced_dl + # Patch Duolingo + get_patches_key "Duolingo" + lock_version="1" + get_apk "com.duolingo" "duolingo" "duolingo" "duolingo/duolingo-duolingo/duolingo-language-lessons" "Bundle" + patch "duolingo" "revanced" +} case "$1" in 1) 1 @@ -181,4 +189,7 @@ case "$1" in 9) 9 ;; + 10) + 10 + ;; esac \ No newline at end of file diff --git a/src/build/utils.sh b/src/build/utils.sh index da5c4da..c682bb0 100644 --- a/src/build/utils.sh +++ b/src/build/utils.sh @@ -214,7 +214,8 @@ get_apk() { local attempt=0 while [ $attempt -lt 10 ]; do if [[ -z $version ]] || [ $attempt -ne 0 ]; then - version=$(req "https://www.apkmirror.com/uploads/?appcategory=$3" - | \ + local upload_tail="?$([[ $3 = duolingo ]] && echo devcategory= || echo appcategory=)" + version=$(req "https://www.apkmirror.com/uploads/$upload_tail$3" - | \ $pup 'div.widget_appmanager_recentpostswidget h5 a.fontBlack text{}' | \ grep -Evi 'alpha|beta' | \ grep -oPi '\b\d+(\.\d+)+(?:\-\w+)?(?:\.\d+)?(?:\.\w+)?\b' | \ diff --git a/src/patches/Duolingo/exclude-patches b/src/patches/Duolingo/exclude-patches new file mode 100644 index 0000000..e69de29 diff --git a/src/patches/Duolingo/include-patches b/src/patches/Duolingo/include-patches new file mode 100644 index 0000000..e69de29