From dfe5988e37831877c589de69757995a84f9c26a5 Mon Sep 17 00:00:00 2001 From: mkhutornyi Date: Tue, 30 Jan 2024 22:23:46 +0100 Subject: [PATCH] fix crash on tapping enable wallet in android --- android/app/proguard-rules.pro | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro index e553222dd682..426e99530435 100644 --- a/android/app/proguard-rules.pro +++ b/android/app/proguard-rules.pro @@ -11,6 +11,15 @@ -keep class com.expensify.chat.BuildConfig { *; } -keep, allowoptimization, allowobfuscation class expo.modules.** { *; } +# 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 + # Added from auto-generated missingrules.txt to allow build to succeed -dontwarn com.onfido.javax.inject.Inject -dontwarn javax.lang.model.element.Element