android sdk中tools混淆插件proguardgui.bat简单说明
2016-03-03 20:43
615 查看
点击此处弹出插件
附上一个混淆文件
附上一个混淆文件
-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(); }
相关文章推荐
- UIImagePickerViewController裁切头像
- Educational Codeforces Round 9-D. Longest Subsequence(筛选法)
- UICollectionView-集合视图(理论篇)
- iOS UITableView相关成员方法详解
- HDU 4010 Query on The Trees
- String、StringBuilder、StringBuffer的区别
- SPOJ QTREE - Query on a tree
- question_015-JAVA之Map的遍历方式
- String 与StringBuilder
- Class Of Marquee Scroll通用不间断滚动JS脚本
- ProcessBuilder中如何为命令行传参
- UI控件初始化问题:initWithFrame和initWithCoder、aweakFromNib的执行
- 谈谈UIView的几个layout方法-layoutSubviews、layoutIfNeeded、setNeedsLayout
- spoj 2319 BIGSEQ - Sequence
- Sphinx Building Docs in horizon
- UIView - animateWithDuration 手势动画 使用详解
- 关于IList、IQueryable、IEnumerable与Func、Expression的关系
- UGUI官方案例—下载
- VirtualBox注册虚拟机时,Cannot register the image ‘C:\Proqram FiIes\OracIe\VirtuaIBox\VBoxGuestAdditionsiso
- Leetcode: 232. Implement Queue using Stacks(JAVA)