2010년 11월 23일 화요일

How to protect your source code of android project with proguard

I got good information from these blogs.

http://android-developers.blogspot.com/2010/09/proguard-android-and-licensing-server.html

http://www.androidengineer.com/2010/07/optimizing-obfuscating-and-shrinking.html


However, I couldn't succeed in making optimized, obfuscated, and shrinked source with their ways. I had to find my own way. I googled for a long time and gathered lots of information on Ant, Proguard, etc. I found out that build.xml(Ant) and config.txt(Proguard) is the key to success.

I will omitt how to use Ant and Proguard. You can refer to the above blogs. I changed some part of build.xml and config.txt. You can download them on the below links.

https://docs.google.com/leaf?id=0B35PS9RDzjSrMjk3Y2VhMGMtMmU0ZS00OTE1LTg2N2MtOWFjOWIwNDM1NmFk&hl=en&authkey=CNSFiK8H


https://docs.google.com/leaf?id=0B35PS9RDzjSrMmVjOTJmZWQtNGJkNy00MTAyLWE2MzMtYTM3MDZkZGU5ZTE3&hl=en&authkey=CNHNuJcH

Try them. If you don't succeed, you may have to change some part of them. I use UTF-8 as encoding. If you use different encoding, you must change encoding at build.xml.




댓글 없음:

댓글 쓰기