diff --git a/app/build.gradle b/app/build.gradle index 4ee9ce31..700b2f20 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -156,7 +156,7 @@ dependencies { implementation "com.madgag.spongycastle:core:$spongyCastleVersion" implementation "com.madgag.spongycastle:prov:$spongyCastleVersion" - def okhttp3Version = "3.8.0" + def okhttp3Version = "3.12.1" implementation "com.squareup.okhttp3:logging-interceptor:$okhttp3Version" implementation 'com.google.code.gson:gson:1.7.2' diff --git a/app/proguard-rules.txt b/app/proguard-rules.txt index 8fceb5b1..60a43a88 100644 --- a/app/proguard-rules.txt +++ b/app/proguard-rules.txt @@ -33,12 +33,14 @@ -keep,includedescriptorclasses class net.fortuna.ical4j.** { *; } # keep all model classes (properties/factories, created at runtime) # okhttp --dontwarn java.nio.file.** # not available on Android --dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement --dontnote com.android.org.conscrypt.SSLParametersImpl --dontnote org.apache.harmony.xnet.provider.jsse.SSLParametersImpl --dontnote dalvik.system.CloseGuard --dontnote sun.security.ssl.SSLContextImpl +# JSR 305 annotations are for embedding nullability information. +-dontwarn javax.annotation.** +# A resource is loaded with a relative path so the package of this class must be preserved. +-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase +# Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java. +-dontwarn org.codehaus.mojo.animal_sniffer.* +# OkHttp platform used only on JVM and when Conscrypt dependency is available. +-dontwarn okhttp3.internal.platform.ConscryptPlatform # DAVdroid + libs -keep,includedescriptorclasses class syncadapter.** { *; } # all DAVdroid code and deps are required