#########################################
# Evita que el consumidor rompa tu SDK
#########################################

-keep class am.mediastre.mediastreamplatformsdkandroid.** {
    public *;
}

# Annotations y firmas
-keepattributes *Annotation*
-keepattributes Signature,EnclosingMethod,InnerClasses,SourceFile,LineNumberTable

# Coroutines
-dontwarn kotlinx.coroutines.**
-keep class kotlinx.coroutines.** { *; }

# Retrofit
-dontwarn retrofit2.**
-keep class retrofit2.** { *; }

# Gson
-dontwarn com.google.gson.**
-keep class com.google.gson.** { *; }

# OkHttp
-dontwarn okhttp3.**
-keep class okhttp3.** { *; }

# Glide
-keep public class * implements com.bumptech.glide.module.GlideModule
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** { *; }
-keep class com.bumptech.glide.** { *; }
-dontwarn com.bumptech.glide.**

# EventBus
-keepclassmembers class ** {
    public void onEvent*(**);
}

# Media3 (ExoPlayer)
-keep class androidx.media3.** { *; }
-dontwarn androidx.media3.**

# Permitir reflexión básica
-keepclassmembers class * {
    public <init>(android.content.Context);
}
