# ============================================================================
# AdSurge Custom Adapter for IronSource LevelPlay - Consumer ProGuard Rules
# These rules will be automatically applied to projects that use this AAR
# ============================================================================

# Keep all adapter classes (IronSource loads them via reflection)
# This covers all public/protected members including constructors and callbacks
-keep public class com.ironsource.adapters.custom.adsurge.AdSurge** {
    public *;
    protected *;
}

# Keep utility class and its public static methods
-keep public class com.ironsource.adapters.custom.adsurge.AdapterUtils {
    public static *;
}

# Keep annotations for runtime reflection
-keepattributes *Annotation*
-keepattributes Signature
-keepattributes Exceptions

# Keep line numbers for crash reporting
-keepattributes SourceFile,LineNumberTable

# Suppress warnings for missing classes (they are provided by the host app)
-dontwarn com.ironsource.mediationsdk.**
-dontwarn com.adsurge.adn.**
