When applying Proguard on Android library project there are well known considerations and issues. Usually the basic logic is:
- Use correct code guidelines and put only the public API as
public foo()...
- Use well known Proguard rules which are from the kind "obfuscate all privates"
These (with other known library Proguard rules) will ensure usually a desired result.
The hack is that: I have a large (and complex in means of dependencies and use of third party API's & SDK's) library project, historically not written with good coding guidelines. So the trivial solution is to go class by class, and prepare some kind of custom -keep
rule for each. This is quite not feasible task. Is there another alternative in such cases? The target is obfuscation not using Proguard so i'm open to use alternatives.