dallasgutauckis/parcelabler — pull request #5 by Alexey- (2013-06-24 10:00:12+00:00)
Title: Lists support, custom parceable or serializable classes support

Hello,

parcelabler is a great tool, but I believe it misses some features to be usable right now, namely lists support and custom classes suport.

Consider this simple example:

class Employee implements Serializable {

private String name;
private int salary;

//etc.

}

class Organization implements Parceable {

private String name;
private Employee employeeOfTheMonth;
private List employees;

//etc.

}

Parceable code can be generated for Organization, but it'll only include name field, which is not what a user might want.

I've made a few modifications to fix this problem.
I've also added warnings for fields that are incompatable with parceable interface or fields that might yield RuntimeException. I think that script should not dismiss any variables blindly. It's better to know that there was an error during code generation than to spend hours trying to debug why object works incorrectly after interface orientation.