mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-09-20 04:53:43 +02:00
fix: Do not set patch fields if they are empty
This commit is contained in:
parent
0447fa9c28
commit
a76ac04214
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue