proguard-rules.pro 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. # Add project specific ProGuard rules here.
  2. # You can control the set of applied configuration files using the
  3. # proguardFiles setting in build.gradle.
  4. #
  5. # For more details, see
  6. # http://developer.android.com/guide/developing/tools/proguard.html
  7. # If your project uses WebView with JS, uncomment the following
  8. # and specify the fully qualified class name to the JavaScript interface
  9. # class:
  10. #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  11. # public *;
  12. #}
  13. # Uncomment this to preserve the line number information for
  14. # debugging stack traces.
  15. #-keepattributes SourceFile,LineNumberTable
  16. # If you keep the line number information, uncomment this to
  17. # hide the original source file name.
  18. #-renamesourcefileattribute SourceFile
  19. -dontshrink
  20. -dontpreverify
  21. -dontoptimize
  22. -dontusemixedcaseclassnames
  23. -flattenpackagehierarchy
  24. -allowaccessmodification
  25. -printmapping map.txt
  26. -optimizationpasses 7
  27. -verbose
  28. -keepattributes Exceptions,InnerClasses
  29. -dontskipnonpubliclibraryclasses
  30. -dontskipnonpubliclibraryclassmembers
  31. -ignorewarnings
  32. -keep public class * extends android.app.Activity
  33. -keep public class * extends android.app.Application
  34. -keep public class * extends android.app.Service
  35. -keep public class * extends android.content.BroadcastReceiver
  36. -keep public class * extends android.content.ContentProvider
  37. -keep public class * extends java.lang.Throwable {*;}
  38. -keep public class * extends java.lang.Exception {*;}
  39. -keep class com.alipay.android.app.IAlixPay{*;}
  40. -keep class com.alipay.android.app.IAlixPay$Stub{*;}
  41. -keep class com.alipay.android.app.IRemoteServiceCallback{*;}
  42. -keep class com.alipay.android.app.IRemoteServiceCallback$Stub{*;}
  43. -keep class com.alipay.sdk.app.PayTask{ public *;}
  44. -keep class com.alipay.sdk.app.AuthTask{ public *;}
  45. -keep class com.alipay.sdk.app.H5PayCallback {
  46. <fields>;
  47. <methods>;
  48. }
  49. -keep class com.alipay.android.phone.mrpc.core.** { *; }
  50. -keep class com.alipay.apmobilesecuritysdk.** { *; }
  51. -keep class com.alipay.mobile.framework.service.annotation.** { *; }
  52. -keep class com.alipay.mobilesecuritysdk.face.** { *; }
  53. -keep class com.alipay.tscenter.biz.rpc.** { *; }
  54. -keep class org.json.alipay.** { *; }
  55. -keep class com.alipay.tscenter.** { *; }
  56. -keep class com.ta.utdid2.** { *;}
  57. -keep class com.ut.device.** { *;}
  58. -keepclasseswithmembernames class * {
  59. native <methods>;
  60. }
  61. -keepclasseswithmembers class * {
  62. public <init>(android.content.Context, android.util.AttributeSet);
  63. }
  64. -keepclasseswithmembers class * {
  65. public <init>(android.content.Context, android.util.AttributeSet, int);
  66. }
  67. -keepclassmembers class * extends android.app.Activity {
  68. public void *(android.view.View);
  69. }
  70. -keepclassmembers enum * {
  71. public static **[] values();
  72. public static ** valueOf(java.lang.String);
  73. }
  74. -keep class * implements android.os.Parcelable {
  75. public static final android.os.Parcelable$Creator *;
  76. }
  77. # adding this in to preserve line numbers so that the stack traces
  78. # can be remapped
  79. -renamesourcefileattribute SourceFile
  80. -keepattributes SourceFile,LineNumberTable