mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-04-30 06:34:37 +02:00
fix build error
This commit is contained in:
parent
8218c93f17
commit
a9258f848d
@ -108,12 +108,6 @@ public class PlayerPatch {
|
|||||||
return colors;
|
return colors;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean changeSeekBarPosition(boolean original) {
|
|
||||||
return SETTINGS_INITIALIZED
|
|
||||||
? CHANGE_SEEK_BAR_POSITION
|
|
||||||
: original;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean disableMiniPlayerGesture() {
|
public static boolean disableMiniPlayerGesture() {
|
||||||
return Settings.DISABLE_MINIPLAYER_GESTURE.get();
|
return Settings.DISABLE_MINIPLAYER_GESTURE.get();
|
||||||
}
|
}
|
||||||
|
@ -95,27 +95,6 @@ fun indexOfSpannableStringInstruction(method: Method) = method.indexOfFirstInstr
|
|||||||
getReference<MethodReference>()?.toString() == SPANNABLE_STRING_REFERENCE
|
getReference<MethodReference>()?.toString() == SPANNABLE_STRING_REFERENCE
|
||||||
}
|
}
|
||||||
|
|
||||||
internal val startVideoInformerFingerprint = legacyFingerprint(
|
|
||||||
name = "startVideoInformerFingerprint",
|
|
||||||
returnType = "V",
|
|
||||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
|
||||||
opcodes = listOf(
|
|
||||||
Opcode.INVOKE_INTERFACE,
|
|
||||||
Opcode.RETURN_VOID
|
|
||||||
),
|
|
||||||
strings = listOf("pc"),
|
|
||||||
customFingerprint = { method, _ ->
|
|
||||||
method.implementation
|
|
||||||
?.instructions
|
|
||||||
?.withIndex()
|
|
||||||
?.filter { (_, instruction) ->
|
|
||||||
instruction.opcode == Opcode.CONST_STRING
|
|
||||||
}
|
|
||||||
?.map { (index, _) -> index }
|
|
||||||
?.size == 1
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
internal val videoLengthFingerprint = legacyFingerprint(
|
internal val videoLengthFingerprint = legacyFingerprint(
|
||||||
name = "videoLengthFingerprint",
|
name = "videoLengthFingerprint",
|
||||||
returnType = "V",
|
returnType = "V",
|
||||||
|
@ -6,7 +6,6 @@ import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
|
|||||||
import app.revanced.patcher.patch.bytecodePatch
|
import app.revanced.patcher.patch.bytecodePatch
|
||||||
import app.revanced.patcher.util.smali.ExternalLabel
|
import app.revanced.patcher.util.smali.ExternalLabel
|
||||||
import app.revanced.patches.shared.extension.Constants.PATCHES_PATH
|
import app.revanced.patches.shared.extension.Constants.PATCHES_PATH
|
||||||
import app.revanced.patches.shared.startVideoInformerFingerprint
|
|
||||||
import app.revanced.util.fingerprint.methodOrThrow
|
import app.revanced.util.fingerprint.methodOrThrow
|
||||||
|
|
||||||
private const val EXTENSION_CLASS_DESCRIPTOR =
|
private const val EXTENSION_CLASS_DESCRIPTOR =
|
||||||
|
@ -3,6 +3,28 @@ package app.revanced.patches.shared.captions
|
|||||||
import app.revanced.util.fingerprint.legacyFingerprint
|
import app.revanced.util.fingerprint.legacyFingerprint
|
||||||
import app.revanced.util.or
|
import app.revanced.util.or
|
||||||
import com.android.tools.smali.dexlib2.AccessFlags
|
import com.android.tools.smali.dexlib2.AccessFlags
|
||||||
|
import com.android.tools.smali.dexlib2.Opcode
|
||||||
|
|
||||||
|
internal val startVideoInformerFingerprint = legacyFingerprint(
|
||||||
|
name = "startVideoInformerFingerprint",
|
||||||
|
returnType = "V",
|
||||||
|
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
||||||
|
opcodes = listOf(
|
||||||
|
Opcode.INVOKE_INTERFACE,
|
||||||
|
Opcode.RETURN_VOID
|
||||||
|
),
|
||||||
|
strings = listOf("pc"),
|
||||||
|
customFingerprint = { method, _ ->
|
||||||
|
method.implementation
|
||||||
|
?.instructions
|
||||||
|
?.withIndex()
|
||||||
|
?.filter { (_, instruction) ->
|
||||||
|
instruction.opcode == Opcode.CONST_STRING
|
||||||
|
}
|
||||||
|
?.map { (index, _) -> index }
|
||||||
|
?.size == 1
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
internal val storyboardRendererDecoderRecommendedLevelFingerprint = legacyFingerprint(
|
internal val storyboardRendererDecoderRecommendedLevelFingerprint = legacyFingerprint(
|
||||||
name = "storyboardRendererDecoderRecommendedLevelFingerprint",
|
name = "storyboardRendererDecoderRecommendedLevelFingerprint",
|
||||||
|
@ -48,17 +48,6 @@ fun indexOfSpannedCharSequenceInstruction(method: Method) =
|
|||||||
reference.returnType == "Ljava/lang/CharSequence;"
|
reference.returnType == "Ljava/lang/CharSequence;"
|
||||||
}
|
}
|
||||||
|
|
||||||
internal val engagementPanelBuilderFingerprint = legacyFingerprint(
|
|
||||||
name = "engagementPanelBuilderFingerprint",
|
|
||||||
returnType = "L",
|
|
||||||
accessFlags = AccessFlags.PRIVATE or AccessFlags.FINAL,
|
|
||||||
parameters = listOf("L", "L", "Z", "Z"),
|
|
||||||
strings = listOf(
|
|
||||||
"EngagementPanelController: cannot show EngagementPanel before EngagementPanelController.init() has been called.",
|
|
||||||
"[EngagementPanel] Cannot show EngagementPanel before EngagementPanelController.init() has been called."
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
internal val layoutConstructorFingerprint = legacyFingerprint(
|
internal val layoutConstructorFingerprint = legacyFingerprint(
|
||||||
name = "layoutConstructorFingerprint",
|
name = "layoutConstructorFingerprint",
|
||||||
returnType = "V",
|
returnType = "V",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user