ProGuard save class name but change package name

You want to change the package name, but you do not need to change the class name. any idea?

+5
source share
1 answer

ProGuard does not have a standard option for renaming packages, but retains its simple class names.

You can create the ProGuard mapping file manually using the following lines:

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

Then you can use the option -applymapping mapping.txt

+6
source

All Articles