mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-02 05:54:26 +02:00
refactor: remove all parameter names
This commit is contained in:
parent
c612676543
commit
e6086511e5
@ -32,30 +32,30 @@ import org.jf.dexlib2.immutable.value.ImmutableFieldEncodedValue
|
|||||||
import org.jf.dexlib2.util.Preconditions
|
import org.jf.dexlib2.util.Preconditions
|
||||||
|
|
||||||
class ExamplePatch : Patch(
|
class ExamplePatch : Patch(
|
||||||
metadata = PatchMetadata(
|
PatchMetadata(
|
||||||
shortName = "example-patch",
|
"example-patch",
|
||||||
name = "ReVanced example patch",
|
"ReVanced example patch",
|
||||||
description = "A demonstrative patch to feature the core features of the ReVanced patcher",
|
"A demonstrative patch to feature the core features of the ReVanced patcher",
|
||||||
compatiblePackages = listOf("com.example.examplePackage"),
|
listOf("com.example.examplePackage"),
|
||||||
version = "0.0.1"
|
"0.0.1"
|
||||||
),
|
),
|
||||||
signatures = setOf(
|
setOf(
|
||||||
MethodSignature(
|
MethodSignature(
|
||||||
MethodSignatureMetadata(
|
MethodSignatureMetadata(
|
||||||
name = "Example signature",
|
"Example signature",
|
||||||
methodMetadata = MethodMetadata(
|
MethodMetadata(
|
||||||
definingClass = "TestClass",
|
"TestClass",
|
||||||
name = "main",
|
"main",
|
||||||
),
|
),
|
||||||
patternScanMethod = PatternScanMethod.Fuzzy(1),
|
PatternScanMethod.Fuzzy(1),
|
||||||
compatiblePackages = listOf("com.example.examplePackage"),
|
listOf("com.example.examplePackage"),
|
||||||
description = "The main method of TestClass",
|
"The main method of TestClass",
|
||||||
version = "1.0.0"
|
"1.0.0"
|
||||||
),
|
),
|
||||||
returnType = "V",
|
"V",
|
||||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.STATIC,
|
AccessFlags.PUBLIC or AccessFlags.STATIC,
|
||||||
methodParameters = listOf("[L"),
|
listOf("[L"),
|
||||||
opcodes = listOf(
|
listOf(
|
||||||
Opcode.SGET_OBJECT,
|
Opcode.SGET_OBJECT,
|
||||||
null, // Testing unknown opcodes.
|
null, // Testing unknown opcodes.
|
||||||
Opcode.INVOKE_STATIC, // This is intentionally wrong to test the Fuzzy resolver.
|
Opcode.INVOKE_STATIC, // This is intentionally wrong to test the Fuzzy resolver.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user