Skip to content
This repository has been archived by the owner on May 23, 2020. It is now read-only.

Use AutoValue for data classes #75

Merged
merged 1 commit into from
Oct 31, 2016
Merged

Use AutoValue for data classes #75

merged 1 commit into from
Oct 31, 2016

Conversation

dlew
Copy link
Contributor

@dlew dlew commented Oct 31, 2016

Moving to AutoValue makes the whole library more stable and also
simpler to maintain.

Only downside is that this changes the method signature on
RequestPermissionsResult.permissions(), since String[] is not allowed
in AutoValue classes.

Moving to AutoValue makes the whole library more stable and also
simpler to maintain.

Only downside is that this changes the method signature on
RequestPermissionsResult.permissions(), since String[] is not allowed
in AutoValue classes.
@dlew dlew merged commit 287fe90 into 2.x Oct 31, 2016
@dlew dlew deleted the dlew/autovalue branch October 31, 2016 19:56
@@ -5,6 +5,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.13.0'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need this anymore with 2.2.0 as of gadle build tools. Use 'annotationProcessor' instead

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, though it looks like (from the docs) you can only do this if you're using Jack & Jill. Is that false? http://tools.android.com/tech-docs/jackandjill#TOC-Repackaging-support

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup this is false. You don't need to use Jack & Jill.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, good to know. Here's the fix: #78

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants