# Consumer ProGuard / R8 rules for the BugScreen Android SDK.
# Applied automatically to host apps via consumerProguardFiles in build.gradle.kts.

# OpenAPI-generated Gson models. Retrofit's Gson converter deserialises
# responses reflectively, so all fields and the synthetic no-arg constructor
# must survive R8. The `{ *; }` wildcard also preserves enum `values()`,
# `valueOf()`, and `$VALUES` for any future generated enum types — do not
# tighten it to fields-only.
-keep class app.bugscreen.android.generated.models.** { *; }

# Retrofit needs these attributes to read generic return types on suspend
# functions, runtime annotations (@POST, @Part, @SerializedName), and
# enclosing/inner-class metadata used by its interface proxies.
-keepattributes Signature, *Annotation*, EnclosingMethod, InnerClasses

