plaid / plaid-link-android

Plaid Link Android SDK
https://plaid.com/docs/link/android
MIT License
114 stars 48 forks source link

Plaid fails to launch when minify is enabled #245

Closed griffinsorrentino closed 1 year ago

griffinsorrentino commented 1 year ago

The problem

Using the example code for the Plaid library to launch the new Plaid view Plaid.create(application, linkTokenConfiguration).open(activity), the view launches perfectly fine when running locally however when a release APK is generated (specifically when minify is enabled) the view fails to launch.

Environment

Android OS Version 13 (33)
Android Devices/Emulators Pixel 6 Physical Device

Steps to Reproduce

To repro, run the app using the code specified above with minifyEnabled true and shrinkResources true. Note: You cannot run the app in debug mode, it has to be a signed generated APK or run using the standard run mode. debuggable must also be false

Expected Result

The view should open

Code To Reproduce Issue

Relavent gradle build type code

buildTypes {
        release {
            minifyEnabled true
            shrinkResources true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

The code to launch the view: Plaid.create(application, linkTokenConfiguration).open(activity)