# ------------------- #
# --- Description --- #
# ------------------- #
# This file describes Proguard rules that Taboola SDKs require.

###---------- Begin: proguard configuration for Taboola SDK ----------


-keep interface com.taboola.flutter.handlers.** { *; }
-keep interface com.taboola.flutter.gueh.** { *; }
-keep interface com.taboola.flutter.kusto.** { *; }
-keep class com.taboola.flutter.TBLFlutterContextProvider { *; }
-keep class com.taboola.flutter.** { *; }
###---------- End:   proguard configuration for Taboola SDK ----------

#### All of the rules below are for Taboola Native dependencies. You don't have to modify them ####


###--------------- Begin: proguard configuration for OkHttp ----------
-dontwarn com.squareup.okhttp.**
-dontwarn okio.**
-dontwarn org.conscrypt.**
-keep class org.conscrypt.** { *; }


# A resource is loaded with a relative path so the package of this class must be preserved.
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase

# OkHttp platform used only on JVM and when Conscrypt dependency is available.
-dontwarn okhttp3.internal.platform.ConscryptPlatform

###--------------- End: proguard configuration for OkHttp ------

###---------------- Begin: proguard configuration for LightNetwork ------
# keep everything in this package from being removed or renamed
-keep class com.taboola.flutter.lightnetwork.** { *; }

# Keep annotations and annotation-based classes
-keep class com.taboola.flutter.lightnetwork.dynamic_url.annotations.** { *; }
-keepattributes *Annotation*
-keepclassmembers class ** {
    @com.taboola.flutter.lightnetwork.dynamic_url.annotations.* <methods>;
}

# Keep the dynamic URL processing classes
-keep class com.taboola.flutter.lightnetwork.dynamic_url.** { *; }
-keep class com.taboola.flutter.lightnetwork.url_components.** { *; }