-
Notifications
You must be signed in to change notification settings - Fork 759
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
Custom adapter's annotations with Proguard #93
Comments
Not tested, but in my experience, you can try |
this seems to work |
expanding on tibbi's comment, what needs to be kept here are the (application specific) classes that Moshi is going to be serializing/deserializing to JSON. i.e. if you have a i additionally added:
|
|
The ProGuard configuration is documented now. https://github.com/square/moshi#proguard |
Is there a configuration to make moshi work with Proguard? specifically the
@FromJson
andToJson
annotation?I figured if I put this:
it might work but I get
Expected at least one @ToJson or @FromJson method on com.example.app.mypackage
. Since it works perfectly when proguard is off, I'm guessing my configuration is wrong. Thanks in advance :)The text was updated successfully, but these errors were encountered: