mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-11 13:56:16 +00:00
fix: Do not set patch fields if they are empty
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user