Recientemente he leido mucho sobre el uso de proguard, utilizandolo en otro momento.
Pero ahora, con la librería sherlock estoy teniendo problemas.
En principio, luego de actualizar el ADT y el proguard, me salen unos errores y ante esto, me gustaría chequear mi configuración ante todo.
En el proguard.bat que me bajo lo modifiqué y quedó:
call %java_exe% -jar "%PROGUARD_HOME%"\lib\proguard.jar %*
En el project:
- Project properties:
rel="nofollow" target=android-14
proguard.config=proguard.cfg
android.library.reference.1=../ActionBarSherlock-4.2.0/librarySherlock
Código:
Alguien tiene esta configuración?proguard.cfg: Código: -optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontpreverify -verbose -optimizations !code/simplification/arithmetic,!field/*,!class/merging/* -dontwarn android.support.** -dontwarn **CompatHoneycomb -dontwarn **CompatCreatorHoneycombMR2 -dontwarn android.support.v4.view.** -dontwarn android.support.v4.** -keep class android.support.v4.** { *; } -dontwarn java.awt.**,javax.security.**,java.beans.**,javax.xml.**,java.util.**,org.w3c.dom.** -dontwarn org.mockito.** -dontwarn sun.reflect.** -dontwarn android.test.** -dontwarn com.google.android.gms.* -ignorewarnings -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiver -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference -keep public class com.android.vending.licensing.ILicensingService -keepclasseswithmembernames class * { native <methods>; } -keepclasseswithmembers class * { public <init>(android.content.Context, android.util.AttributeSet); } -keepclasseswithmembers class * { public <init>(android.content.Context, android.util.AttributeSet, int); } -keepclassmembers class * extends android.app.Activity { public void *(android.view.View); } -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); } -keep class * implements android.os.Parcelable { public static final android.os.Parcelable$Creator *; } -adaptresourcefilenames **.properties,**.gif,**.jpg -adaptresourcefilecontents **.properties,META-INF/MANIFEST.MF #Action Bar Sherlock -keep class com.actionbarsherlock.** { *; } -keep interface com.actionbarsherlock.** { *; }
Muchas gracias!!!!