From 4a810bbd6d3d5834c3e19f8b3147ff6da364e390 Mon Sep 17 00:00:00 2001 From: Anton Bevza Date: Thu, 16 Aug 2018 15:18:10 +0300 Subject: [PATCH] Update README.md --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index d4d31d5c..48f10f47 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,27 @@ or Maven: ``` +### Proguard +If you are using ProGuard you might need to add rules: +``` +-keep class * extends com.stfalcon.chatkit.messages.MessageHolders$OutcomingTextMessageViewHolder { + public (android.view.View, java.lang.Object); + public (android.view.View); + } +-keep class * extends com.stfalcon.chatkit.messages.MessageHolders$IncomingTextMessageViewHolder { + public (android.view.View, java.lang.Object); + public (android.view.View); + } +-keep class * extends com.stfalcon.chatkit.messages.MessageHolders$IncomingImageMessageViewHolder { + public (android.view.View, java.lang.Object); + public (android.view.View); + } +-keep class * extends com.stfalcon.chatkit.messages.MessageHolders$OutcomingImageMessageViewHolder { + public (android.view.View, java.lang.Object); + public (android.view.View); + } +``` + ### Try it Check out the [sample project](/sample/src/main) to try it yourself! :wink: