0
我的数据保存到火力点是这样的:机器人 - 将数据保存到火力保存与字母键
a: "Tom"
b: "26"
...
我知道,为了将其与正确的键(“MNAME”拯救,而不是“一”,‘法师’,而不是‘b’等),我必须根据文档 https://firebase.google.com/docs/database/android/start/#proguard
# Add this global rule
-keepattributes Signature
# This rule will properly ProGuard all the model classes in
# the package com.yourcompany.models. Modify to fit the structure
# of your app.
-keepclassmembers class com.yourcompany.models.** {
*;
}
我的问题到下一行添加到我的ProGuard是:
假设我的软件包名称是com.testing,添加的行应该是这样的吗?
-keepattributes签名
-keepclassmembers类com.testing.models ** { *。 }
或者第二行应该没有“模型”?像这样:
-keepclassmembers class com.testing.** {
- 而且,如果我有一个名为数据只有1全局类,我保存火力,可我只是把这些类成员特别?或者如上图所示我必须采取行动..
谢谢!如果我只想保留一个班级的班级成员?有没有选择这样做? –
更新了答案 – Darish
好的我会尽力,非常感谢! :-) –