# Protobuf Lite: keep all generated message fields and enums
-keep class * extends com.google.protobuf.GeneratedMessageLite { *; }
-keep class * extends com.google.protobuf.GeneratedMessageLite$Builder { *; }
-keep class * extends com.google.protobuf.GeneratedMessageV3 { *; }
-keep class * extends com.google.protobuf.GeneratedMessageV3$Builder { *; }
-keep class * extends com.google.protobuf.ProtocolMessageEnum { *; }

# Keep SDK's own protobuf model classes
-keep class ai.spatius.avatarkit.model.** { *; }

# OpenTelemetry (OTLP exporter) references compile-time-optional Jackson /
# AutoValue classes that are not on the runtime classpath. R8 flags them as
# missing under release minification. Safe to ignore — these code paths are
# not reached by the SDK's default exporter. Without these, any consumer that
# enables R8 minification fails to build.
-dontwarn com.fasterxml.jackson.core.JsonFactory
-dontwarn com.fasterxml.jackson.core.JsonGenerator
-dontwarn com.google.auto.value.AutoValue$Builder
-dontwarn com.google.auto.value.AutoValue$CopyAnnotations
-dontwarn com.google.auto.value.AutoValue
