Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grandstaish/paperparcel
Auto-generate Parcelable implementations for Java and Kotlin
https://github.com/grandstaish/paperparcel
android android-parcelable annotation-processor autovalue-extension
Last synced: about 1 month ago
JSON representation
Auto-generate Parcelable implementations for Java and Kotlin
- Host: GitHub
- URL: https://github.com/grandstaish/paperparcel
- Owner: grandstaish
- License: apache-2.0
- Created: 2015-12-19T15:21:10.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-11-24T14:42:58.000Z (about 5 years ago)
- Last Synced: 2024-07-29T11:35:55.001Z (5 months ago)
- Topics: android, android-parcelable, annotation-processor, autovalue-extension
- Language: Java
- Homepage: https://grandstaish.github.io/paperparcel/
- Size: 15.9 MB
- Stars: 496
- Watchers: 9
- Forks: 29
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-kotlin-libraries-for-android - PaperParcel - Boilerplate reduction library written specifically for working with Kotlin data classes on Android. (<a name="utility"></a>Utility <sup>[Back ⇈](#contents)</sup>)
- awesome-kotlin-android - paperparcel - 自动生成Parcelable 代码的注解处理器 🔥🔥 (开源库 / 其他)
README
# This project is deprecated
It will still be maintained, but no new features will be added. Please use [Parcelize](https://kotlinlang.org/docs/tutorials/android-plugin.html#parcelable-implementations-generator), as it is the official way of generating `Parcelable` implementations on Android.# PaperParcel
[![Build Status](https://travis-ci.org/grandstaish/paperparcel.svg?branch=master)](https://travis-ci.org/grandstaish/paperparcel)
PaperParcel is an annotation processor that automatically generates the `CREATOR` and `writeToParcel(...)` implementations for you when writing [Parcelable](http://developer.android.com/intl/es/reference/android/os/Parcelable.html) objects. PaperParcel fully supports both Java and Kotlin (including [Kotlin Data Classes](https://kotlinlang.org/docs/reference/data-classes.html)). Additionally, PaperParcel supports Google's [AutoValue](https://github.com/google/auto/tree/master/value) via an [AutoValue Extension](http://jakewharton.com/presentation/2016-03-08-ny-android-meetup/).
For more information please see [the website](http://grandstaish.github.io/paperparcel/).
## Download
**Java:**
```groovy
dependencies {
compile 'nz.bradcampbell:paperparcel:2.0.8'
annotationProcessor 'nz.bradcampbell:paperparcel-compiler:2.0.8'
}
```**Kotlin:**
```groovy
apply plugin: 'kotlin-kapt'dependencies {
compile 'nz.bradcampbell:paperparcel:2.0.8'
compile 'nz.bradcampbell:paperparcel-kotlin:2.0.8' // Optional
kapt 'nz.bradcampbell:paperparcel-compiler:2.0.8'
}
```Development snapshots are available on [JFrog OSS Artifactory](https://oss.jfrog.org/oss-snapshot-local).
## License
Copyright 2016 Bradley Campbell.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.