File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ android {
2121 getByName(" release" ) {
2222 isMinifyEnabled = true
2323 isShrinkResources = true
24- proguardFiles(" shrinker-rules.pro" , " shrinker-rules-android.pro" )
24+ proguardFiles(" shrinker-rules.pro" , " shrinker-rules-android.pro" , " okhttp-rules.pro " )
2525 signingConfig = signingConfigs.getByName(" debug" )
2626 }
2727 }
Original file line number Diff line number Diff line change 1+ # OkHttp ProGuard Rules
2+ # JSR 305 annotations are for embedding nullability information.
3+ -dontwarn javax.annotation.**
4+
5+ # A resource is loaded with a relative path so the package of this class must be preserved.
6+ -keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
7+
8+ # Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java.
9+ -dontwarn org.codehaus.mojo.animal_sniffer.*
10+
11+ # OkHttp platform used only on JVM and when Conscrypt dependency is available.
12+ -dontwarn okhttp3.internal.platform.ConscryptPlatform
13+ -dontwarn org.conscrypt.ConscryptHostnameVerifier
14+ -dontwarn org.conscrypt.Conscrypt$Version
15+ -dontwarn org.conscrypt.Conscrypt
16+
17+ # BouncyCastle
18+ -dontwarn org.bouncycastle.jsse.BCSSLParameters
19+ -dontwarn org.bouncycastle.jsse.BCSSLSocket
20+ -dontwarn org.bouncycastle.jsse.provider.BouncyCastleJsseProvider
21+
22+ # OpenJSSE
23+ -dontwarn org.openjsse.javax.net.ssl.SSLParameters
24+ -dontwarn org.openjsse.javax.net.ssl.SSLSocket
25+ -dontwarn org.openjsse.net.ssl.OpenJSSE
You can’t perform that action at this time.
0 commit comments