From 4855712da5df3d24a58534a2d097d86f31cc87b1 Mon Sep 17 00:00:00 2001 From: gronod <1+gronod@noreply.localhost> Date: Sun, 14 Jun 2026 12:06:08 +0100 Subject: [PATCH] Add app/proguard-rules.pro --- app/proguard-rules.pro | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 app/proguard-rules.pro diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000..a45c7ef --- /dev/null +++ b/app/proguard-rules.pro @@ -0,0 +1,31 @@ +# ProGuard rules for ESP32 ALDL Dashboard +# Compose + Room + Kotlin Serialization + Navigation3 + +# --- General --- +-keepattributes *Annotation* +-keepattributes Signature +-keepattributes InnerClasses +-keepattributes EnclosingMethod + +# --- Room --- +-keep class * extends androidx.room.RoomDatabase +-keep class * { @androidx.room.* ; } +-dontwarn androidx.room.paging.** + +# --- Kotlin Serialization --- +-keep class kotlinx.serialization.** { *; } +-keepclassmembers class ** { + static ** $$serializerInstance; +} + +# --- Compose / Navigation3 --- +-keep class androidx.navigation3.** { *; } +-keepclassmembers class * { + @androidx.compose.runtime.Composable ; +} + +# --- DataStore --- +-keep class androidx.datastore.** { *; } + +# --- Keep all app classes (safe starting point) --- +-keep class com.gronod.esp32aldldashboard.** { *; } \ No newline at end of file