From c7a27481f96b0abdfd72e80b839404dbd3a0462b Mon Sep 17 00:00:00 2001 From: LoveSy Date: Mon, 27 Feb 2023 15:42:07 +0800 Subject: [PATCH] Update proguard rules to fix module page crash --- app/proguard-rules.pro | 11 +++++++++++ app/shared/src/main/AndroidManifest.xml | 3 +-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 33f49bd0e..ac99cce4d 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -33,6 +33,17 @@ public void d(**); } +# https://github.com/square/retrofit/issues/3751#issuecomment-1192043644 +# 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 + + # Excessive obfuscation -repackageclasses 'a' -allowaccessmodification diff --git a/app/shared/src/main/AndroidManifest.xml b/app/shared/src/main/AndroidManifest.xml index 188b4e220..440ebca08 100644 --- a/app/shared/src/main/AndroidManifest.xml +++ b/app/shared/src/main/AndroidManifest.xml @@ -11,8 +11,7 @@ + android:maxSdkVersion="29" />