# Appodeal SDK fix proguard rules
# Kotlin enum ExceptionInInitializerError on gradle plugin 4.x.x
# https://appodeal.atlassian.net/browse/SDK-4557
-keepclassmembers class **$WhenMappings {
    <fields>;
}
-keep class com.google.android.libraries.ads.mobile.sdk.** { *; }
-keep class com.google.android.gms.ads.** { *; }
-keep public class com.appodeal.ads.adapters.admob.** { *; }
-keep public class com.appodeal.ads.adapters.gam.** { *; }

# AppLovin MAX resolves these adapters by their fully qualified name, so they must survive R8 —
# both in this module's own release build and in the publisher's app.
-keep public class com.applovin.mediation.adapters.GoogleMediationAdapter { *; }
-keep public class com.applovin.mediation.adapters.GoogleMediationAdapter$** { *; }
-keep public class com.applovin.mediation.adapters.GoogleAdManagerMediationAdapter { *; }
-keep public class com.applovin.mediation.adapters.GoogleAdManagerMediationAdapter$** { *; }
-keep public class com.applovin.mediation.adapters.GoogleNextGenMediationAdapterBase { *; }
# The AppLovin SDK is a compileOnly dependency of this module: when the publisher does not use MAX
# it is simply absent, and the adapters above are never loaded. Suppress the missing-class warnings
# the keep rules would otherwise produce in that build.
-dontwarn com.applovin.**

# Appodeal Networks
-keeppackagenames com.appodeal.ads.adapters.**
# AppLovin MAX adapter rules for Bidon Custom Adapter and Yandex Custom Adapter
-keeppackagenames com.applovin.mediation.adapters.**
-keep class * extends com.appodeal.ads.AdNetwork { *; }
-keep class * extends com.appodeal.ads.AdNetworkBuilder { *; }
