Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashing when minifyEnabled = true, and adding the new MADA card. #24

Open
arslanbhutta opened this issue Apr 12, 2022 · 0 comments

Comments

@arslanbhutta
Copy link

Everything is working in the DEBUG version of the app, i.e when minifyEnabled = false.
But when we generate the release build for google play store and set minifyEnabled = true in build.gradle file then adding a new card is working fine except for the MADA card. 
When we try to add mada card then following exception occurs:

Exception:

Fatal Exception: java.lang.RuntimeException: Parcelable encountered IOException writing serializable object (name = com.payfort.fortpaymentsdk.domain.model.SdkResponse)
       at android.os.Parcel.writeSerializable(Parcel.java:2181)
       at android.os.Parcel.writeValue(Parcel.java:1947)
       at android.os.Parcel.writeArrayMapInternal(Parcel.java:1039)
       at android.os.BaseBundle.writeToParcelInner(BaseBundle.java:1620)
       at android.os.Bundle.writeToParcel(Bundle.java:1304)
       at android.os.Parcel.writeBundle(Parcel.java:1108)
       at android.content.Intent.writeToParcel(Intent.java:11143)
       at android.app.IActivityClientController$Stub$Proxy.finishActivity(IActivityClientController.java:1490)
       at android.app.ActivityClient.finishActivity(ActivityClient.java:153)
       at android.app.Activity.finish(Activity.java:6539)
       at android.app.Activity.finish(Activity.java:6573)
       at com.payfort.fortpaymentsdk.presentation.init.InitSecureConnectionActivity.finish(InitSecureConnectionActivity.kt:112)
       at com.payfort.fortpaymentsdk.presentation.init.InitSecureConnectionActivity$setupLocalBroadCastConfigs$1.onReceive(InitSecureConnectionActivity.kt:94)
       at androidx.localbroadcastmanager.content.LocalBroadcastManager.executePendingBroadcasts(LocalBroadcastManager.java:313)
       at androidx.localbroadcastmanager.content.LocalBroadcastManager$1.handleMessage(LocalBroadcastManager.java:121)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loopOnce(Looper.java:233)
       at android.os.Looper.loop(Looper.java:344)
       at android.app.ActivityThread.main(ActivityThread.java:8191)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)

As per my findings, com.payfort.fortpaymentsdk.domain.model.SdkResponse is a Serializable class. it has the following attribute.private Map<String, Object> responseMap;Object must be Serializable. But We try to add a MADA card then it returns the exception.
Please guide me to resolve this issue as we are unable to upload the app on play store with this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant