auto-parcel alternatives and similar packages
Based on the "Code Generation" category.
Alternatively, view auto-parcel alternatives based on common mentions on social networks and blogs.
-
Keploy
Unit, API & Integration Testing Agent for Developers. Generate tests, mocks/stubs for your APIs that actually work! -
Barber
DISCONTINUED. A custom view styling library for Android that generates the obtainStyledAttributes() and TypedArray boilerplate code for you. -
RoboCoP
Pure Java code generation tool for generating a fully functional ContentProvider for Android. -
1. AutoProxy
Annotation Processing Library. Generates proxy class on top of interface/abstract class, that allows to intercept calls. Also known as a design pattern: proxy, delegate, interceptor. -
Anakin
Codegeneration tool for isomorphic server and mobile Go apps with gRPC & Protobuf. Share code between your backend, Android & iOS app! :sun_with_face:
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of auto-parcel or a related project?
README
AutoParcel
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
- [ ] Dismantle instanceof checks speeding up runtime serialization [#16](/../../issues/16)
- [ ] Walking up superclasses to ensure the object is Parcelable [#7](/../../issues/7)