Ho offuscato il mio apk, ma le dimensioni del file sono state ridotte da 12 MB a 10,5 MB.Android - Come controllare l'oscuramento di Proguard ha funzionato?
Il motivo per cui si tratta solo di una riduzione relativamente piccola potrebbe essere dovuto al fatto che la mia app utilizza un paio di librerie di grandi dimensioni, ma esiste un modo per verificare il livello di offuscamento che è stato eseguito?
Solo nel caso, questo è il mio file 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.**
... e le librerie che sto usando sono android-support-v4.jar
, acra-4.5.0.jar
e twitter4j-core-4.0.2.jar
.
accettarlo se risolto la vostra esigenza .. – Elltz
ho bisogno di provarlo prima! Non appena lo avrò, sarai il primo a sapere ... –