Skip to content

Commit

Permalink
修正框架文档上的混淆规则
Browse files Browse the repository at this point in the history
  • Loading branch information
getActivity committed Nov 7, 2024
1 parent 0e113c3 commit 1aaff27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ dependencies {

```text
# 必须要加上此规则,否则会导致泛型解析失败
-keep public class * implements com.hjq.http.listener.OnHttpListener {
-keep class * implements com.hjq.http.listener.OnHttpListener {
*;
}
-keep public class * extends com.hjq.http.model.ResponseClass {
-keep class * extends com.hjq.http.model.ResponseClass {
*;
}
```
Expand Down
6 changes: 5 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@
# EasyHttp
-keep class com.hjq.http.** {*;}
# 必须要加上此规则,否则会导致泛型解析失败
-keep public class * implements com.hjq.http.listener.OnHttpListener {
-keep class * implements com.hjq.http.listener.OnHttpListener {
*;
}

-keep class * extends com.hjq.http.model.ResponseClass {
*;
}

Expand Down

0 comments on commit 1aaff27

Please sign in to comment.