You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR changes the way the JSON is deserialized and now uses POJOs.
When obfuscating code using Proguard or R8 the POJOs will be obfuscated and their field names won't match those in the JSON anymore.
What are the possible solutions?
Adding @SerializedName annotation to all POJOs deserialized fields
OR
Including appropriate Proguard rules for consumers in src/main/resources/META-INF/proguard/pusherchannels.pro like other projects are doing (e.g. https://github.com/square/okio/blob/master/okio/src/jvmMain/resources/META-INF/proguard/okio.pro )
Right now adding this single keep-all rule -keep class com.pusher.client.** { *; } does the job but of course you might want to add more strict rules to only avoid obfuscating classes used for JSON deserialization.