Problems with using jackson-json library when using Proguard

筅森魡賤 提交于 2019-12-02 18:45:39

ok , i've added the next things that i've gathered from multiple websites:

-libraryjars libs/jackson-annotations-2.0.0.jar
-libraryjars libs/jackson-core-2.0.0.jar

-dontskipnonpubliclibraryclassmembers

-keepattributes *Annotation*,EnclosingMethod

-keepnames class org.codehaus.jackson.** { *; }

-dontwarn javax.xml.**
-dontwarn javax.xml.stream.events.**
-dontwarn com.fasterxml.jackson.databind.**

together with the next code for each class that is used for json(with get&set), i think the apk is being created but i'm not sure if what i've written is enough to make it work well , and also if some of what i've written is not needed :

-keep public class MyClass.** {
  public void set*(***);
  public *** get*();
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!