Ad

Does Proguard Guarantee To Provide The Same Mapping If No Source Has Changed?

- 1 answer

In the case, if I will

  • build a project
  • clean up all binaries
  • build it again (no source/resources and etc has changed).

Does Proguard guarantee to provide the same mapping.txt file?

Ad

Answer

ProGuard is deterministic: for the same input, it will generate the same output.

There is one subtlety though: if the operating system lists input files in a directory (notably class files that are not inside an archive) in a different order, then they may be processed in a different order, and the output can be different.

Ad
source: stackoverflow.com
Ad