# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Applications/Android Studio.app/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# 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 *;
# start Intercom SDK Proguard rules
-keep class io.intercom.android.** { *; }
-keep class com.intercom.** { *; }

# Fix warning about API 24 method used in HtmlCompat when using older build tools/compileSdkVersion
# https://github.com/intercom/intercom-android/issues/291#issuecomment-262886043
# TODO: Reproduce the issue and limit this rule to the HtmlCompat class
-dontwarn io.intercom.android.sdk.utilities.**

# We saw errors referencing com.shimmer.facebook.**.R in our app, we don't need to keep those references
-dontwarn com.facebook.shimmer.**

-dontwarn javax.annotation.meta.**
-dontwarn javax.annotation.**

-dontwarn com.google.auto.**

# Ably library uses Lombok annotations which are compile-time only
# https://github.com/intercom/intercom/issues/437417
-dontwarn lombok.**

# Ably library ProGuard rules to prevent ClassNotFoundException
# https://faqs.ably.com/classnotfoundexception-when-using-proguard-with-ably-java
-keep class io.ably.lib.** { *; }
-keep class org.msgpack.core.** { *; }
# end Intercom SDK Proguard rules
#}
