Skip to content

Commit ca4230f

Browse files
committed
see 08/26 log
1 parent a358447 commit ca4230f

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

config.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def configLibAndroidDomain(Project pro) {
139139
buildTypes {
140140
release {
141141
minifyEnabled false
142-
// consumerProguardFiles 'proguard-rules.pro'
142+
consumerProguardFiles 'proguard-rules.pro'
143143
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
144144
}
145145
}

subutil/proguard-rules.pro

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,24 @@
2626

2727
-keep class com.blankj.subutil.** { *; }
2828
-keepclassmembers class com.blankj.subutil.** { *; }
29-
-dontwarn com.blankj.subutil.**
29+
-dontwarn com.blankj.subutil.**
30+
31+
# OkHttp
32+
-dontwarn okio.**
33+
-dontwarn okhttp3.**
34+
-dontwarn javax.annotation.Nullable
35+
-dontwarn javax.annotation.ParametersAreNonnullByDefault
36+
37+
# Okio
38+
-dontwarn com.squareup.**
39+
-dontwarn okio.**
40+
-keep public class org.codehaus.* { *; }
41+
-keep public class java.nio.* { *; }
42+
43+
# Retrofit
44+
-keep class retrofit2.** { *; }
45+
-dontwarn retrofit2.**
46+
-keepattributes Signature
47+
-keepattributes Exceptions
48+
-dontwarn okio.**
49+
-dontwarn javax.annotation.**

0 commit comments

Comments
 (0)