# This warning comes from a transitive dependancy on the slf4j logging lib, safe to ignore since the below class is a JVM impl
-dontwarn org.slf4j.impl.StaticLoggerBinder

# TODO YD-6538 Remove after replacing the NetworkResponseAdapter lib
# AGP 8+ enables R8 full mode by default, which causes issues with the NetworkResponseAdapter lib, so exclude it
-keep class com.haroldadmin.cnradapter.** { *; }

# TODO Remove after we can update to Retrofit v2.10+
#------------------------------------- Copied from retrofit's proguard rules file ----------------------------------------------
#---------- https://github.com/square/retrofit/blob/trunk/retrofit/src/main/resources/META-INF/proguard/retrofit2.pro ----------
# With R8 full mode generic signatures are stripped for classes that are not
# kept. Suspend functions are wrapped in continuations where the type argument
# is used.
-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation

# R8 full mode strips generic signatures from return types if not kept.
-if interface * { @retrofit2.http.* public *** *(...); }
-keep,allowoptimization,allowshrinking,allowobfuscation class <3>

# With R8 full mode generic signatures are stripped for classes that are not kept.
-keep,allowobfuscation,allowshrinking class retrofit2.Response
#-------------------------------------------------------------------------------------------------------------------------------