##### Moloco START

-keep class com.moloco.sdk.publisher.**{*;}
-keep class com.moloco.sdk.internal.MolocoLogger {*;}
-keep interface com.moloco.sdk.internal.MolocoLogger$LoggerListener {*;}
-keep class com.moloco.sdk.BuildConfig {*;}
-keep class com.moloco.marvel**{*;}
-keep class com.moloco.sdk.adapter.**{*;}


## OKHTTP START
# https://github.com/square/okhttp/pull/6792#issuecomment-1272616062
# OkHttp platform used only on JVM and when Conscrypt and other security providers are available.
-dontwarn okhttp3.internal.platform.**
-dontwarn org.conscrypt.**
-dontwarn org.bouncycastle.**
-dontwarn org.openjsse.**
## OKHTTP END

## SERIALIZER START
# Serializer for classes with named companion objects are retrieved using `getDeclaredClasses`.
# If you have any, replace classes with those containing named companion objects.
-keepattributes InnerClasses # Needed for `getDeclaredClasses`.

-keepclassmembers class kotlinx.serialization.json.** {
    *** Companion;
}
-keepclasseswithmembers class kotlinx.serialization.json.** {
    kotlinx.serialization.KSerializer serializer(...);
}

-keep,includedescriptorclasses class com.moloco.**$$serializer { *; } # <-- change package name to your app's
-keepclassmembers class com.moloco.** { # <-- change package name to your app's
    *** Companion;
}
-keepclasseswithmembers class com.moloco.** { # <-- change package name to your app's
    kotlinx.serialization.KSerializer serializer(...);
}
## SERIALIZER END

## KOTLIN START
# https://github.com/Kotlin/kotlinx.serialization/issues/42#issuecomment-349743544
-keep class kotlin.reflect.** { *; }
-dontwarn kotlin.reflect.**
-keep class org.jetbrains.** { *; }
## KOTLIN END

##### Moloco END

# KTor is using an interface for Logger. Added a consumer rule for Proguard not to fail for the consumer
# https://youtrack.jetbrains.com/issue/KTOR-5528/Missing-class-warning-when-using-R8-with-ktor-client-in-android-application
-dontwarn org.slf4j.impl.StaticLoggerBinder
