Skip to content

Commit

Permalink
fix nesting
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Oct 27, 2024
1 parent 2096306 commit cfb459b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions docs/2_2_1_fingerprinting.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,11 @@ val patch = bytecodePatch {
>
> ```kt
> fingerprint(fuzzyPatternScanThreshhold = 2) {
> opcodes(
> Opcode.ICONST_0,
> null,
> Opcode.ICONST_1,
> Opcode.IRETURN,
> opcodes(
> Opcode.ICONST_0,
> null,
> Opcode.ICONST_1,
> Opcode.IRETURN,
> )
>}
> ```
Expand Down Expand Up @@ -247,7 +247,7 @@ you can match the fingerprint on the list of classes:
```kt
execute {
val match = showAdsFingerprint.match(classes) ?: throw PatchException("No match found")
}
}
```

- In a **single class**, if the fingerprint can match in a single known class
Expand All @@ -271,14 +271,14 @@ you can match the fingerprint on the list of classes:
```kt
execute {
val currentPlanFingerprint = fingerprint {
strings("free", "trial")
}
strings("free", "trial")
}

currentPlanFingerprint.match(adsFingerprintMatch.method)?.let { match ->
match.stringMatches.forEach { match ->
println("The index of the string '${match.string}' is ${match.index}")
}
} ?: throw PatchException("No match found")
match.stringMatches.forEach { match ->
println("The index of the string '${match.string}' is ${match.index}")
}
} ?: throw PatchException("No match found")
}
```

Expand Down

0 comments on commit cfb459b

Please sign in to comment.