22 lines
755 B
Prolog
22 lines
755 B
Prolog
# 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.* <methods>;
|
|
}
|
|
|
|
# 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 <fields>;
|
|
}
|