progurd.pro 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. #-injars E:\921\finish\921sdk_v1.2.1.jar
  2. #-outjars E:\921\finish\success\921sdk_v1.2.1.jar
  3. #-libraryjars '/mnt/0001D02E000A26ED/android/jdk/jdk1.8.0_151/jre/lib/rt.jar'
  4. #-libraryjars '/mnt/0001D02E000A26ED/android/sdk/android-sdk-linux/platforms/android-20/android.jar'
  5. -ignorewarnings # 抑制警告
  6. #-libraryjars jar\classes.jar
  7. # ----------------------------------
  8. # 混淆时不会产生形形色色的类名
  9. # -dontusemixedcaseclassnames
  10. # ----------------------------------
  11. -dontusemixedcaseclassnames
  12. # ----------------------------------
  13. # 指定不去忽略非公共的库类
  14. # -dontskipnonpubliclibraryclasses
  15. # ----------------------------------
  16. -dontskipnonpubliclibraryclasses
  17. # ----------------------------------
  18. # 不预校验
  19. # -dontpreverify
  20. # ----------------------------------
  21. -dontpreverify
  22. # ----------------------------------
  23. # 输出生成信息
  24. # -verbose
  25. # ----------------------------------
  26. -verbose
  27. #混淆时应用侵入式重载
  28. -overloadaggressively
  29. #优化时允许访问并修改有修饰符的类和类的成员
  30. -allowaccessmodification
  31. #确定统一的混淆类的成员名称来增加混淆
  32. -useuniqueclassmembernames
  33. -dontwarn com.ninswmix.sdk.**
  34. -dontwarn com.ninswmix.login.**
  35. -dontwarn com.ninswmix.pay.**
  36. -dontwarn com.android.volley.**
  37. -dontwarn com.ninswmix.util.**
  38. -dontwarn com.ninswmix.common.utils.**
  39. -dontwarn com.ninswmix.service.**
  40. -dontwarn com.ninswmix.**
  41. -dontwarn android.support.**
  42. -keep public class * extends android.app.Activity
  43. -keep public class * extends android.webkit.WebView
  44. -keep public class * extends android.app.Service
  45. -keep public class * extends android.content.BroadcastReceiver
  46. -renamesourcefileattribute SourceFile
  47. -keepattributes Exceptions,InnerClasses,Signature,SourceFile,LineNumberTable,*Annotation*
  48. # Keep - Applications. Keep all application classes, along with their 'main'
  49. # methods.
  50. -keepattributes *Annotation*
  51. -keepattributes *JavascriptInterface*
  52. -keepclasseswithmembers public class * {
  53. public static void main(java.lang.String[]);
  54. }
  55. -keep class **.R$* {
  56. *;
  57. }
  58. -keep class **.R$* {*;}
  59. # Also keep - Enumerations. Keep the special static methods that are required in
  60. # enumeration classes.
  61. -keepclassmembers enum * {
  62. public static **[] values();
  63. public static ** valueOf(java.lang.String);
  64. }
  65. # Also keep - Database drivers. Keep all implementations of java.sql.Driver.
  66. -keep class * extends java.sql.Driver
  67. # Keep names - Native method names. Keep all native class/method names.
  68. -keepclasseswithmembers,allowshrinking class * {
  69. native <methods>;
  70. }
  71. -keep class * implements android.os.IInterface {*;}
  72. -keepclassmembers class **.R$* {
  73. public static <fields>;
  74. }
  75. # ---------保护所有实体中的字段名称----------
  76. -keepclassmembers class * implements java.io.Serializable {
  77. <fields>;
  78. }
  79. -keepclassmembers class * implements android.os.Parcel {
  80. <fields>;
  81. }
  82. # --------- 保护类中的所有方法名 ------------
  83. -keepclassmembers class * {
  84. public <methods>;
  85. }
  86. -keep public class * extends android.view.View {
  87. public <init>(android.content.Context);
  88. public <init>(android.content.Context, android.util.AttributeSet);
  89. public <init>(android.content.Context, android.util.AttributeSet, int);
  90. public void set*(...);
  91. }
  92. # Remove - System method calls. Remove all invocations of System
  93. # methods without side effects whose return values are not used.
  94. -assumenosideeffects public class java.lang.System {
  95. public static long currentTimeMillis();
  96. static java.lang.Class getCallerClass();
  97. public static int identityHashCode(java.lang.Object);
  98. public static java.lang.SecurityManager getSecurityManager();
  99. public static java.util.Properties getProperties();
  100. public static java.lang.String getProperty(java.lang.String);
  101. public static java.lang.String getenv(java.lang.String);
  102. public static java.lang.String mapLibraryName(java.lang.String);
  103. public static java.lang.String getProperty(java.lang.String,java.lang.String);
  104. }
  105. # Remove - Math method calls. Remove all invocations of Math
  106. # methods without side effects whose return values are not used.
  107. -assumenosideeffects public class java.lang.Math {
  108. public static double sin(double);
  109. public static double cos(double);
  110. public static double tan(double);
  111. public static double asin(double);
  112. public static double acos(double);
  113. public static double atan(double);
  114. public static double toRadians(double);
  115. public static double toDegrees(double);
  116. public static double exp(double);
  117. public static double log(double);
  118. public static double log10(double);
  119. public static double sqrt(double);
  120. public static double cbrt(double);
  121. public static double IEEEremainder(double,double);
  122. public static double ceil(double);
  123. public static double floor(double);
  124. public static double rint(double);
  125. public static double atan2(double,double);
  126. public static double pow(double,double);
  127. public static int round(float);
  128. public static long round(double);
  129. public static double random();
  130. public static int abs(int);
  131. public static long abs(long);
  132. public static float abs(float);
  133. public static double abs(double);
  134. public static int max(int,int);
  135. public static long max(long,long);
  136. public static float max(float,float);
  137. public static double max(double,double);
  138. public static int min(int,int);
  139. public static long min(long,long);
  140. public static float min(float,float);
  141. public static double min(double,double);
  142. public static double ulp(double);
  143. public static float ulp(float);
  144. public static double signum(double);
  145. public static float signum(float);
  146. public static double sinh(double);
  147. public static double cosh(double);
  148. public static double tanh(double);
  149. public static double hypot(double,double);
  150. public static double expm1(double);
  151. public static double log1p(double);
  152. }
  153. # Remove - Number method calls. Remove all invocations of Number
  154. # methods without side effects whose return values are not used.
  155. -assumenosideeffects public class java.lang.* extends java.lang.Number {
  156. public static java.lang.String toString(byte);
  157. public static java.lang.Byte valueOf(byte);
  158. public static byte parseByte(java.lang.String);
  159. public static byte parseByte(java.lang.String,int);
  160. public static java.lang.Byte valueOf(java.lang.String,int);
  161. public static java.lang.Byte valueOf(java.lang.String);
  162. public static java.lang.Byte decode(java.lang.String);
  163. public int compareTo(java.lang.Byte);
  164. public static java.lang.String toString(short);
  165. public static short parseShort(java.lang.String);
  166. public static short parseShort(java.lang.String,int);
  167. public static java.lang.Short valueOf(java.lang.String,int);
  168. public static java.lang.Short valueOf(java.lang.String);
  169. public static java.lang.Short valueOf(short);
  170. public static java.lang.Short decode(java.lang.String);
  171. public static short reverseBytes(short);
  172. public int compareTo(java.lang.Short);
  173. public static java.lang.String toString(int,int);
  174. public static java.lang.String toHexString(int);
  175. public static java.lang.String toOctalString(int);
  176. public static java.lang.String toBinaryString(int);
  177. public static java.lang.String toString(int);
  178. public static int parseInt(java.lang.String,int);
  179. public static int parseInt(java.lang.String);
  180. public static java.lang.Integer valueOf(java.lang.String,int);
  181. public static java.lang.Integer valueOf(java.lang.String);
  182. public static java.lang.Integer valueOf(int);
  183. public static java.lang.Integer getInteger(java.lang.String);
  184. public static java.lang.Integer getInteger(java.lang.String,int);
  185. public static java.lang.Integer getInteger(java.lang.String,java.lang.Integer);
  186. public static java.lang.Integer decode(java.lang.String);
  187. public static int highestOneBit(int);
  188. public static int lowestOneBit(int);
  189. public static int numberOfLeadingZeros(int);
  190. public static int numberOfTrailingZeros(int);
  191. public static int bitCount(int);
  192. public static int rotateLeft(int,int);
  193. public static int rotateRight(int,int);
  194. public static int reverse(int);
  195. public static int signum(int);
  196. public static int reverseBytes(int);
  197. public int compareTo(java.lang.Integer);
  198. public static java.lang.String toString(long,int);
  199. public static java.lang.String toHexString(long);
  200. public static java.lang.String toOctalString(long);
  201. public static java.lang.String toBinaryString(long);
  202. public static java.lang.String toString(long);
  203. public static long parseLong(java.lang.String,int);
  204. public static long parseLong(java.lang.String);
  205. public static java.lang.Long valueOf(java.lang.String,int);
  206. public static java.lang.Long valueOf(java.lang.String);
  207. public static java.lang.Long valueOf(long);
  208. public static java.lang.Long decode(java.lang.String);
  209. public static java.lang.Long getLong(java.lang.String);
  210. public static java.lang.Long getLong(java.lang.String,long);
  211. public static java.lang.Long getLong(java.lang.String,java.lang.Long);
  212. public static long highestOneBit(long);
  213. public static long lowestOneBit(long);
  214. public static int numberOfLeadingZeros(long);
  215. public static int numberOfTrailingZeros(long);
  216. public static int bitCount(long);
  217. public static long rotateLeft(long,int);
  218. public static long rotateRight(long,int);
  219. public static long reverse(long);
  220. public static int signum(long);
  221. public static long reverseBytes(long);
  222. public int compareTo(java.lang.Long);
  223. public static java.lang.String toString(float);
  224. public static java.lang.String toHexString(float);
  225. public static java.lang.Float valueOf(java.lang.String);
  226. public static java.lang.Float valueOf(float);
  227. public static float parseFloat(java.lang.String);
  228. public static boolean isNaN(float);
  229. public static boolean isInfinite(float);
  230. public static int floatToIntBits(float);
  231. public static int floatToRawIntBits(float);
  232. public static float intBitsToFloat(int);
  233. public static int compare(float,float);
  234. public boolean isNaN();
  235. public boolean isInfinite();
  236. public int compareTo(java.lang.Float);
  237. public static java.lang.String toString(double);
  238. public static java.lang.String toHexString(double);
  239. public static java.lang.Double valueOf(java.lang.String);
  240. public static java.lang.Double valueOf(double);
  241. public static double parseDouble(java.lang.String);
  242. public static boolean isNaN(double);
  243. public static boolean isInfinite(double);
  244. public static long doubleToLongBits(double);
  245. public static long doubleToRawLongBits(double);
  246. public static double longBitsToDouble(long);
  247. public static int compare(double,double);
  248. public boolean isNaN();
  249. public boolean isInfinite();
  250. public int compareTo(java.lang.Double);
  251. public <init>(byte);
  252. public <init>(short);
  253. public <init>(int);
  254. public <init>(long);
  255. public <init>(float);
  256. public <init>(double);
  257. public <init>(java.lang.String);
  258. public byte byteValue();
  259. public short shortValue();
  260. public int intValue();
  261. public long longValue();
  262. public float floatValue();
  263. public double doubleValue();
  264. public int compareTo(java.lang.Object);
  265. public boolean equals(java.lang.Object);
  266. public int hashCode();
  267. public java.lang.String toString();
  268. }
  269. # Remove - String method calls. Remove all invocations of String
  270. # methods without side effects whose return values are not used.
  271. -assumenosideeffects public class java.lang.String {
  272. public <init>();
  273. public <init>(byte[]);
  274. public <init>(byte[],int);
  275. public <init>(byte[],int,int);
  276. public <init>(byte[],int,int,int);
  277. public <init>(byte[],int,int,java.lang.String);
  278. public <init>(byte[],java.lang.String);
  279. public <init>(char[]);
  280. public <init>(char[],int,int);
  281. public <init>(java.lang.String);
  282. public <init>(java.lang.StringBuffer);
  283. public static java.lang.String copyValueOf(char[]);
  284. public static java.lang.String copyValueOf(char[],int,int);
  285. public static java.lang.String valueOf(boolean);
  286. public static java.lang.String valueOf(char);
  287. public static java.lang.String valueOf(char[]);
  288. public static java.lang.String valueOf(char[],int,int);
  289. public static java.lang.String valueOf(double);
  290. public static java.lang.String valueOf(float);
  291. public static java.lang.String valueOf(int);
  292. public static java.lang.String valueOf(java.lang.Object);
  293. public static java.lang.String valueOf(long);
  294. public boolean contentEquals(java.lang.StringBuffer);
  295. public boolean endsWith(java.lang.String);
  296. public boolean equalsIgnoreCase(java.lang.String);
  297. public boolean equals(java.lang.Object);
  298. public boolean matches(java.lang.String);
  299. public boolean regionMatches(boolean,int,java.lang.String,int,int);
  300. public boolean regionMatches(int,java.lang.String,int,int);
  301. public boolean startsWith(java.lang.String);
  302. public boolean startsWith(java.lang.String,int);
  303. public byte[] getBytes();
  304. public byte[] getBytes(java.lang.String);
  305. public char charAt(int);
  306. public char[] toCharArray();
  307. public int compareToIgnoreCase(java.lang.String);
  308. public int compareTo(java.lang.Object);
  309. public int compareTo(java.lang.String);
  310. public int hashCode();
  311. public int indexOf(int);
  312. public int indexOf(int,int);
  313. public int indexOf(java.lang.String);
  314. public int indexOf(java.lang.String,int);
  315. public int lastIndexOf(int);
  316. public int lastIndexOf(int,int);
  317. public int lastIndexOf(java.lang.String);
  318. public int lastIndexOf(java.lang.String,int);
  319. public int length();
  320. public java.lang.CharSequence subSequence(int,int);
  321. public java.lang.String concat(java.lang.String);
  322. public java.lang.String replaceAll(java.lang.String,java.lang.String);
  323. public java.lang.String replace(char,char);
  324. public java.lang.String replaceFirst(java.lang.String,java.lang.String);
  325. public java.lang.String[] split(java.lang.String);
  326. public java.lang.String[] split(java.lang.String,int);
  327. public java.lang.String substring(int);
  328. public java.lang.String substring(int,int);
  329. public java.lang.String toLowerCase();
  330. public java.lang.String toLowerCase(java.util.Locale);
  331. public java.lang.String toString();
  332. public java.lang.String toUpperCase();
  333. public java.lang.String toUpperCase(java.util.Locale);
  334. public java.lang.String trim();
  335. }
  336. # Remove - StringBuffer method calls. Remove all invocations of StringBuffer
  337. # methods without side effects whose return values are not used.
  338. -assumenosideeffects public class java.lang.StringBuffer {
  339. public <init>();
  340. public <init>(int);
  341. public <init>(java.lang.String);
  342. public <init>(java.lang.CharSequence);
  343. public java.lang.String toString();
  344. public char charAt(int);
  345. public int capacity();
  346. public int codePointAt(int);
  347. public int codePointBefore(int);
  348. public int indexOf(java.lang.String,int);
  349. public int lastIndexOf(java.lang.String);
  350. public int lastIndexOf(java.lang.String,int);
  351. public int length();
  352. public java.lang.String substring(int);
  353. public java.lang.String substring(int,int);
  354. }
  355. # Remove - StringBuilder method calls. Remove all invocations of StringBuilder
  356. # methods without side effects whose return values are not used.
  357. -assumenosideeffects public class java.lang.StringBuilder {
  358. public <init>();
  359. public <init>(int);
  360. public <init>(java.lang.String);
  361. public <init>(java.lang.CharSequence);
  362. public java.lang.String toString();
  363. public char charAt(int);
  364. public int capacity();
  365. public int codePointAt(int);
  366. public int codePointBefore(int);
  367. public int indexOf(java.lang.String,int);
  368. public int lastIndexOf(java.lang.String);
  369. public int lastIndexOf(java.lang.String,int);
  370. public int length();
  371. public java.lang.String substring(int);
  372. public java.lang.String substring(int,int);
  373. }