android-proguard-snippets icon indicating copy to clipboard operation
android-proguard-snippets copied to clipboard

Update Jackson 2

Open paour opened this issue 8 years ago • 1 comments

Annotations need to be preserved (the rule may be a bit too broad; I left another setting that also works commented out).

paour avatar Jun 23 '16 11:06 paour

This didn't quite work for me. I ended with the following solution:

# Proguard configuration for Jackson 2.x (fasterxml package instead of codehaus package)

-keep class com.fasterxml.jackson.databind.ObjectMapper {
    public <methods>;
    protected <methods>;
}
-keep class com.fasterxml.jackson.databind.ObjectWriter {
    public ** writeValueAsString(**);
}

-keep class com.fasterxml.jackson.annotation.** { *; }
-dontwarn org.w3c.dom.bootstrap.DOMImplementationRegistry
-dontwarn com.fasterxml.jackson.databind.**

Caerbannog avatar Sep 11 '16 14:09 Caerbannog