chore: merge branch dev to main (#199)

This commit is contained in:
oSumAtrIX 2023-07-01 02:41:21 +02:00 committed by GitHub
commit 57f3036a96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 1 deletions

View file

@ -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) ## [11.0.3](https://github.com/revanced/revanced-patcher/compare/v11.0.2...v11.0.3) (2023-06-30)

View file

@ -1,2 +1,2 @@
kotlin.code.style = official kotlin.code.style = official
version = 11.0.3 version = 11.0.4-dev.1

View file

@ -389,6 +389,8 @@ class Patcher(private val options: PatcherOptions) {
if (stopOnError) return@sequence if (stopOnError) return@sequence
} }
} }
MethodFingerprint.clearFingerprintResolutionLookupMaps()
} }
} }

View file

@ -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]. * Resolve a list of [MethodFingerprint] using the lookup map built by [initializeFingerprintResolutionLookupMaps].
* *