# Project-specific R8/ProGuard rules for release builds. # Keep reflection/generic metadata used by Retrofit + Moshi. -keepattributes Signature,InnerClasses,EnclosingMethod -keepattributes RuntimeVisibleAnnotations,RuntimeVisibleParameterAnnotations,AnnotationDefault -keep class kotlin.Metadata { *; } # Keep Retrofit service interfaces and HTTP method annotations. -keep,allowobfuscation interface * { @retrofit2.http.* ; } # Keep app DTO/request/response models used via Moshi reflection. -keep class de.harheimertc.data.*Dto { *; } -keep class de.harheimertc.data.*Request { *; } -keep class de.harheimertc.data.*Response { *; } # Keep fields annotated with @Json names. -keepclassmembers class * { @com.squareup.moshi.Json ; }