drake пре 3 година
родитељ
комит
3018fdd68f
2 измењених фајлова са 9 додато и 0 уклоњено
  1. 7 0
      README.md
  2. 2 0
      sample/proguard-rules.pro

+ 7 - 0
README.md

@@ -111,6 +111,13 @@ implementation 'com.github.liangjingkanji:BRV:1.3.32'
 如果你是在 Android 5 (API level 21)以下开发, 要求使用OkHttp3.x请使用: [Net-okhttp3](https://github.com/liangjingkanji/Net-okhttp3)
 如果你是在 Android 5 (API level 21)以下开发, 要求使用OkHttp3.x请使用: [Net-okhttp3](https://github.com/liangjingkanji/Net-okhttp3)
 <br>
 <br>
 
 
+## 混淆规则
+
+```
+-keep class okhttp3.** { *; }
+```
+
+
 ## Contribute
 ## Contribute
 
 
 <img src="https://tva1.sinaimg.cn/large/006tNbRwgy1gaskr305czj30u00wjtcz.jpg" width="100"/> 
 <img src="https://tva1.sinaimg.cn/large/006tNbRwgy1gaskr305czj30u00wjtcz.jpg" width="100"/> 

+ 2 - 0
sample/proguard-rules.pro

@@ -19,3 +19,5 @@
 # If you keep the line number information, uncomment this to
 # If you keep the line number information, uncomment this to
 # hide the original source file name.
 # hide the original source file name.
 #-renamesourcefileattribute SourceFile
 #-renamesourcefileattribute SourceFile
+
+-keep class okhttp3.** {  }