irshu355 / Android-WYSIWYG-Editor

:pager: A text editor written in Android using native components in the content tree. Integrate easily to work with web based WYSIWYG's.
http://irshulx.github.io/Android-WYSIWYG-Editor
Apache License 2.0
412 stars 116 forks source link

What is the Proguard rules? #54

Closed TayfunCesur closed 6 years ago

TayfunCesur commented 6 years ago

Hey. Firstly, thank you for this amazing library. But When use minify enable, what proguard rules am I have to use ?. This error coming from jsoup I think. Stack trace is below. Thanks!

`

    at org.a.b.h.a(Entities.java:18)
    at org.a.b.h$a.<clinit>(Entities.java:21) 
    at org.a.b.e$a.<init>(Document.java:226) 
    at org.a.b.e.<init>(Document.java:18) 
    at org.a.c.l.b(TreeBuilder.java:27) 
    at org.a.c.l.a(TreeBuilder.java:40) 
    at org.a.c.b.a(HtmlTreeBuilder.java:55) 
    at org.a.c.f.a(Parser.java:90)
    at org.a.a.a(Jsoup.java:58)
    at com.github.irshulx.Components.HTMLExtensions.parseHtml(HTMLExtensions.java:29)
    at com.github.irshulx.EditorCore.renderEditorFromHtml(EditorCore.java:543)
    at com.github.irshulx.Editor.render(Editor.java:76)`
irshu355 commented 6 years ago

Can try with the following rule?

-keep public class org.jsoup.** { public *; }

TayfunCesur commented 6 years ago

It worked like charm! Thank you