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

how to build and run a helloworld project using parceler? #56

Closed
4570235 opened this issue Dec 11, 2014 · 1 comment
Closed

how to build and run a helloworld project using parceler? #56

4570235 opened this issue Dec 11, 2014 · 1 comment

Comments

@4570235
Copy link

4570235 commented Dec 11, 2014

I'm interesting in using parceler in my android project. I've read the introduction and some of the issues, but I am still unable to setup a simple helloworld project to run. It seems that the problem is no annotation class is generated.
Can anybody write an entry level manual to show, step by step, how to setup a helloworld project using parceler, with the IDE eclipse or IntelliJ ?

@johncarl81
Copy link
Owner

We have multiple example projects in the examples directory. Check out the /examples/app for a simple application that currently uses Google Auto. As for IDE integration, I've always advocated for using a CLI build tool like Maven or Gradle to complement your IDE environment. Parceler works best in this sort of build. Intellij builds do work, but I'm not sure about the final results. Personally, I've never focused on Ecliipse integration (see #30) and annotation processing support has been problematic for Parceler.

The procedure to getting started should be the following:

  1. Set up project as normal.
  2. Add Parceler dependencies to pom.xml or gradle.build file (see README for exact syntax).
  3. Annotate beans, serialize/deserialize using Parcels.wrap()/Parcels.unwrap().
  4. Build and enjoy.

TLDR: Check out example projects and use a CLI build tool.

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

2 participants