Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update to patcher v22 #4409

Open
wants to merge 101 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 94 commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
bf83db8
refactor: Basic use of patcher v22 instruction filters
LisoUseInAIKyrios Jan 1, 2025
6111bca
refactor
LisoUseInAIKyrios Jan 2, 2025
f9767e1
refactor
LisoUseInAIKyrios Jan 2, 2025
96e60a4
fix: add missing dependency used by fingerprints
LisoUseInAIKyrios Jan 2, 2025
cfce280
refactor: use 'by' semantic
LisoUseInAIKyrios Jan 3, 2025
2d1f7ff
Allow using a fingerprint result inside another fingerprint
LisoUseInAIKyrios Jan 3, 2025
5c3fb65
refactor
LisoUseInAIKyrios Jan 3, 2025
3db7566
use non deprecated method
LisoUseInAIKyrios Jan 3, 2025
f3b8602
Simplify
LisoUseInAIKyrios Jan 3, 2025
d2fbbf5
refactor: Simplify with class (parent) fingerprint
LisoUseInAIKyrios Jan 3, 2025
37833a0
refactor
LisoUseInAIKyrios Jan 4, 2025
0dfa503
use `NewInstanceFilter` filter
LisoUseInAIKyrios Jan 4, 2025
adc89a6
fix version constrain
LisoUseInAIKyrios Jan 4, 2025
e823574
refactor
LisoUseInAIKyrios Jan 4, 2025
2c1cdcc
Restore use of context receivers
LisoUseInAIKyrios Jan 5, 2025
d44f860
refactor: Rename to `MethodCallFilter` and `FieldCallFilter`
LisoUseInAIKyrios Jan 5, 2025
7ca1542
Revert "refactor: Simplify with class (parent) fingerprint"
LisoUseInAIKyrios Jan 5, 2025
d270192
refactor: Rename FieldCallFilter -> FieldAccessFilter
LisoUseInAIKyrios Jan 6, 2025
e0d97f4
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Jan 6, 2025
8114617
refactor: Use DSL style constructor functions
LisoUseInAIKyrios Jan 7, 2025
dfd6149
refactor: Use String literal instruction filter
LisoUseInAIKyrios Jan 7, 2025
d2900b7
refactor
LisoUseInAIKyrios Jan 8, 2025
41f753e
simplify
LisoUseInAIKyrios Jan 9, 2025
0277624
vastly simplify
LisoUseInAIKyrios Jan 10, 2025
676991a
refactor: Match class types using endsWith
LisoUseInAIKyrios Jan 10, 2025
d293cdd
unofficial 20.02
LisoUseInAIKyrios Jan 10, 2025
1802d00
refactor
LisoUseInAIKyrios Jan 12, 2025
ce7613f
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Jan 15, 2025
8a9c5ab
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Jan 18, 2025
c57ad58
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Jan 20, 2025
5322672
fix merge
LisoUseInAIKyrios Jan 20, 2025
9d3ba64
refactor
LisoUseInAIKyrios Jan 20, 2025
d20905e
unofficial 20.03 support
LisoUseInAIKyrios Jan 20, 2025
62be6fb
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Jan 20, 2025
7ddd83b
fix Open Shorts fullscreen patch with 19.50+
LisoUseInAIKyrios Jan 21, 2025
573c628
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Jan 21, 2025
598baa4
refactor, fix 19.25
LisoUseInAIKyrios Jan 21, 2025
e802bc3
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Jan 22, 2025
76b5f23
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Jan 22, 2025
f05794a
simplify
LisoUseInAIKyrios Jan 22, 2025
0f7fc1f
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Jan 23, 2025
605044e
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Jan 23, 2025
d68b096
refactor
LisoUseInAIKyrios Jan 23, 2025
4658742
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Jan 25, 2025
24daaac
refactor: Simplify
LisoUseInAIKyrios Jan 25, 2025
9ca9479
refactor: Simplify
LisoUseInAIKyrios Jan 25, 2025
d55cb5d
Add debugging code
LisoUseInAIKyrios Jan 27, 2025
e4c298e
Revert "Add debugging code"
LisoUseInAIKyrios Jan 27, 2025
6acbf34
refactor: Remove ClassProxy wrapper that's no longer needed
LisoUseInAIKyrios Jan 28, 2025
d151839
refactor
LisoUseInAIKyrios Jan 28, 2025
d9679c0
refactor
LisoUseInAIKyrios Jan 28, 2025
6ff3359
fix a/b seekbar color
LisoUseInAIKyrios Jan 29, 2025
a3339b4
add Miniplayer Modern 4, fix visual glitch if horizontal drag is enabled
LisoUseInAIKyrios Jan 29, 2025
af2e935
Add comments for literal filters
LisoUseInAIKyrios Jan 29, 2025
3ba91aa
fix Modern 4 hide overlay buttons
LisoUseInAIKyrios Jan 29, 2025
66dce1f
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Jan 30, 2025
fe3d0c0
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Jan 30, 2025
9cbc3ba
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Jan 30, 2025
68b6d63
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Jan 30, 2025
bdf60f8
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Jan 30, 2025
737e291
fix Twitch
LisoUseInAIKyrios Jan 30, 2025
f02489d
refactor
LisoUseInAIKyrios Jan 30, 2025
f0e179e
Unofficial support for 20.05 beta
LisoUseInAIKyrios Jan 30, 2025
fd571c3
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Jan 31, 2025
47b60c8
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Jan 31, 2025
c68f11d
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Feb 2, 2025
aceb3a6
Simplify with instruction filters
LisoUseInAIKyrios Feb 2, 2025
3d667d8
Remove `lastInstruction()` filter
LisoUseInAIKyrios Feb 2, 2025
08a5854
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Feb 5, 2025
7b51a99
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Feb 5, 2025
2d14bb0
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Feb 6, 2025
3b7b30c
refactor
LisoUseInAIKyrios Feb 6, 2025
0f693ef
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Feb 7, 2025
02e66a4
Remove unneeded annotations
LisoUseInAIKyrios Feb 8, 2025
55e3070
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Feb 8, 2025
91d19ad
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Feb 10, 2025
a0135eb
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Feb 11, 2025
f23834a
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Feb 11, 2025
9881f71
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Feb 13, 2025
e5bf3d0
fix floating point literals
LisoUseInAIKyrios Feb 13, 2025
042f16f
Unofficial 20.07 support
LisoUseInAIKyrios Feb 13, 2025
093b3b7
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Feb 13, 2025
2616ce2
refactor
LisoUseInAIKyrios Feb 13, 2025
bc40cc4
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Feb 18, 2025
6feba55
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Feb 18, 2025
b31b0eb
refactor: Use map instead of list to lookup resource ids
LisoUseInAIKyrios Feb 18, 2025
8421499
refactor: Use map resource lookup
LisoUseInAIKyrios Feb 18, 2025
58ab98f
fix: Remove deprecated and non functional legacy code
LisoUseInAIKyrios Feb 18, 2025
f82c817
refactor: Add method to check if a resource exists
LisoUseInAIKyrios Feb 18, 2025
fed59e1
refactor: Remove multi-threaded resource reading as it's faster witho…
LisoUseInAIKyrios Feb 19, 2025
3b64bf2
fix: Remove debugging code
LisoUseInAIKyrios Feb 19, 2025
2d18567
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Feb 19, 2025
0033e8d
refactor: Simplify
LisoUseInAIKyrios Feb 20, 2025
010f876
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Feb 20, 2025
8e160f1
refactor: Simplify
LisoUseInAIKyrios Feb 21, 2025
a1a5867
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Feb 22, 2025
2038f97
Simplify with instruction filters
LisoUseInAIKyrios Feb 22, 2025
c04b620
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Feb 22, 2025
ced3706
refactor
LisoUseInAIKyrios Feb 22, 2025
191a937
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Feb 22, 2025
4767127
Merge remote-tracking branch 'upstream/dev' into feat/patcher_instruc…
LisoUseInAIKyrios Feb 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import app.revanced.extension.youtube.settings.Settings;

