From b145e8163d8b48b3f25b685467f6679e640dcd1f Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Wed, 9 Feb 2022 20:46:13 +0100 Subject: [PATCH] add additional R8 rules so conversations work again (#2322) --- app/proguard-rules.pro | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 8b372a47d..ef750ac8c 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -51,6 +51,8 @@ public *; } +-keepclassmembers class com.keylesspalace.tusky.components.conversation.ConversationAccountEntity { *; } + # https://github.com/google/gson/blob/master/examples/android-proguard-example/proguard.cfg # Prevent proguard from stripping interface information from TypeAdapter, TypeAdapterFactory, @@ -71,6 +73,10 @@ -keep,allowobfuscation,allowshrinking class kotlin.collections.Map -keep,allowobfuscation,allowshrinking class retrofit2.Call +# https://r8.googlesource.com/r8/+/refs/heads/master/compatibility-faq.md#retrofit +-keepattributes Signature +-keep class kotlin.coroutines.Continuation + # preserve line numbers for crash reporting -keepattributes SourceFile,LineNumberTable -renamesourcefileattribute SourceFile