【发布时间】:2016-11-24 13:42:49
【问题描述】:
如何避免类名和Logger混淆(Dexguard)
Dexguard:避免 Android Release build Apk 中的类名和 Logger 混淆
给我推荐一个...
【问题讨论】:
标签: android logging obfuscation dexguard
如何避免类名和Logger混淆(Dexguard)
Dexguard:避免 Android Release build Apk 中的类名和 Logger 混淆
给我推荐一个...
【问题讨论】:
标签: android logging obfuscation dexguard
您可以防止 ProGuard 和 DexGuard 使用 -keep 选项混淆类名,例如
-keep class com.example.MyClass
如果这是配置文件中出现的日志记录类的名称,这确实很有用。或者,您可以让 ProGuard 或 DexGuard 混淆类名,但相应地更新配置文件,例如:
-keep,allowobfuscation class com.example.MyLogger
-adaptresourcefilecontents res/raw/myloggingconfiguration.txt
【讨论】: