ProGuard keep class name but change package name

后端 未结 1 1374
情书的邮戳
情书的邮戳 2021-01-02 12:46

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

相关标签:
1条回答
  • 2021-01-02 13:15

    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

    0 讨论(0)
提交回复
热议问题