mirror of
https://github.com/ReVanced/revanced-library.git
synced 2026-01-30 22:51:03 +00:00
fix: Differentiate no package compatibility to any version compatibility
This commit is contained in:
@@ -67,6 +67,9 @@ object PatchUtils {
|
||||
.flatMap { it.compatiblePackages ?: emptyList() }
|
||||
.let(::filterWantedPackages)
|
||||
.forEach { compatiblePackage ->
|
||||
if (compatiblePackage.versions?.isEmpty() == true)
|
||||
return@forEach
|
||||
|
||||
val versionMap = getOrPut(compatiblePackage.name) { linkedMapOf() }
|
||||
|
||||
compatiblePackage.versions?.let { versions ->
|
||||
|
||||
Reference in New Issue
Block a user