proguard - Android: obfuscating resources in HelloWorld -
even though proguard-project.txt
contains lines
-adaptresourcefilenames **.png -adaptresourcefilecontents **.xml
and though proguard.config
uncommented in project.properties
(as mentioned in file),
running ant release
on eclipse's default helloworld project still shows within bin/mainactivity-release.apk
lines
-rw-rw-rw- 9193 17-jul-2013 14:26:44 res/drawable-hdpi/ic_launcher.png -rw-rw-rw- 5057 17-jul-2013 14:26:44 res/drawable-mdpi/ic_launcher.png -rw-rw-rw- 14068 17-jul-2013 14:26:44 res/drawable-xhdpi/ic_launcher.png
in other words, name of png icons not obfuscated.
what missing?
i not concerned proguard handling png filenames correctly, fact not working reduces confidence resulting classes.dex
in apk has been obfuscated.
proguard can handle resources files in following ways:
rename them follow obfuscated names of corresponding class files (-adaptresourcefilenames),
update obfuscated class names in text files (-adaptresourcefilecontents),
otherwise, copy them.
proguard doesn't change file extensions or touch contents of image files, instance.
Comments
Post a Comment