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

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

这里写图片描述

这里写图片描述

这里写图片描述

附上一个混淆文件

-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();
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值