# Consumer ProGuard rules shipped inside the AAR; applied automatically in the
# host app's own R8/minification pass. Mirrors the public keep set in
# opensdk/proguard-rules.pro so the public SDK API survives shrinking in the
# consumer build too.

-keepattributes RuntimeVisibleAnnotations,RuntimeVisibleParameterAnnotations,RuntimeVisibleTypeAnnotations,AnnotationDefault,Signature,InnerClasses,EnclosingMethod,Exceptions

# Keep the entire public SDK API (top-level package only) so it survives R8.
-keep public class cn.happyoyster.opensdk.* { *; }
-keep public interface cn.happyoyster.opensdk.* { *; }

# kotlinx.serialization ships its own consumer rules; nothing extra needed here.

# AliVCSDK_ARTC: keep all JNI-bound classes to prevent R8 from stripping them.
-keep class com.alivc.** { *; }
-keep class com.aliyun.** { *; }
-dontwarn com.alivc.**
-dontwarn com.aliyun.**
