From bc152e11df8abdfb28664b557f8bd7594bf627d2 Mon Sep 17 00:00:00 2001 From: MarcaDian <152095496+MarcaDian@users.noreply.github.com> Date: Thu, 10 Sep 2026 17:13:00 +0300 Subject: [PATCH] chore: Include the patch category in the generated patches list (#60) --- patches/src/main/kotlin/util/PatchListGenerator.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/patches/src/main/kotlin/util/PatchListGenerator.kt b/patches/src/main/kotlin/util/PatchListGenerator.kt index 2e4a0c036..721f50585 100644 --- a/patches/src/main/kotlin/util/PatchListGenerator.kt +++ b/patches/src/main/kotlin/util/PatchListGenerator.kt @@ -45,6 +45,7 @@ private fun generatePatchList(version: String, patches: Set>) { name = patch.name!!, description = patch.description, default = patch.default, + category = patch.category, dependencies = patch.dependencies.map { it.javaClass.simpleName }, // Map each Compatibility to a JsonCompatibility object with full metadata. // Patches with null compatiblePackages are universal (apply to any app). @@ -107,6 +108,8 @@ private class JsonPatch( val name: String? = null, val description: String? = null, val default: Boolean = true, + /** Null when the patch declares no category and is left ungrouped. */ + val category: String? = null, val dependencies: List, /** Null means the patch is universal and applies to any app. */ val compatiblePackages: List? = null,