From 22b5a4f82a82000bbaead867d79b06164ce1ab69 Mon Sep 17 00:00:00 2001 From: Jonas Kalderstam Date: Mon, 14 Aug 2023 22:01:40 +0200 Subject: [PATCH] Fixed crash with device sync (#84) --- app/proguard-rules.pro | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index daaf34fc6..85957aa6d 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -46,6 +46,16 @@ -keep, allowobfuscation, allowoptimization class * extends org.kodein.type.TypeReference -keep, allowobfuscation, allowoptimization class * extends org.kodein.type.JVMAbstractTypeToken$Companion$WrappingTest +# For Retrofit (not yet released in the lib) +# Keep generic signature of Call, Response (R8 full mode strips signatures from non-kept items). +-keep,allowobfuscation,allowshrinking interface retrofit2.Call +-keep,allowobfuscation,allowshrinking class retrofit2.Response + +# With R8 full mode generic signatures are stripped for classes that are not +# kept. Suspend functions are wrapped in continuations where the type argument +# is used. +-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation + ## Autogenerated in missing_rules.txt deep in build folder -dontwarn com.android.org.conscrypt.SSLParametersImpl -dontwarn org.apache.harmony.xnet.provider.jsse.SSLParametersImpl