From 7b373f1bfc3ab95a2d2e7f1805a7309dbe337ea5 Mon Sep 17 00:00:00 2001 From: gronod <1+gronod@noreply.localhost> Date: Sun, 14 Jun 2026 12:03:16 +0100 Subject: [PATCH 1/6] Update app/proguard-rules.pro --- app/proguard-rules.pro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index bda9751..9b11469 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -23,7 +23,9 @@ } -if @kotlinx.serialization.Serializable class ** -keepclassmembers class <1> { - static **$$serializerInstance; +# Keep Kotlinx Serialization generated serializer instances +-keepclassmembers class ** { + static ** \]serializerInstance; kotlinx.serialization.KSerializer serializer(...); } -- 2.39.5 From c64aa8181c4c296be069144da44fe11166812d50 Mon Sep 17 00:00:00 2001 From: gronod <1+gronod@noreply.localhost> Date: Sun, 14 Jun 2026 12:04:23 +0100 Subject: [PATCH 2/6] Delete app/proguard-rules.pro --- app/proguard-rules.pro | 45 ------------------------------------------ 1 file changed, 45 deletions(-) delete mode 100644 app/proguard-rules.pro diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro deleted file mode 100644 index 9b11469..0000000 --- a/app/proguard-rules.pro +++ /dev/null @@ -1,45 +0,0 @@ -# ProGuard rules for ESP32 ALDL Dashboard -# Compose + Room + Kotlin Serialization + Navigation3 - -# --- General --- --keepattributes *Annotation* --keepattributes Signature --keepattributes Exceptions --keepattributes InnerClasses --keepattributes EnclosingMethod --keepattributes SourceFile,LineNumberTable --renamesourcefileattribute SourceFile - -# --- Room --- --keep class * extends androidx.room.RoomDatabase --keep class * { @androidx.room.* ; } --dontwarn androidx.room.paging.** - -# --- Kotlin Serialization --- --keep class kotlinx.serialization.** { *; } --keepclassmembers class * { - @kotlinx.serialization.SerialName ; - @kotlinx.serialization.Serializable ; -} --if @kotlinx.serialization.Serializable class ** --keepclassmembers class <1> { -# Keep Kotlinx Serialization generated serializer instances --keepclassmembers class ** { - static ** \]serializerInstance; - kotlinx.serialization.KSerializer serializer(...); -} - -# --- Compose / Navigation --- --keep class androidx.navigation3.** { *; } --keep class * implements androidx.navigation3.NavigationUi { *; } --keepclassmembers class * { - @androidx.compose.runtime.Composable ; -} - -# --- DataStore / Preferences --- --keep class androidx.datastore.** { *; } --keep class * implements androidx.datastore.core.Serializer { *; } - -# --- Application classes (auto-generated, keep to be safe) --- --keep class com.gronod.esp32aldldashboard.** { *; } --keepclassmembers class com.gronod.esp32aldldashboard.** { *; } -- 2.39.5 From 452ed50810e21166cdff8410cc5f9c53cdf79cf6 Mon Sep 17 00:00:00 2001 From: gronod <1+gronod@noreply.localhost> Date: Sun, 14 Jun 2026 12:04:51 +0100 Subject: [PATCH 3/6] 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..49a48f9 --- /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 for now) --- +-keep class com.gronod.esp32aldldashboard.** { *; } \ No newline at end of file -- 2.39.5 From 60ec1e4bddd3cfed09dcdfc36f9766bac5210f21 Mon Sep 17 00:00:00 2001 From: gronod <1+gronod@noreply.localhost> Date: Sun, 14 Jun 2026 12:07:34 +0100 Subject: [PATCH 4/6] Delete app/proguard-rules.pro --- app/proguard-rules.pro | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 app/proguard-rules.pro diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro deleted file mode 100644 index 49a48f9..0000000 --- a/app/proguard-rules.pro +++ /dev/null @@ -1,31 +0,0 @@ -# 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 for now) --- --keep class com.gronod.esp32aldldashboard.** { *; } \ No newline at end of file -- 2.39.5 From 8e5c46fcc9bd172c15044fd50fd7fca9abb41631 Mon Sep 17 00:00:00 2001 From: gronod <1+gronod@noreply.localhost> Date: Sun, 14 Jun 2026 12:07:53 +0100 Subject: [PATCH 5/6] 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..43e5648 --- /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 for now) --- +-keep class com.gronod.esp32aldldashboard.** { *; } \ No newline at end of file -- 2.39.5 From c68e4e6f6053143cdd778a41ab43f6c06f62aa8e Mon Sep 17 00:00:00 2001 From: gronod <1+gronod@noreply.localhost> Date: Sun, 14 Jun 2026 12:10:19 +0100 Subject: [PATCH 6/6] Update app/proguard-rules.pro --- app/proguard-rules.pro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 43e5648..49a48f9 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -15,7 +15,7 @@ # --- Kotlin Serialization --- -keep class kotlinx.serialization.** { *; } -keepclassmembers class ** { - static ** \[ serializerInstance; + static ** \]serializerInstance; } # --- Compose / Navigation3 --- -- 2.39.5