/** @noinspection unused*/
@SuppressWarnings("unused")
public class DisableResumingStartupShortsPlayerPatch {

/**
Expand All @@ -11,4 +11,11 @@ public class DisableResumingStartupShortsPlayerPatch {
public static boolean disableResumingStartupShortsPlayer() {
return Settings.DISABLE_RESUMING_SHORTS_PLAYER.get();
}

/**
* Injection point.
*/
public static boolean disableResumingStartupShortsPlayer(boolean original) {
return original && !Settings.DISABLE_RESUMING_SHORTS_PLAYER.get();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public final class DownloadsPatch {
/**
* Injection point.
*/
public static void activityCreated(Activity mainActivity) {
public static void setMainActivity(Activity mainActivity) {
activityRef = new WeakReference<>(mainActivity);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,13 @@ public enum MiniplayerType {
MODERN_2(null, 2),
MODERN_3(null, 3),
/**
* Half broken miniplayer, that might be work in progress or left over abandoned code.
* Can force this type by editing the import/export settings.
* Works and is functional with 20.03+
*/
MODERN_4(null, 4);
MODERN_4(null, 4),
/**
* Half broken miniplayer, and in 20.02 and earlier is declared as type 4.
*/
MODERN_5(null, 5);

/**
* Legacy tablet hook value.
Expand Down Expand Up @@ -126,20 +129,21 @@ public boolean isModern() {
private static final boolean DRAG_AND_DROP_ENABLED =
CURRENT_TYPE.isModern() && Settings.MINIPLAYER_DRAG_AND_DROP.get();

private static final boolean HIDE_EXPAND_CLOSE_ENABLED =
Settings.MINIPLAYER_HIDE_EXPAND_CLOSE.get()
&& Settings.MINIPLAYER_HIDE_EXPAND_CLOSE.isAvailable();
private static final boolean HIDE_OVERLAY_BUTTONS_ENABLED =
Settings.MINIPLAYER_HIDE_OVERLAY_BUTTONS.get()
&& Settings.MINIPLAYER_HIDE_OVERLAY_BUTTONS.isAvailable();

private static final boolean HIDE_SUBTEXT_ENABLED =
(CURRENT_TYPE == MODERN_1 || CURRENT_TYPE == MODERN_3) && Settings.MINIPLAYER_HIDE_SUBTEXT.get();
(CURRENT_TYPE == MODERN_1 || CURRENT_TYPE == MODERN_3 || CURRENT_TYPE == MODERN_4)
&& Settings.MINIPLAYER_HIDE_SUBTEXT.get();

// 19.25 is last version that has forward/back buttons for phones,
// but buttons still show for tablets/foldable devices and they don't work well so always hide.
private static final boolean HIDE_REWIND_FORWARD_ENABLED = CURRENT_TYPE == MODERN_1
&& (VersionCheckPatch.IS_19_34_OR_GREATER || Settings.MINIPLAYER_HIDE_REWIND_FORWARD.get());

private static final boolean MINIPLAYER_ROUNDED_CORNERS_ENABLED =
Settings.MINIPLAYER_ROUNDED_CORNERS.get();
CURRENT_TYPE.isModern() && Settings.MINIPLAYER_ROUNDED_CORNERS.get();

private static final boolean MINIPLAYER_HORIZONTAL_DRAG_ENABLED =
DRAG_AND_DROP_ENABLED && Settings.MINIPLAYER_HORIZONTAL_DRAG.get();
Expand Down Expand Up @@ -172,11 +176,12 @@ public boolean isAvailable() {
}
}

public static final class MiniplayerHideExpandCloseAvailability implements Setting.Availability {
public static final class MiniplayerHideOverlayButtonsAvailability implements Setting.Availability {
@Override
public boolean isAvailable() {
MiniplayerType type = Settings.MINIPLAYER_TYPE.get();
return (!IS_19_20_OR_GREATER && (type == MODERN_1 || type == MODERN_3))
return type == MODERN_4
|| (!IS_19_20_OR_GREATER && (type == MODERN_1 || type == MODERN_3))
|| (!IS_19_26_OR_GREATER && type == MODERN_1
&& !Settings.MINIPLAYER_DOUBLE_TAP_ACTION.get() && !Settings.MINIPLAYER_DRAG_AND_DROP.get())
|| (IS_19_29_OR_GREATER && type == MODERN_3);
Expand Down Expand Up @@ -227,9 +232,13 @@ public static int getModernMiniplayerOverrideType(int original) {
/**
* Injection point.
*/
public static void adjustMiniplayerOpacity(ImageView view) {
public static void adjustMiniplayerOpacity(View view) {
if (CURRENT_TYPE == MODERN_1) {
view.setImageAlpha(OPACITY_LEVEL);
if (view instanceof ImageView imageView) {
imageView.setImageAlpha(OPACITY_LEVEL);
} else {
Logger.printException(() -> "Unknown miniplayer overlay view: " + view);
}
}
}

Expand All @@ -247,7 +256,7 @@ public static boolean getModernFeatureFlagsActiveOverride(boolean original) {
/**
* Injection point.
*/
public static boolean enableMiniplayerDoubleTapAction(boolean original) {
public static boolean getMiniplayerDoubleTapAction(boolean original) {
if (CURRENT_TYPE == DEFAULT) {
return original;
}
Expand All @@ -258,44 +267,55 @@ public static boolean enableMiniplayerDoubleTapAction(boolean original) {
/**
* Injection point.
*/
public static boolean enableMiniplayerDragAndDrop(boolean original) {
public static boolean getMiniplayerDragAndDrop(boolean original) {
if (CURRENT_TYPE == DEFAULT) {
return original;
}

return DRAG_AND_DROP_ENABLED;
}

/**
* Injection point.
*/
public static boolean getRoundedCorners(boolean original) {
if (CURRENT_TYPE == DEFAULT) {
return original;
}

return MINIPLAYER_ROUNDED_CORNERS_ENABLED;
}

/**
* Injection point.
*/
public static boolean setRoundedCorners(boolean original) {
if (CURRENT_TYPE.isModern()) {
return MINIPLAYER_ROUNDED_CORNERS_ENABLED;
public static boolean getHorizontalDrag(boolean original) {
if (CURRENT_TYPE == DEFAULT) {
return original;
}

return original;
return MINIPLAYER_HORIZONTAL_DRAG_ENABLED;
}

/**
* Injection point.
*/
public static int setMiniplayerDefaultSize(int original) {
if (CURRENT_TYPE.isModern()) {
return MINIPLAYER_SIZE;
public static boolean getMaximizeAnimation(boolean original) {
// This must be forced on if horizontal drag is enabled,
// otherwise the UI has visual glitches when maximizing the miniplayer.
if (MINIPLAYER_HORIZONTAL_DRAG_ENABLED) {
return true;
}

return original;
}


/**
* Injection point.
*/
public static boolean setHorizontalDrag(boolean original) {
public static int getMiniplayerDefaultSize(int original) {
if (CURRENT_TYPE.isModern()) {
return MINIPLAYER_HORIZONTAL_DRAG_ENABLED;
return MINIPLAYER_SIZE;
}

return original;
Expand All @@ -304,14 +324,23 @@ public static boolean setHorizontalDrag(boolean original) {
/**
* Injection point.
*/
public static void hideMiniplayerExpandClose(ImageView view) {
Utils.hideViewByRemovingFromParentUnderCondition(HIDE_EXPAND_CLOSE_ENABLED, view);
public static void hideMiniplayerExpandClose(View view) {
Utils.hideViewByRemovingFromParentUnderCondition(HIDE_OVERLAY_BUTTONS_ENABLED, view);
}

/**
* Injection point.
*/
public static void hideMiniplayerActionButton(View view) {
if (CURRENT_TYPE == MODERN_4) {
Utils.hideViewByRemovingFromParentUnderCondition(HIDE_OVERLAY_BUTTONS_ENABLED, view);
}
}

/**
* Injection point.
*/
public static void hideMiniplayerRewindForward(ImageView view) {
public static void hideMiniplayerRewindForward(View view) {
Utils.hideViewByRemovingFromParentUnderCondition(HIDE_REWIND_FORWARD_ENABLED, view);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,6 @@ public enum ShortsPlayerType {
REGULAR_PLAYER_FULLSCREEN
}

static {
if (!VersionCheckPatch.IS_19_46_OR_GREATER
&& Settings.SHORTS_PLAYER_TYPE.get() == ShortsPlayerType.REGULAR_PLAYER_FULLSCREEN) {
// User imported newer settings to an older app target.
Logger.printInfo(() -> "Resetting " + Settings.SHORTS_PLAYER_TYPE);
Settings.SHORTS_PLAYER_TYPE.resetToDefault();
}
}

private static WeakReference<Activity> mainActivityRef = new WeakReference<>(null);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,20 @@ private static boolean isFullScreenPatchIncluded() {

/**
* Injection point.
*
* Returns negated value.
*/
public static boolean openVideoFullscreenPortrait(boolean original) {
public static boolean doNotOpenVideoFullscreenPortrait(boolean original) {
Boolean openFullscreen = openNextVideoFullscreen;
if (openFullscreen != null) {
openNextVideoFullscreen = null;
return openFullscreen;
return !openFullscreen;
}

if (!isFullScreenPatchIncluded()) {
return false;
return original;
}

return Settings.OPEN_VIDEOS_FULLSCREEN_PORTRAIT.get();
return !Settings.OPEN_VIDEOS_FULLSCREEN_PORTRAIT.get();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ public class VersionCheckPatch {
public static final boolean IS_19_26_OR_GREATER = Utils.getAppVersionName().compareTo("19.26.00") >= 0;
public static final boolean IS_19_29_OR_GREATER = Utils.getAppVersionName().compareTo("19.29.00") >= 0;
public static final boolean IS_19_34_OR_GREATER = Utils.getAppVersionName().compareTo("19.34.00") >= 0;
public static final boolean IS_19_46_OR_GREATER = Utils.getAppVersionName().compareTo("19.46.00") >= 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -373,17 +373,6 @@ private static boolean shouldHideShortsFeedItems() {
};
}

/**
* Injection point. Only used if patching older than 19.03.
* This hook may be obsolete even for old versions
* as they now use a litho layout like newer versions.
*/
public static void hideShortsShelf(final View shortsShelfView) {
if (shouldHideShortsFeedItems()) {
Utils.hideViewByLayoutParams(shortsShelfView);
}
}

public static int getSoundButtonSize(int original) {
if (Settings.HIDE_SHORTS_SOUND_BUTTON.get()) {
return 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import static app.revanced.extension.youtube.patches.ChangeStartPagePatch.StartPage;
import static app.revanced.extension.youtube.patches.ExitFullscreenPatch.FullscreenMode;
import static app.revanced.extension.youtube.patches.ForceOriginalAudioPatch.ForceOriginalAudioAvailability;
import static app.revanced.extension.youtube.patches.MiniplayerPatch.MiniplayerHideExpandCloseAvailability;
import static app.revanced.extension.youtube.patches.MiniplayerPatch.MiniplayerHideOverlayButtonsAvailability;
import static app.revanced.extension.youtube.patches.MiniplayerPatch.MiniplayerHorizontalDragAvailability;
import static app.revanced.extension.youtube.patches.MiniplayerPatch.MiniplayerType;
import static app.revanced.extension.youtube.patches.MiniplayerPatch.MiniplayerType.MINIMAL;
Expand Down Expand Up @@ -156,8 +156,8 @@ public class Settings extends BaseSettings {
public static final BooleanSetting MINIPLAYER_DOUBLE_TAP_ACTION = new BooleanSetting("revanced_miniplayer_double_tap_action", TRUE, true, MINIPLAYER_ANY_MODERN);
public static final BooleanSetting MINIPLAYER_DRAG_AND_DROP = new BooleanSetting("revanced_miniplayer_drag_and_drop", TRUE, true, MINIPLAYER_ANY_MODERN);
public static final BooleanSetting MINIPLAYER_HORIZONTAL_DRAG = new BooleanSetting("revanced_miniplayer_horizontal_drag", FALSE, true, new MiniplayerHorizontalDragAvailability());
public static final BooleanSetting MINIPLAYER_HIDE_EXPAND_CLOSE = new BooleanSetting("revanced_miniplayer_hide_expand_close", FALSE, true, new MiniplayerHideExpandCloseAvailability());
public static final BooleanSetting MINIPLAYER_HIDE_SUBTEXT = new BooleanSetting("revanced_miniplayer_hide_subtext", FALSE, true, MINIPLAYER_TYPE.availability(MODERN_1, MODERN_3));
public static final BooleanSetting MINIPLAYER_HIDE_OVERLAY_BUTTONS = new BooleanSetting("revanced_miniplayer_hide_overlay_buttons", FALSE, true, new MiniplayerHideOverlayButtonsAvailability());
public static final BooleanSetting MINIPLAYER_HIDE_SUBTEXT = new BooleanSetting("revanced_miniplayer_hide_subtext", FALSE, true, MINIPLAYER_TYPE.availability(MODERN_1, MODERN_3, MODERN_4));
public static final BooleanSetting MINIPLAYER_HIDE_REWIND_FORWARD = new BooleanSetting("revanced_miniplayer_hide_rewind_forward", TRUE, true, MINIPLAYER_TYPE.availability(MODERN_1));
public static final BooleanSetting MINIPLAYER_ROUNDED_CORNERS = new BooleanSetting("revanced_miniplayer_rounded_corners", TRUE, true, MINIPLAYER_ANY_MODERN);
public static final IntegerSetting MINIPLAYER_WIDTH_DIP = new IntegerSetting("revanced_miniplayer_width_dip", 192, true, MINIPLAYER_ANY_MODERN);
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[versions]
revanced-patcher = "21.0.0"
revanced-patcher = "22.0.0"
# Tracking https://github.com/google/smali/issues/64.
#noinspection GradleDependency
smali = "3.0.5"
smali = "3.0.8"
# 8.3.0 causes java verifier error: https://github.com/ReVanced/revanced-patches/issues/2818.
#noinspection GradleDependency
agp = "8.2.2"
Expand Down
Loading
Loading