-
-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fixed writer & signature resolver, improved tests & speed, minor…
… refactoring
- Loading branch information
Showing
8 changed files
with
126 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...cher/resolver/MethodResolverScanResult.kt → ...anced/patcher/resolver/PatternScanData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
src/main/kotlin/app/revanced/patcher/signature/MethodSignatureScanResult.kt
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
src/main/kotlin/app/revanced/patcher/signature/SignatureResolverResult.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package app.revanced.patcher.signature | ||
|
||
import app.revanced.patcher.proxy.ClassProxy | ||
import app.revanced.patcher.resolver.SignatureResolver | ||
|
||
data class SignatureResolverResult( | ||
val definingClassProxy: ClassProxy, | ||
val resolvedMethodName: String, | ||
val scanData: PatternScanResult? | ||
) { | ||
@Suppress("Unused") // TODO(Sculas): remove this when we have coverage for this method. | ||
fun findParentMethod(signature: MethodSignature): SignatureResolverResult? { | ||
return SignatureResolver.resolveFromProxy(definingClassProxy, signature) | ||
} | ||
} | ||
|
||
data class PatternScanResult( | ||
val startIndex: Int, | ||
val endIndex: Int | ||
) |
Oops, something went wrong.