chore: fix spotless apply

This commit is contained in:
Skylot
2023-04-14 22:23:23 +01:00
parent 19cf22b9e3
commit 1d6ebed7e5
4 changed files with 34 additions and 33 deletions
@@ -7,7 +7,7 @@ import jadx.core.dex.nodes.MethodNode
val renamesMap = mapOf(
"specificString" to "newMethodName",
"AA6" to "aa6Method"
"AA6" to "aa6Method",
)
val jadx = getJadxInstance()
@@ -4,7 +4,7 @@ val testOpt = jadx.options.registerString(
"test",
"Simple string option",
values = listOf("first", "second"),
defaultValue = "first"
defaultValue = "first",
)
val numOpt = jadx.options.registerInt("number", "Number option").validate { it >= 0 }
@@ -14,10 +14,10 @@ import jadx.core.dex.instructions.args.RegisterArg
val jadx = getJadxInstance()
val mthSignature = "com.xshield.aa.iIiIiiiiII(Ljava/lang/String;)Ljava/lang/String;"
jadx.replace.insns { mth, insn ->
if (insn is InvokeNode
&& insn.callMth.rawFullId == "com.xshield.aa.iIiIiiiiII(Ljava/lang/String;)Ljava/lang/String;"
) {
if (insn is InvokeNode && insn.callMth.rawFullId == mthSignature) {
val str = getConstStr(insn.getArg(0))
if (str != null) {
val resultStr = decode(str)