Closed marceltex closed 6 months ago
Hi @marceltex,
Could you try adding the following to your app's proguard-rules.pro
:
-keep,allowobfuscation,allowshrinking class com.google.gson.reflect.TypeToken
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken
If that doesn't work could you please share the following info for your project:
Thanks.
@melissaosullivan Thank you for replying so quickly!
Sorry for the delay in my response.
I just tested and adding the Proguard rules you suggested fixes the crash. Thank you!
Quick follow up question, will these rules be added to the consumer-rules.pro
of the Plaid Link Android library in a future release, so that developers using the library don't have to manually add these rules to their app's Proguard rules file, or is there no plan to add these rules to consumer-rules.pro
?
These rules have been added to 4.2.0. Thanks!
The problem
When using version
4.1.1
of the SDK, the flow causes an app crash as soon as it tries to launch when using a build that has been obfuscated with Proguard. No crash seen when using a debug build.The Plaid Link loading spinner is displayed for a second or two and then the app crashes. See log below.
Nothing changed in our app's source code except updating the Plaid SDK to
4.1.1
. No crash was happening when using Plaid Link SDK4.0.0
.Environment
Steps to Reproduce
Launch the Plaid Link SDK version
4.1.1
on Proguard obfuscated build of app.Expected Result
The first screen of the flow should be shown.
Logs