From dfe5988e37831877c589de69757995a84f9c26a5 Mon Sep 17 00:00:00 2001 From: mkhutornyi Date: Tue, 30 Jan 2024 22:23:46 +0100 Subject: [PATCH 1/2] 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 From e86ab89f1471cdfd161cf899adc83e8370332858 Mon Sep 17 00:00:00 2001 From: Mykhailo Khutornyi <97676131+mkhutornyi@users.noreply.github.com> Date: Tue, 30 Jan 2024 23:21:00 +0100 Subject: [PATCH 2/2] Update android/app/proguard-rules.pro Co-authored-by: Francois Laithier --- android/app/proguard-rules.pro | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro index 426e99530435..f393ff66bc25 100644 --- a/android/app/proguard-rules.pro +++ b/android/app/proguard-rules.pro @@ -12,13 +12,13 @@ -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 +-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 +# 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