mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-05 14:54:25 +02:00
fix: Do not set patch fields if they are empty
This commit is contained in:
parent
0447fa9c28
commit
a76ac04214
@ -65,7 +65,8 @@ sealed class Patch<out T : Context<*>> {
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user