Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert #32, remove @Input annotation, add diagnostics #47

Merged
merged 4 commits into from
Jan 26, 2016

Conversation

benjamin-bader
Copy link
Collaborator

Fixes #40 and #46.

This fixes a bug wherein the dexcount task fails if the variant's output
is renamed after the dexcount plugin is applied and prior to task execution.

This also opts dexcount out of Gradle's incremental compilation cache.  The
proximate cause of this bug is that we're holding a stale `java.io.File`
object; the cure is to instead hold a reference to the variant's output.
This doesn't work with incremental compliation, because variant output
implementations aren't `Serializable` (noted in KeepSafe#32), and Gradle depends
on task state being serializable.  This mismatch means that dexcount will
appear to randomly crash.

The least-bad solution is to just remove the task-input annotation, and
run the count task every time.  Not great, but better than not working.

Fixes KeepSafe#40 and KeepSafe#46.
@benjamin-bader
Copy link
Collaborator Author

Travis is horked, probably due to a corrupted dependency cache. I validated these last night; merging anyways.

benjamin-bader added a commit that referenced this pull request Jan 26, 2016
Revert #32, remove `@Input` annotation, add diagnostics
@benjamin-bader benjamin-bader merged commit 0071d17 into KeepSafe:master Jan 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant