-
Notifications
You must be signed in to change notification settings - Fork 208
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
Support for Parceler, use getters and setters #38
Comments
Which version of |
3.0.0 via clojars.org |
I'm assuming if you don't use icepick and do the calls to Bundle manually with the same POJO you don't get any error, right? Can you post the code invocation that fails? |
Correct. Without Icepick I do: outState.putParcelable(BundleKeys.SELECTED_PROPERTIES, Parcels.wrap(mProperties)); and Parcelable parcelable = savedInstanceState.getParcelable(BundleKeys.SELECTED_PROPERTIES);
mProperties = Parcels.unwrap(parcelable); |
And how do you do with icepick? |
True. It feels as if Icepick and Parceler have to get married. It would probably work if I could pass a Parcelable to Icepick ... public static <T> android.os.Parcelable saveInstanceState(T t, android.os.Parcelable parcelable) ... such as here: Icepick.saveInstanceState(this, Parcels.wrap(mProperties)); But then I still could not use the |
Here's the discussion relative to Parceler and why I support AutoParcel as a better alternative. #20 If you use AutoParcel Icepick will work out of the box. I think you could use the new AutoValue Builder feature for Jackson/Gson support. BTW did your code fail to compile as I said? If not please let me know because that would be an icepick bug. |
No unforeseen error. After I removed the
|
Cool. If you're willing to try out AutoParcel and need help in setting it up let me know. |
Thank you for pointing me at #20 - I just read through the issue. I do not have time to integrate AutoParcel right now but I put it on my TODO list. Thank you for your time. |
@johnjohndoe FYI, I have a fork of Icepick that works as you describe with Parceler here: https://github.com/johncarl81/icepick/tree/parceler_support. Looks like I need to rebase onto the newest clojure branch. |
@johncarl81 version 3.0.0 fixes some bugs, but the previous version you're based on should still be usable. You could use this as a great opportunity to step up your Clojure game! Ping me if you have any questions |
@frankiesardo that's what I was thinking. Will do, Thanks! |
@johncarl81 Thanks for the note. |
I use POJOs with Jackson annotations and Parceler for my client model. Such a class looks like this:
When I let Icepick handle the instance state the following error occurs:
Do you know why this is happening?
The text was updated successfully, but these errors were encountered: