frankiesardo/auto-parcel
frankiesardo/auto-parcel has 1,358 GitHub stars and 83 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-07 07:23 UTC. Last push 2017-02-12.
Android Parcelable models made easy
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalAutoParcel
AutoParcel is an AutoValue extension that enables Parcelable values generation.
Just add implements Parcelable to your @AutoValue annotated models.
@AutoValue
abstract class Person implements Parcelable {
abstract String name();
abstract List<Address> addresses();
abstract Map<Person, Integer> likes();
static Person create(String name, List<Address> addresses, Map<Person, Integer> likes) {
return new AutoValue_Person(name, addresses, likes);
}
}
That's that simple. And you get Parcelable, hashCode, equals and toString implementations for free.
As your models evolve you don't need to worry about keeping all the boilerplate in sync with the new implementation, it's already taken care of.
Download
Use the same dependency qualifier that you would use for AutoValue (e.g. apt)
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
repositories {
mavenCentral()
jcenter()
maven {url "https://clojars.org/repo/"}
}
dependencies {
apt 'frankiesardo:auto-parcel:{{latest-version}}'
}
Notice the clojars line in your maven repositories
I recommend using the android-apt plugin so that Android Studio picks up the generated files.
Check out the sample project for a working example.
Roadmap
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,836 starspublic-apis/public-apis
A collective list of free APIs
497,076 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
441,480 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,157 stars