From 000681c7023a742ad4e3612624541dc016efda56 Mon Sep 17 00:00:00 2001 From: Goooler Date: Sun, 26 Feb 2023 04:40:13 +0800 Subject: [PATCH] Add extra proguard rules for OkHttp (#3350) * Add extra proguard rules for OkHttp https://github.com/square/okhttp/blob/339732e3a1b78be5d792860109047f68a011b5eb/okhttp/src/jvmMain/resources/META-INF/proguard/okhttp3.pro#L11-L14 * Update proguard-rules.pro --- app/proguard-rules.pro | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 9ab3dd83f..0769626ae 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -78,6 +78,13 @@ -keepattributes Signature -keep class kotlin.coroutines.Continuation +# We can remove these rules after updating to OkHttp 4.10.1 +# https://github.com/square/okhttp/blob/339732e3a1b78be5d792860109047f68a011b5eb/okhttp/src/jvmMain/resources/META-INF/proguard/okhttp3.pro#L11-L14 +-dontwarn okhttp3.internal.platform.** +-dontwarn org.conscrypt.** +-dontwarn org.bouncycastle.** +-dontwarn org.openjsse.** + # preserve line numbers for crash reporting -keepattributes SourceFile,LineNumberTable -renamesourcefileattribute SourceFile