From ffd2fa8da44cc5574311a8b670dbc7c7d875b9f0 Mon Sep 17 00:00:00 2001 From: MatadorProBr <71022656+MatadorProBr@users.noreply.github.com> Date: Sun, 13 Nov 2022 22:38:26 +1100 Subject: [PATCH] Add support to Twitch & TickTick (#99) * Add support to Twitch & TickTIck * Make T uppercase on app name --- build.conf | 4 +++- build.sh | 2 ++ utils.sh | 26 +++++++++++++++++++++++++- 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/build.conf b/build.conf index 50ea34c..52b2d37 100644 --- a/build.conf +++ b/build.conf @@ -1,4 +1,4 @@ -# patches to exclude (white-space does not matter) +# patches to exclude/include (white-space does not matter) # example: # YOUTUBE_EXCLUDED_PATCHES=" # patch1 another-patch @@ -20,9 +20,11 @@ MUSIC_ARM64_V8A_MODE=both/auto MUSIC_ARM_V7A_MODE=both/auto TWITTER_MODE=apk/latest REDDIT_MODE=apk/latest +TWITCH_MODE=apk/latest TIKTOK_MODE=apk/latest SPOTIFY_MODE=none/latest # patches for spotify are quite useless tbh +TICKTICK_MODE=none/latest WARN_WETTER_MODE=none/latest MOUNT_DELAY=5 # some low-end phones cannot mount apks on boot without a delay. increase to something like 20 if needed. diff --git a/build.sh b/build.sh index 6cdc1bd..cd756bc 100755 --- a/build.sh +++ b/build.sh @@ -42,8 +42,10 @@ build_youtube & build_music & build_twitter & build_reddit & +build_twitch & build_tiktok & build_spotify & +build_ticktick & build_warn_wetter & wait diff --git a/utils.sh b/utils.sh index ecd1c73..7c43a52 100755 --- a/utils.sh +++ b/utils.sh @@ -9,7 +9,7 @@ BUILD_DIR="build" GITHUB_REPOSITORY=${GITHUB_REPOSITORY:-$"j-hc/revanced-magisk-module"} NEXT_VER_CODE=${NEXT_VER_CODE:-$(date +'%Y%m%d')} -WGET_HEADER="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0" +WGET_HEADER="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/106.0" SERVICE_SH=$(cat $MODULE_SCRIPTS_DIR/service.sh) POSTFSDATA_SH=$(cat $MODULE_SCRIPTS_DIR/post-fs-data.sh) @@ -339,6 +339,18 @@ build_reddit() { build_rv reddit_args } +#shellcheck disable=SC2034 +build_twitch() { + declare -A twitch_args + twitch_args[app_name]="Twitch" + twitch_args[mode]="$TWITCH_MODE" + twitch_args[pkg_name]="tv.twitch.android.app" + twitch_args[apkmirror_dlurl]="twitch-interactive-inc/twitch" + twitch_args[regexp]='APK[^@]*@\([^#]*\)' + + build_rv twitch_args +} + #shellcheck disable=SC2034 build_tiktok() { declare -A tiktok_args @@ -362,6 +374,18 @@ build_spotify() { build_rv spotify_args } +#shellcheck disable=SC2034 +build_ticktick() { + declare -A ticktick_args + ticktick_args[app_name]="TickTick" + ticktick_args[mode]="$TICKTICK_MODE" + ticktick_args[pkg_name]="com.ticktick.task" + ticktick_args[apkmirror_dlurl]="appest-inc/ticktick-to-do-list-with-reminder-day-planner" + ticktick_args[regexp]='APK[^@]*@\([^#]*\)' + + build_rv ticktick_args +} + #shellcheck disable=SC2034 build_warn_wetter() { declare -A warn_wetter_args