Skip to content
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

ParameterizedType proguard runtime error #171

Open
mgpx opened this issue Aug 12, 2016 · 0 comments
Open

ParameterizedType proguard runtime error #171

mgpx opened this issue Aug 12, 2016 · 0 comments

Comments

@mgpx
Copy link

mgpx commented Aug 12, 2016

My code works in debug mode (not proguard)

My code

public static <U> ResponseServer<U> generateJSON(String json, Class<U> dataClass){
        ResponseServer<U> responseServer = null;
        if (dataClass == JUnidade.class)
           responseServer = (ResponseServer<U>)LoganSquare.parse(json, new ParameterizedType<ResponseServer<JUnidade>>() { }); 
....

my rules of proguard-rules.pro

-keep class com.mypackage.myapp.WebService.Models.ResponseServer.**

-keep class * extends com.bluelinelabs.logansquare.ParameterizedType.**

-keepclassmembers class com.mypackage.myapp.WebService.Models.** {*;}

-keep public class com.mypackage.myapp.WebService.Models.** {
     public static <fields>;
}

Decompiled in debug mode (not run proguard) It's Work

original

Decompiled in release mode (run proguard) don't work

erro

any suggestion?

My question in stackoverflow

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

1 participant