Git Product home page Git Product logo

Comments (9)

johncarl81 avatar johncarl81 commented on August 10, 2024

Looks like that should work, is the annotation processor running? Does it produce a class named `org.parceler.Parceler$$Parcels.java' in your gradle generated sources directory?

from parceler.

johncarl81 avatar johncarl81 commented on August 10, 2024

@devilmac, any changes on this? Can I close?

from parceler.

devilmac avatar devilmac commented on August 10, 2024

Hi johncarl81,
sorry for the late but these days I don't had internet connection. Sorry again for my ignorance but in which directory could be this class found?

from parceler.

johncarl81 avatar johncarl81 commented on August 10, 2024

You will find the generated java source files in the build/classes/release/... directory under a gradle build. If Parceler is running you'll find the Parceler$$Parcels.java class generated there.

Your Foo class is compiled under the main source, not in the library you mentioned, correct?

from parceler.

johncarl81 avatar johncarl81 commented on August 10, 2024

@devilmac, any movement on this issue?

from parceler.

johncarl81 avatar johncarl81 commented on August 10, 2024

Im going to close... feel free to reopen if this is still a problem.

from parceler.

devilmac avatar devilmac commented on August 10, 2024

Hi johncarl81,
I'm very very sorry for my inaction on this issue :(

I hope tomorrow I can verify if the class Parceler$$Parcels.java is generated on this directory, depending on my .
Yes, my class Foo is a class of my project, not of the library.

from parceler.

johncarl81 avatar johncarl81 commented on August 10, 2024

Your setup should work then with the following:

@Parcel
public class Foo extends FooParent {
//...
}
Foo foo = new Foo();
Parcelable fooParcelable = Parcels.wrap(foo);
//... write to bundle... read from bundle...
Foo foo2 = Parcels.unwrap(fooParcelable);

FYI, Parceler 0.2.11 was just released if you'd like to upgrade.

from parceler.

devilmac avatar devilmac commented on August 10, 2024

Hi, john

thanks for the suggestions :)

from parceler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.