From 189f719720551f36c6e006c45558fe5ae46ca4f8 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Mon, 7 Aug 2023 11:50:42 +0400 Subject: [PATCH] feat(YouTube - Debug): Logging of layout proto buffer strings (#2759) --- .../youtube/misc/debugging/patch/DebuggingPatch.kt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/debugging/patch/DebuggingPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/debugging/patch/DebuggingPatch.kt index 8993ae107..c3f1b7edd 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/debugging/patch/DebuggingPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/debugging/patch/DebuggingPatch.kt @@ -32,6 +32,15 @@ class DebuggingPatch : ResourcePatch { StringResource("revanced_debug_summary_on", "Debug logs are enabled"), StringResource("revanced_debug_summary_off", "Debug logs are disabled") ), + SwitchPreference( + "revanced_debug_protobuffer", + StringResource( + "revanced_debug_protobuffer_title", + "Log protocol buffer" + ), + StringResource("revanced_debug_protobuffer_summary_on", "Debug logs include proto buffer"), + StringResource("revanced_debug_protobuffer_summary_off", "Debug logs do not include proto buffer") + ), SwitchPreference( "revanced_debug_stacktrace", StringResource(