##—————Begin:proguardconfigurationcommonforallAndroidapps———-
-optimizationpasses5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontskipnonpubliclibraryclassmembers
-dontpreverify
-verbose
-optimizations!code/simplification/arithmetic,!field/*,!class/merging/*
-keepattributes*Annotation*
-renamesourcefileattributeSourceFile
-keepattributesSourceFile,LineNumberTable
#以下两个命令共同让类的路径给删除
-allowaccessmodification
-repackageclasses”
#纪录天生的日记数据,在proguard目次下
-dumpclass_files.txt
-printseedsseeds.txt
-printusageunused.txt
-printmappingmapping.txt
#非常都能够疏忽就翻开
#-dontwarn
-keeppublicclass*extendsandroid.app.Activity
-keeppublicclass*extendsandroid.app.Application
-keeppublicclass*extendsandroid.app.Service
-keeppublicclass*extendsandroid.content.BroadcastReceiver
-keeppublicclass*extendsandroid.content.ContentProvider
-keeppublicclass*extendsandroid.app.backup.BackupAgentHelper
-keeppublicclass*extendsandroid.preference.Preference
-keeppublicclasscom.android.vending.licensing.ILicensingService
-dontnotecom.android.vending.licensing.ILicensingService
-keepnamesclass*implementsjava.io.Serializable
#Explicitlypreserveallserializationmembers.TheSerializableinterface
#isonlyamarkerinterface,soitwouldn’tsavethem.
-keepclassmembersclass*implementsjava.io.Serializable{
staticfinallongserialVersionUID;
privatestaticfinaljava.io.ObjectStreamField[]serialPersistentFields;
privatevoidwriteObject(java.io.ObjectOutputStream);
privatevoidreadObject(java.io.ObjectInputStream);
java.lang.ObjectwriteReplace();
java.lang.ObjectreadResolve();
}
#Preserveallnativemethodnamesandthenamesoftheirclasses.
-keepclasseswithmembernamesclass*{
native;
}
-keepclasseswithmembernamesclass*{
public(android.content.Context,android.util.AttributeSet);
}
-keepclasseswithmembernamesclass*{
public(android.content.Context,android.util.AttributeSet,int);
}
#PreservestaticfieldsofinnerclassesofRclassesthatmightbeaccessed
#throughintrospection.
-keepclassmembersclass**.R$*{
publicstatic;
}
#Preservethespecialstaticmethodsthatarerequiredinallenumerationclasses.
-keepclassmembersenum*{
publicstatic**[]values();
publicstatic**valueOf(java.lang.String);
}
-keepclass*implementsandroid.os.Parcelable{
publicstaticfinalandroid.os.Parcelable$Creator*;
}
#假如你的工程是对外供应办法挪用就翻开
#-keeppublicclass*{
#publicprotected*;
#}
##—————End:proguardconfigurationcommonforallAndroidapps———-
#用到本人拼接的JsonObject
-keepclasscom.google.gson.JsonObject{*;}
-keepclasscom.badlogic.**{*;}
-keepclass*implementscom.badlogic.gdx.utils.Json*
-keepclasscom.google.**{*;}
apktool.batdxxx.apkdestdir
欢迎光临 仓酷云 (http://ckuyun.com/) | Powered by Discuz! X3.2 |