diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro index e553222dd682..f393ff66bc25 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