From d862172d780dac1f25b022f369dee97ab35169a5 Mon Sep 17 00:00:00 2001 From: M57 <41645758+Hy4ri@users.noreply.github.com> Date: Sat, 20 Jun 2026 17:54:58 +0300 Subject: [PATCH] fix(nav): keep NavKey implementation names in proguard (#174) Avoid obfuscating screen classes/objects since their simpleNames are matched for bottom nav setup. --- app/proguard-rules.pro | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 3774dc00..64a6f953 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -46,3 +46,8 @@ # ── BuildConfig ─────────────────────────────────────────────────────────── -keep class com.m57.hermescontrol.BuildConfig { *; } + +# ── Navigation (NavKey Names) ───────────────────────────────────────────── +# Keep screen object class names because their simpleNames are used for bottom nav selection and storage. +-keep class * implements androidx.navigation3.runtime.NavKey { *; } +