-keep public class com.yandex.mobile.ads.mediation.interstitial.UnityAdsInterstitialAdapter {
    !private <methods>;
}

-keep public class com.yandex.mobile.ads.mediation.rewarded.UnityAdsRewardedAdapter {
    !private <methods>;
}

-keep public class com.yandex.mobile.ads.mediation.banner.UnityAdsBannerAdapter {
    !private <methods>;
}

# Keep filenames and line numbers for stack traces
-keepattributes SourceFile,LineNumberTable
# Keep JavascriptInterface for WebView bridge
-keepattributes JavascriptInterface
# Sometimes keepattributes is not enough to keep annotations
-keep class android.webkit.JavascriptInterface {
   *;
}
# Keep all classes in Unity Ads package
-keep class com.unity3d.ads.** {
   *;
}
# Keep all classes in Unity Services package
-keep class com.unity3d.services.** {
   *;
}
-dontwarn com.google.ar.core.**
-dontwarn com.unity3d.services.**
-dontwarn com.ironsource.adapters.unityads.**
