android - Specify class names for Proguard to avoid obfuscating to -
i see proguard can specify dictionary of names used when obfuscating (and these can @ field/method, class or package level).
is there way give list of names not obfuscate to? tried putting ! in front in dictionary didn't seem work. bit of context, i'm thinking not obfuscate class names r avoid conflicts android generated r class.
as aside, it's worth checking out example dictionaries in proguard distribution (examples/dictionaries/) - last 2 made me chuckle!
i stumbled upon question while searching same thing.
this not answer core question,
use-case adding proguard-project.txt
should enough:
-keep public class **.r { public *; } -keep public class **.r$* { public *; }
Comments
Post a Comment