mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-05 23:04: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 }
|
name = annotation.name.ifEmpty { null }
|
||||||
description = annotation.description.ifEmpty { null }
|
description = annotation.description.ifEmpty { null }
|
||||||
compatiblePackages = annotation.compatiblePackages
|
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 }
|
dependencies = annotation.dependencies.toSet().ifEmpty { null }
|
||||||
use = annotation.use
|
use = annotation.use
|
||||||
requiresIntegrations = annotation.requiresIntegrations
|
requiresIntegrations = annotation.requiresIntegrations
|
||||||
|
Loading…
x
Reference in New Issue
Block a user