23 lines
No EOL
721 B
Kotlin
23 lines
No EOL
721 B
Kotlin
package app.revanced.util.patch
|
|
|
|
import app.revanced.extensions.containsConstantInstructionValue
|
|
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
|
|
import com.android.tools.smali.dexlib2.Opcode
|
|
|
|
abstract class LiteralValueFingerprint(
|
|
returnType: String? = null,
|
|
accessFlags: Int? = null,
|
|
parameters: Iterable<String>? = null,
|
|
opcodes: Iterable<Opcode>? = null,
|
|
strings: Iterable<String>? = null,
|
|
literal: Long
|
|
) : MethodFingerprint(
|
|
returnType = returnType,
|
|
accessFlags = accessFlags,
|
|
parameters = parameters,
|
|
opcodes = opcodes,
|
|
strings = strings,
|
|
customFingerprint = { methodDef, _ ->
|
|
methodDef.containsConstantInstructionValue(literal)
|
|
}
|
|
) |