I try to login my users using Retrofit 2. (Basically a GET to the login URL with a basic header) It works well but once I ProGuard it, the Header Authorization is not sent a
finally i find.
just try this if you use Gson
,
add this to retrofit pro-guard :
-keepclassmembers,allowobfuscation class * {
@com.google.gson.annotations.SerializedName <fields>;
}
then use @SerializedName("name")
in your model .kotlin
example:
class PaymentRequestModel (
@SerializedName("name")
@Expose
var name : String = "",
}