android-proguard-snippets
android-proguard-snippets copied to clipboard
Update Jackson 2
Annotations need to be preserved (the rule may be a bit too broad; I left another setting that also works commented out).
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.**