Can anyone help me in changing the proguard rules to solve this error.
I am using cloud firestore and I am doing below query on firestore to fetch data into recylerview.
Query query = GlobalState.firebaseDB().collection("HOSPITALS")
.orderBy("DATE_OF_VISIT",Query.Direction.DESCENDING)
.whereEqualTo("CITY",GlobalState.myfriend.getCityname());
Once I enabled minifyEnabled True, I am getting below error.
java.lang.RuntimeException: Found two getters or fields with conflicting case sensitivity for property: city
And also I have created setters and getters methods from Android studio's built-in functionality and all my fields in the model class are private, still it throws the same error.
public class HospitalModel {
private String CITY;
public String getCITY() {
return CITY;
}
public void setCITY(String CITY) {
this.CITY = CITY;
}
}
For my requirement, I cannot change the fields in firebase to smallletters.
Proguard rules
-keepclassmembers class com.icare.startup.HospitalModel { *; }