# Prevent R8/ProGuard from stripping critical internal SVG parser classes
-keep class ai.secureprivacy.mobileconsent.support.androidsvg.** { *; }

# Keep coroutine-related suspend functions and internal lambdas (used in image loading and async handling)
-keepclassmembers class ** {
    *** invokeSuspend(...);
}
-keep class kotlin.coroutines.** { *; }

# Keep Kotlin metadata and synthetic methods used for reflection, coroutines, etc.
-keepattributes *Annotation*
-keep class kotlin.Metadata { *; }
-dontwarn kotlin.Metadata

# Optional: avoid warning for Java 17 features like StringConcatFactory used in Kotlin 1.9 builds
-dontwarn java.lang.invoke.StringConcatFactory