{"action":"closed","issue":{"url":"https://api.github.com/repos/excilys/androidannotations/issues/1810","repository_url":"https://api.github.com/repos/excilys/androidannotations","labels_url":"https://api.github.com/repos/excilys/androidannotations/issues/1810/labels{/name}","comments_url":"https://api.github.com/repos/excilys/androidannotations/issues/1810/comments","events_url":"https://api.github.com/repos/excilys/androidannotations/issues/1810/events","html_url":"https://github.com/excilys/androidannotations/issues/1810","id":162715320,"number":1810,"title":"Spring-rest and Proguard","user":{"login":"michelangeloRome","id":9365389,"avatar_url":"https://avatars.githubusercontent.com/u/9365389?v=3","gravatar_id":"","url":"https://api.github.com/users/michelangeloRome","html_url":"https://github.com/michelangeloRome","followers_url":"https://api.github.com/users/michelangeloRome/followers","following_url":"https://api.github.com/users/michelangeloRome/following{/other_user}","gists_url":"https://api.github.com/users/michelangeloRome/gists{/gist_id}","starred_url":"https://api.github.com/users/michelangeloRome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michelangeloRome/subscriptions","organizations_url":"https://api.github.com/users/michelangeloRome/orgs","repos_url":"https://api.github.com/users/michelangeloRome/repos","events_url":"https://api.github.com/users/michelangeloRome/events{/privacy}","received_events_url":"https://api.github.com/users/michelangeloRome/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-28T15:29:33Z","updated_at":"2016-06-28T15:58:46Z","closed_at":"2016-06-28T15:58:46Z","body":"Hi all,\r\nI want to obfuscate my app code working with AA 4.0.0 and Proguard.\r\n\r\nI'm able to launch application but I'm not able to parse json response content in proper pojos, I receive\r\n`org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: No content to map due to end-of-input`\r\n\r\nThis is in my build.gradle\r\n\r\n```\r\ndef AAVersion = '4.0.0'\r\n\r\napt \"org.androidannotations:androidannotations:$AAVersion\"\r\ncompile \"org.androidannotations:androidannotations-api:$AAVersion\"\r\napt \"org.androidannotations:rest-spring:$AAVersion\"\r\ncompile \"org.androidannotations:rest-spring-api:$AAVersion\"\r\napt \"org.androidannotations:otto:$AAVersion\"\r\ncompile \"org.androidannotations:otto:$AAVersion\"\r\ncompile 'org.springframework.android:spring-android-rest-template:2.0.0.M3'\r\ncompile 'com.fasterxml.jackson.core:jackson-core:2.4.2'\r\ncompile 'com.fasterxml.jackson.core:jackson-annotations:2.4.2'\r\ncompile 'com.fasterxml.jackson.core:jackson-databind:2.4.2'\r\n```\r\n\r\nAnd in my proguard-rules.pro I've this:\r\n\r\n```\r\n-dontwarn org.androidannotations.**\r\n-dontwarn com.fasterxml.**\r\n\r\n# AndroidAnnotations\r\n\r\n-optimizationpasses 5\r\n-dontusemixedcaseclassnames\r\n-dontskipnonpubliclibraryclasses\r\n-dontpreverify\r\n-verbose\r\n-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*\r\n\r\n-keep public class * extends android.app.Activity\r\n-keep public class * extends android.app.Application\r\n-keep public class * extends android.app.Service\r\n-keep public class * extends android.content.BroadcastReceiver\r\n-keep public class * extends android.content.ContentProvider\r\n-keep public class * extends android.app.backup.BackupAgentHelper\r\n-keep public class * extends android.preference.Preference\r\n-keep public class com.android.vending.licensing.ILicensingService\r\n\r\n-keepclasseswithmembernames class * {\r\n    native <methods>;\r\n}\r\n\r\n-keepclasseswithmembernames class * {\r\n    public <init>(android.content.Context, android.util.AttributeSet);\r\n}\r\n\r\n-keepclasseswithmembernames class * {\r\n    public <init>(android.content.Context, android.util.AttributeSet, int);\r\n}\r\n\r\n-keepclassmembers enum * {\r\n    public static **[] values();\r\n    public static ** valueOf(java.lang.String);\r\n}\r\n\r\n-keep class * implements android.os.Parcelable {\r\n  public static final android.os.Parcelable$Creator *;\r\n}\r\n\r\n\r\n# spring rest template\r\n\r\n-dontwarn org.apache.http.annotation.Immutable\r\n-dontwarn org.apache.http.annotation.NotThreadSafe\r\n-dontwarn org.springframework.**\r\n\r\n-keep class com.mypackage.** {\r\n  public protected private *;\r\n}\r\n\r\n-keep class org.springframework.** { *; }\r\n\r\n-keepclassmembers public class org.springframework.** {\r\n   public *;\r\n}\r\n\r\n# spring android\r\n\r\n-optimizationpasses 5\r\n-dontusemixedcaseclassnames\r\n-dontskipnonpubliclibraryclasses\r\n-dontpreverify\r\n-verbose\r\n-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*\r\n\r\n-keep public class * extends android.app.Activity\r\n-keep public class * extends android.app.Application\r\n-keep public class * extends android.app.Service\r\n-keep public class * extends android.content.BroadcastReceiver\r\n-keep public class * extends android.content.ContentProvider\r\n-keep public class * extends android.app.backup.BackupAgentHelper\r\n-keep public class * extends android.preference.Preference\r\n-keep public class com.android.vending.licensing.ILicensingService\r\n\r\n-keepclasseswithmembers class * {\r\n    native <methods>;\r\n}\r\n\r\n-keepclasseswithmembers class * {\r\n    public <init>(android.content.Context, android.util.AttributeSet);\r\n}\r\n\r\n-keepclasseswithmembers class * {\r\n    public <init>(android.content.Context, android.util.AttributeSet, int);\r\n}\r\n\r\n-keepclassmembers enum * {\r\n    public static **[] values();\r\n    public static ** valueOf(java.lang.String);\r\n}\r\n\r\n-keep class * implements android.os.Parcelable {\r\n  public static final android.os.Parcelable$Creator *;\r\n}\r\n\r\n-keepclassmembers public class org.springframework {\r\n    public *;\r\n}\r\n\r\n# jackson\r\n\r\n-keepattributes *Annotation*,EnclosingMethod,Signature\r\n-keepnames class com.fasterxml.jackson.** { *; }\r\n-dontwarn com.fasterxml.jackson.databind.**\r\n-keep class org.codehaus.** { *; }\r\n-keepclassmembers public final enum org.codehaus.jackson.annotate.JsonAutoDetect$Visibility {\r\npublic static final org.codehaus.jackson.annotate.JsonAutoDetect$Visibility *; }\r\n-keep public class gaming.my.com.mygaming.model.** {\r\n  public void set*(***);\r\n  public *** get*();\r\n}\r\n-keep public class gaming.my.com.mygaming.service.** {\r\n  public void set*(***);\r\n  public *** get*();\r\n}\r\n\r\n# my object pojos\r\n\r\n-keep class gaming.my.com.mygaming.model.** { *; }\r\n-keep class gaming.my.com.mygaming.service.** { *; }\r\n```\r\n\r\nCan anyone help me please?\r\n\r\nThanks in advance"}}
{"actor":{"display_login":"WonderCsabo"}}