emilsjolander / sprinkles

Sprinkles is a boiler-plate-reduction-library for dealing with databases in android applications
Apache License 2.0
773 stars 84 forks source link

Annotations are removed from obfuscated code. #68

Open amatkivskiy opened 10 years ago

amatkivskiy commented 10 years ago

Hi, Recently I've discovered that all annotations were removed from model classes in obfuscated code. Crash: java.lang.RuntimeException: Unable to create application com.example.App: se.emilsjolander.sprinkles.exceptions.NoPrimaryKeysException: Every model must have at least one primary key!

So I think sprinkles needs proper proguard config.

AlexCrookes commented 9 years ago

Did this ever get fixed? I've just run into the same problem. -keepattributes annotation would seem to be a fix, but it's not.

Hopefully, someone has a suggestion?