Crash on sample application

I have a crash while trying to execute the sample project running on a Emulator.

I just trying to make a simple payment using cash.

Process: co.poynt.samples, PID: 29911
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=13132, result=-1, data=Intent { act=poynt.intent.action.COLLECT_PAYMENT_RESULT (has extras) }} to activity {co.poynt.samples/co.poynt.samples.SampleActivity}: android.os.BadParcelableException: Parcelable protocol requires a Parcelable.Creator object called CREATOR on class java.util.GregorianCalendar
at android.app.ActivityThread.deliverResults(ActivityThread.java:3351)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3394)
at android.app.ActivityThread.access$1300(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1244)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.os.BadParcelableException: Parcelable protocol requires a Parcelable.Creator object called CREATOR on class java.util.GregorianCalendar
at android.os.Parcel.readParcelableCreator(Parcel.java:2156)
at android.os.Parcel.readParcelable(Parcel.java:2097)
at co.poynt.api.model.Transaction.readFromParcel(Transaction.java:245)
at co.poynt.api.model.Transaction$1.createFromParcel(Transaction.java:285)
at co.poynt.api.model.Transaction$1.createFromParcel(Transaction.java:277)
at android.os.Parcel.createTypedArrayList(Parcel.java:1775)
at co.poynt.os.model.Payment.(Payment.java:212)
at co.poynt.os.model.Payment.(Payment.java:15)
at co.poynt.os.model.Payment$1.createFromParcel(Payment.java:228)
at co.poynt.os.model.Payment$1.createFromParcel(Payment.java:226)
at android.os.Parcel.readParcelable(Parcel.java:2104)
at android.os.Parcel.readValue(Parcel.java:2013)
at android.os.Parcel.readArrayMapInternal(Parcel.java:2314)
at android.os.Bundle.unparcel(Bundle.java:249)
at android.os.Bundle.getParcelable(Bundle.java:1206)
at android.content.Intent.getParcelableExtra(Intent.java:4652)
at co.poynt.samples.SampleActivity.onActivityResult(SampleActivity.java:443)
at android.app.Activity.dispatchActivityResult(Activity.java:5423)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3347)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3394)
at android.app.ActivityThread.access$1300(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1244)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)

Hi there,

Thanks for reporting this. In your build.gradle please replace:

compile 'co.poynt.api:android-api-model:1.2.25@jar'
compile 'co.poynt.android.sdk:poynt-sdk:1.2.7-SNAPSHOT@aar'

with

compile 'co.poynt.api:android-api-model:1.2.32@jar'
compile 'co.poynt.android.sdk:poynt-sdk:1.2.8@aar'

I’ll get it fixed on github as well.

It’s been fixed on github as well.