fix build error

This commit is contained in:
inotia00 2025-02-10 17:39:26 +09:00
parent 8218c93f17
commit a9258f848d
5 changed files with 22 additions and 39 deletions

View File

@ -108,12 +108,6 @@ public class PlayerPatch {
return colors;
}
public static boolean changeSeekBarPosition(boolean original) {
return SETTINGS_INITIALIZED
? CHANGE_SEEK_BAR_POSITION
: original;
}
public static boolean disableMiniPlayerGesture() {
return Settings.DISABLE_MINIPLAYER_GESTURE.get();
}

View File

@ -95,27 +95,6 @@ fun indexOfSpannableStringInstruction(method: Method) = method.indexOfFirstInstr
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(
name = "videoLengthFingerprint",
returnType = "V",

View File

@ -6,7 +6,6 @@ import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
import app.revanced.patcher.patch.bytecodePatch
import app.revanced.patcher.util.smali.ExternalLabel
import app.revanced.patches.shared.extension.Constants.PATCHES_PATH
import app.revanced.patches.shared.startVideoInformerFingerprint
import app.revanced.util.fingerprint.methodOrThrow
private const val EXTENSION_CLASS_DESCRIPTOR =

View File

@ -3,6 +3,28 @@ package app.revanced.patches.shared.captions
import app.revanced.util.fingerprint.legacyFingerprint
import app.revanced.util.or
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(
name = "storyboardRendererDecoderRecommendedLevelFingerprint",

View File

@ -48,17 +48,6 @@ fun indexOfSpannedCharSequenceInstruction(method: Method) =
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(
name = "layoutConstructorFingerprint",
returnType = "V",