mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-05-21 00:37:08 +02:00
Add support to Twitch & TickTick (#99)
* Add support to Twitch & TickTIck * Make T uppercase on app name
This commit is contained in:
parent
b09e34bfae
commit
ffd2fa8da4
@ -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.
|
||||
|
2
build.sh
2
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
|
||||
|
26
utils.sh
26
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</span>[^@]*@\([^#]*\)'
|
||||
|
||||
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</span>[^@]*@\([^#]*\)'
|
||||
|
||||
build_rv ticktick_args
|
||||
}
|
||||
|
||||
#shellcheck disable=SC2034
|
||||
build_warn_wetter() {
|
||||
declare -A warn_wetter_args
|
||||
|
Loading…
x
Reference in New Issue
Block a user