diff --git a/src/main/kotlin/app/revanced/patcher/patch/Patch.kt b/src/main/kotlin/app/revanced/patcher/patch/Patch.kt index c48939c..f962505 100644 --- a/src/main/kotlin/app/revanced/patcher/patch/Patch.kt +++ b/src/main/kotlin/app/revanced/patcher/patch/Patch.kt @@ -65,7 +65,8 @@ sealed class Patch> { name = annotation.name.ifEmpty { null } description = annotation.description.ifEmpty { null } compatiblePackages = annotation.compatiblePackages - .map { CompatiblePackage(it.name, it.versions.toSet()) }.toSet() + .map { CompatiblePackage(it.name, it.versions.toSet().ifEmpty { null }) } + .toSet().ifEmpty { null } dependencies = annotation.dependencies.toSet().ifEmpty { null } use = annotation.use requiresIntegrations = annotation.requiresIntegrations