【发布时间】:2015-02-27 04:14:29
【问题描述】:
我混淆了我的 apk,但文件大小仅从 12MB 减少到 10.5MB。
它只是相对较小的减少的原因可能是因为我的应用程序使用了几个大型库,但是有什么方法可以检查已执行的混淆级别?
以防万一,这是我的 proguard-project.txt 文件...
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
-dontwarn twitter4j.**
...我使用的库是android-support-v4.jar、acra-4.5.0.jar 和twitter4j-core-4.0.2.jar。
【问题讨论】:
标签: android proguard obfuscation