天天看點

Android項目中Proguard配置檔案的定制

預設的proguard配置檔案在$android_homesdktoolsproguard 目錄下。

proguard-android.txt 預設的proguard配置檔案(未優化)

proguard-android-optimize.txt 預設的proguard配置檔案(已優化)

proguard-project.txt 預設的使用者定制proguard配置檔案。

最近,我通過對proguard文檔的學習,以及各種開源項目proguard配置檔案的分析,總結了幾個加強版本的proguard配置檔案。

項目首頁:https://github.com/snowdreamframework/android-proguard-configs

proguard-android-all.txt android項目中可能用到的proguard配置,僅供參考

proguard-android-lib.txt android library工程的proguard配置(未優化)

proguard-android-lib-optimize.txt android library工程的proguard配置(已優化)

proguard-android-app.txt android app工程的proguard配置(未優化)

proguard-android-app-optimize.txt android app工程的proguard配置(已優化)

下載下傳項目中的proguard配置檔案,然後拷貝到$android_homesdktoolsproguard 目錄下。

注:對于lib項目,推薦使用proguard-android-lib.txt

對于app項目,推薦使用proguard-android-app-optimize.txt

http://proguard.sourceforge.net/index.html#manual/usage.html

http://proguard.sourceforge.net/index.html#manual/examples.html

http://developer.android.com/tools/help/proguard.html

https://chromium.googlesource.com/external/google-cache-invalidation-api/+/master/src/example-app-build/proguard.cfg

https://google-gson.googlecode.com/svn/trunk/examples/android-proguard-example/proguard.cfg

https://github.com/47deg/translate-bubble-android/blob/master/proguard-sbt.txt

http://sourceforge.net/p/proguard/discussion/182456/thread/32de9f92/

http://www.cnblogs.com/royi123/archive/2013/02/28/2937657.html

https://code.google.com/p/csipsimple/source/browse/trunk/csipsimple/proguard.cfg

http://blog.csdn.net/lovexjyong/article/details/24652085

繼續閱讀