I'm trying to publish an app in Google Playstore that uses firebase realtime database. when Install apk in my device directly from Android Studio it works well in firebase console, showing the values that I have defined to my class User (see image):
But when I publish the app and I check firebase console, it appears assigned names of values that doesn't correspond to my User class data (see image):
Also I have added to my build.gradle file the Proguard as follow:
buildTypes {
release {
shrinkResources true
minifyEnabled true
testCoverageEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
debuggable = false
signingConfig = signingConfigs.release
}
}
and in Proguard file I have added:
#-keepattributes Signature
#-keepclassmembers class com.packegename.folderModel.User.** {
# *;
#}
But still not working
this is my code:
auth.createUserWithEmailAndPassword(emailInput, passwordInput)
.addOnCompleteListener { task ->
if (task.isSuccessful) {
val fbUser = auth.currentUser
userId = fbUser!!.uid
val user = User(
"",
"",
"",
userAppAmountInit,
"",
nameInput,
emailInput,
timeStamp,
lastNameInput,
telephoneInput,
"Android"
)
refDataBaseApp.child(userId).setValue(user).addOnCompleteListener {
Toast.makeText(context, "Bienvenue!", Toast.LENGTH_SHORT).show();
}
in adition, I have connected the app from google play , to firebase console...
I have been tried to understand what is going on. Is the first time I publish an app. I will appreciate all your help