# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
#   public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile


# Firebase Crashlytics
-keep class com.google.firebase.** { *; }
-dontwarn com.google.firebase.**

# Firebase Analytics
-keep class com.google.firebase.analytics.** { *; }
-dontwarn com.google.firebase.analytics.**

# Firebase Messaging
-keep class com.google.firebase.messaging.** { *; }
-dontwarn com.google.firebase.messaging.**

# Firebase Firestore (if used)
-keep class com.google.firebase.firestore.** { *; }
-dontwarn com.google.firebase.firestore.**

# Firebase Auth (if used)
-keep class com.google.firebase.auth.** { *; }
-dontwarn com.google.firebase.auth.**

# Retrofit
-keep class retrofit2.** { *; }
-dontwarn retrofit2.**

# Gson (used by Retrofit)
-keep class com.google.gson.** { *; }
-dontwarn com.google.gson.**

# Glide
-keep class com.bumptech.glide.** { *; }
-dontwarn com.bumptech.glide.**

# Picasso
-keep class com.squareup.picasso.** { *; }
-dontwarn com.squareup.picasso.**

# Gson library
-keep class com.google.gson.stream.** { *; }
-dontwarn com.google.gson.stream.**

# AndroidX
-keep class androidx.** { *; }
-dontwarn androidx.**

# CircleImageView
-keep class de.hdodenhof.circleimageview.** { *; }
-dontwarn de.hdodenhof.circleimageview.**

# Multidex
-keep class androidx.multidex.** { *; }
-dontwarn androidx.multidex.**

# For Kotlin extensions and reflection
-keepclassmembers class * extends java.lang.Exception {
    <init>(...);
}

# For keeping specific classes with reflection in libraries like Firebase
-keep class com.google.firebase.** { *; }

# Exclude the following logs for shrinking
-keep class android.util.Log { *; }
-dontwarn android.util.Log

# Keep annotations (needed for Retrofit, Gson, etc.)
-keep @interface * { *; }


-assumenosideeffects class android.util.Log {
    public static *** d(...);
    public static *** v(...);
    public static *** i(...);
    public static *** w(...);
    public static *** e(...);
}

