# 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.** {
   *;
}

-keep class com.google.android.gms.ads.initialization.** {
        *;
}

-keep class com.google.android.gms.ads.MobileAds {
        *;
}

-keep public class gatewayprotocol.v1.** {
    *;
}

-keep public class com.google.protobuf.** {
    *;
 }

 -keep public class com.android.billingclient.api.* {public *;}

-dontwarn com.google.ads.mediation.admob.*
-dontwarn com.google.android.gms.ads.**

# Presence of Android Privacy Sandbox services is handled with runtime checks
# Compile time ProGuard checks can lead to problems with developers (ABT-3131)
-dontwarn android.adservices.**
-dontwarn com.google.android.gms.appset.*
-dontwarn com.google.android.gms.tasks.*
-dontwarn com.android.installreferrer.api.*
