Skip to content

ProGuard Settings for Jackson-jr #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
GulajavaMinistudio opened this issue Jan 13, 2016 · 2 comments
Closed

ProGuard Settings for Jackson-jr #35

GulajavaMinistudio opened this issue Jan 13, 2016 · 2 comments

Comments

@GulajavaMinistudio
Copy link

Is there anyone know about Proguard settings for Jackson-jr library in Android ?

I have tested mine with this, inside my proguard-rules.pro files .

-dontwarn com.fasterxml.jackson.**
-keep class com.fasterxml.jackson.** { *; }

-keep class org.codehaus.** { *; }
-keep public class your.class.** {*;}
-keepattributes *Annotation*,EnclosingMethod,Signature
-keepnames class com.fasterxml.jackson.** { *; }
-keepclassmembers class com.fasterxml.jackson.**  { *; }
-keepclassmembernames class com.fasterxml.jackson.**  { *; }
-keepclasseswithmembernames class com.fasterxml.jackson.** { *; }
-keepclasseswithmembers class com.fasterxml.jackson.**  { *; }

But none of them success. When i tested APK with proguard turned on, the app cannot parsing JSON correctly. It just produce empty JSON Arrays , like [{},{},....]

@cowtowncoder
Copy link
Member

I think you should ask on jackson-user list. Only small number of developers follow issue tracker updates, and I would guess there are many more Android developers on the list than within core dev team.

I don't know the answer to this myself.

@Caerbannog
Copy link

Here is a discussion about the proguard rules for Jackson2: krschultz/android-proguard-snippets#132

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants