android sdk中tools混淆插件proguardgui.bat简单说明

来源:互联网 发布:黄山烧饼哪家淘宝好吃 编辑:程序博客网 时间:2024/05/22 16:38

点击此处弹出插件
这里写图片描述

这里写图片描述

这里写图片描述

这里写图片描述

附上一个混淆文件

-injars classes.jar -outjars pd.jar-dontoptimize#-optimizationpasses 5-dontusemixedcaseclassnames-dontskipnonpubliclibraryclasses -dontpreverify -verbose -dontskipnonpubliclibraryclassmembers-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*-libraryjars 'E:\Android\0_trunk\PDUserCenterNew\utils\build\intermediates\bundles\debug\classes.jar'-libraryjars 'E:\Android\0_trunk\PDUserCenterNew\pd\libs\alipaySdk-20151215.jar'-libraryjars 'E:\Android\0_trunk\PDUserCenterNew\pd\libs\libammsdk.jar'-libraryjars 'E:\Android\0_trunk\PDUserCenterNew\pd\libs\mta-sdk-1.6.2.jar'-libraryjars 'E:\Android\0_trunk\PDUserCenterNew\pd\libs\open_sdk_r5509_lite.jar'-libraryjars 'E:\Android\0_trunk\PDUserCenterNew\pd\libs\sunjce_provider.jar'-libraryjars 'E:\Android\0_trunk\PDUserCenterNew\pd\libs\UPPayPluginExPro.jar'-libraryjars 'E:\Android\0_trunk\PDUserCenterNew\pd\libs\UPPayAssistEx.jar'-libraryjars 'E:\Android\0_trunk\PDUserCenterNew\utils\libs\Volley.jar'-libraryjars 'E:\Android\0_trunk\PDUserCenterNew\pd\libs\support-v4.jar'-libraryjars 'E:\Android\0_trunk\PDUserCenterNew\pd\libs\internal_impl-23.0.1.jar'-libraryjars 'E:\Android\0_trunk\PDUserCenterNew\pd\libs\support-annotations-23.0.1.jar'-libraryjars 'C:/Users/admin/AppData/Local/Android/sdk/platforms/android-23/android.jar'# Preserve all fundamental application classes.-keepattributes InnerClasses-keepattributes *Annotation*-keepattributes *JavascriptInterface*-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 class com.zlongame.pd.Callback.OnPDHandleCallback {*;}-keep class com.zlongame.pd.PDManager {*;}-keep class com.zlongame.pd.config.Contants {*;}-keep class com.zlongame.pd.config.PDInfo {*;}-keep class com.zlongame.pd.config.PDMessage {*;}-keep class com.zlongame.pd.config.PDMessage$* {*;}-keep class com.zlongame.pd.config.PDPayItem {*;}-keep class com.zlongame.qqh.wxapi.WXEntryActivity {*;}-keep class com.zlongame.qqh.wxapi.WXPayEntryActivity {*;}-keep class com.zlongame.pd.UI.Account.PDSDKMainActivity-keep class android.webkit.JavascriptInterface {*;}-keep class com.zlongame.pd.UI.Account.PDSDKUserCenterFragment$* { public *;}# Preserve all View implementations, their special context constructors, and# their setters.-keep class android.view.**{*;}-keep class android.webkit.**{*;}-keep public class * extends android.view.View {    public <init>(android.content.Context);    public <init>(android.content.Context, android.util.AttributeSet);    public <init>(android.content.Context, android.util.AttributeSet, int);    public void set*(...);}# Preserve all classes that have special context constructors, and the# constructors themselves.-keepclasseswithmembers class * {    public <init>(android.content.Context, android.util.AttributeSet);}# Preserve all classes that have special context constructors, and the# constructors themselves.-keepclasseswithmembers class * {    public <init>(android.content.Context, android.util.AttributeSet, int);}# Preserve the special fields of all Parcelable implementations.-keepclassmembers class * implements android.os.Parcelable {    static android.os.Parcelable$Creator CREATOR;}# Preserve static fields of inner classes of R classes that might be accessed# through introspection.-keepclassmembers class **.R$* {  public static <fields>;}# Preserve the required interface from the License Verification Library# (but don't nag the developer if the library is not used at all).-keep public interface com.android.vending.licensing.ILicensingService-dontnote com.android.vending.licensing.ILicensingService# The Android Compatibility library references some classes that may not be# present in all versions of the API, but we know that's ok.# Preserve all native method names and the names of their classes.-keepclasseswithmembernames class * {    native <methods>;}# Preserve the special static methods that are required in all enumeration# classes.-keepclassmembers class * extends java.lang.Enum {    public static **[] values();    public static ** valueOf(java.lang.String);}# Explicitly preserve all serialization members. The Serializable interface# is only a marker interface, so it wouldn't save them.# You can comment this out if your application doesn't use serialization.# If your code contains serializable classes that have to be backward # compatible, please refer to the manual.-keepclassmembers class * implements java.io.Serializable {    static final long serialVersionUID;    static final java.io.ObjectStreamField[] serialPersistentFields;    private void writeObject(java.io.ObjectOutputStream);    private void readObject(java.io.ObjectInputStream);    java.lang.Object writeReplace();    java.lang.Object readResolve();}
0 0
原创粉丝点击