Firebase writes different files if the application debugs or releases a version

I just found out something very strange with Firebase, and I would like to know if this is something wrong or if there is a solution to this problem.

Basically, this is what he always wrote when I was developing the application (and this is exactly what I expected):

nscoachtools@gmail¸com maxMatches: 60 maxPlayers: 500 maxTeams: 30 userId: "SnMuRZEVqyN***...***hv2" userMail: "nscoachtools@gmail.com" userName: "Nicola Salvaro" userPicture: "https://lh4.googleusercontent.com/-L7lSPz0VJ9A/..." userToken: -1

and this is what he writes after I created the application in release mode:

nsalvaro77@gmail¸com a: "Nicola Salvaro" b: "ESjqwuh***...***wg1" c: "nsalvaro77@gmail.com" d: "https://lh4.googleusercontent.com/-2kwSEmLEN1c/..." e: -2 f: 30 g: 500 h: 60 userToken: 1499775285255

Each "name" is replaced by a letter. And "e:" should have been "userToken:", then when I tried to update it, he wrote it with the correct line, but not on top of the original value ... just wrote a new one. Then, when I try to read the full user, it gets the value "e:", not "userToken:".

Did I do something wrong?

+4
1

Android- Proguard. .

, POJO (, / Firebase) , Firebase JSON.

, Proguard POJO.

:

+4

Source: https://habr.com/ru/post/1681109/


All Articles