fix: leftover TODOs

Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
oSumAtrIX 2022-05-07 21:13:28 +02:00
parent 7a6025a278
commit 5b1139ce43
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -52,7 +52,6 @@ internal class Patcher {
}
private fun app.revanced.patcher.Patcher.addPatchesFiltered() {
// TODO: get package metadata (outside of this method) for apk file which needs to be patched
val packageName = this.packageName
val packageVersion = this.packageVersion
@ -64,7 +63,6 @@ internal class Patcher {
Patches.loadPatches().forEach patch@{
val patch = it()
// TODO: filter out incompatible patches with package metadata
val filterOutPatches = true
if (filterOutPatches && !patch.metadata.compatiblePackages.any { packageMetadata ->
packageMetadata.name == packageName && packageMetadata.versions.any {