ProGuard keep class name but change package name

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-30 06:22:59

问题


want to change package name but need keep Class Name not change. any idea?


回答1:


ProGuard doesn't have a standard option to rename packages yet keep their simple class names.

You could create a ProGuard mapping file manually, with lines like:

com.example.MyClass -> a.MyClass:
com.example.MyOtherClass -> a.MyOtherClass:

You can then use the option -applymapping mapping.txt



来源:https://stackoverflow.com/questions/15780865/proguard-keep-class-name-but-change-package-name

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!