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,