payfort / rn-amazonpaymentservices

React Native package for Amazon Payment Services native mobile SDKs
MIT License
3 stars 4 forks source link

response_code 000006 on android release build #8

Open FURY-PERSON opened 1 year ago

FURY-PERSON commented 1 year ago

Everything works fine in android debug mode, but get response_code 000006 in release mode. (standard view)

In android/app/build.gradle:

enableProguardInReleaseBuilds iquals true   
shrinkResources iquals true. 

I solved it adding in the proguard-rules.pro:

-dontwarn com.payfort.**
-keep class com.payfort.** { *; }
-keep public interface com.payfort.** {*;}

I guess need to add this to readme in android Installation section.