diff --git a/CHANGELOG.md b/CHANGELOG.md index 52eb891..a07bb1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [11.0.4-dev.1](https://github.com/revanced/revanced-patcher/compare/v11.0.3...v11.0.4-dev.1) (2023-07-01) + + +### Bug Fixes + +* clear method lookup maps ([#198](https://github.com/revanced/revanced-patcher/issues/198)) ([9d81baf](https://github.com/revanced/revanced-patcher/commit/9d81baf4b4ca7514f8a1009e72218638609a7c7f)) + ## [11.0.3](https://github.com/revanced/revanced-patcher/compare/v11.0.2...v11.0.3) (2023-06-30) diff --git a/gradle.properties b/gradle.properties index 0b107df..9c2eee4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ kotlin.code.style = official -version = 11.0.3 +version = 11.0.4-dev.1 diff --git a/src/main/kotlin/app/revanced/patcher/Patcher.kt b/src/main/kotlin/app/revanced/patcher/Patcher.kt index c774235..0865c62 100644 --- a/src/main/kotlin/app/revanced/patcher/Patcher.kt +++ b/src/main/kotlin/app/revanced/patcher/Patcher.kt @@ -389,6 +389,8 @@ class Patcher(private val options: PatcherOptions) { if (stopOnError) return@sequence } } + + MethodFingerprint.clearFingerprintResolutionLookupMaps() } } diff --git a/src/main/kotlin/app/revanced/patcher/fingerprint/method/impl/MethodFingerprint.kt b/src/main/kotlin/app/revanced/patcher/fingerprint/method/impl/MethodFingerprint.kt index ba19e8d..3921827 100644 --- a/src/main/kotlin/app/revanced/patcher/fingerprint/method/impl/MethodFingerprint.kt +++ b/src/main/kotlin/app/revanced/patcher/fingerprint/method/impl/MethodFingerprint.kt @@ -138,6 +138,15 @@ abstract class MethodFingerprint( } } + /** + * Clears the internal lookup maps created in [initializeFingerprintResolutionLookupMaps] + */ + internal fun clearFingerprintResolutionLookupMaps() { + methods.clear() + methodSignatureLookupMap.clear() + methodStringsLookupMap.clear() + } + /** * Resolve a list of [MethodFingerprint] using the lookup map built by [initializeFingerprintResolutionLookupMaps]. *