Update app/proguard-rules.pro #13

Merged
gronod merged 6 commits from gronod-patch-1 into main 2026-06-14 12:19:39 +01:00
+6 -18
View File
@@ -4,11 +4,8 @@
# --- General ---
-keepattributes *Annotation*
-keepattributes Signature
-keepattributes Exceptions
-keepattributes InnerClasses
-keepattributes EnclosingMethod
-keepattributes SourceFile,LineNumberTable
-renamesourcefileattribute SourceFile
# --- Room ---
-keep class * extends androidx.room.RoomDatabase
@@ -17,27 +14,18 @@
# --- Kotlin Serialization ---
-keep class kotlinx.serialization.** { *; }
-keepclassmembers class * {
@kotlinx.serialization.SerialName <fields>;
@kotlinx.serialization.Serializable <fields>;
}
-if @kotlinx.serialization.Serializable class **
-keepclassmembers class <1> {
static **$$serializerInstance;
kotlinx.serialization.KSerializer serializer(...);
-keepclassmembers class ** {
static ** \]serializerInstance;
}
# --- Compose / Navigation ---
# --- Compose / Navigation3 ---
-keep class androidx.navigation3.** { *; }
-keep class * implements androidx.navigation3.NavigationUi { *; }
-keepclassmembers class * {
@androidx.compose.runtime.Composable <methods>;
}
# --- DataStore / Preferences ---
# --- DataStore ---
-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.** { *; }
# --- Keep all app classes (safe for now) ---
-keep class com.gronod.esp32aldldashboard.** { *; }