paypal / paypal-here-sdk-android-distribution

Add credit card (swipe & key-in) capabilities to your Android app
Other
84 stars 95 forks source link

Proguard causes NoSuchMethodException #194

Open DowsingUK opened 3 years ago

DowsingUK commented 3 years ago

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

Any way to setup proguard at least to bypass it?

I have tried: -keep class com.paypal.* { ; }
with no luck at all, everything compiles right but every time I want to call a method from PPH_SDK it crashes with NoSuchMethodException, could you help me here, thank you

EarthyOrange commented 3 years ago

Hello @DowsingUK! Thank you for submitting this bug report.

Is the ask to add pro guard to the SDK artefact?

DowsingUK commented 3 years ago

Would be great if you share some rules to compile using minifyEnabled true

EarthyOrange commented 3 years ago

@DowsingUK Can you also please share the whole stack trace of the crash here?

DowsingUK commented 3 years ago

Well pretty much the stack it's telling there's NoSuchMethodException in just one line

EarthyOrange commented 3 years ago

Apologies, I lost track of this issue. We have created a ticket internally to track this issue. This thread will be updated once it is picked up for work.