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

Remove unused proguard files and fix ./gradlew build not working because of failing tests #573

Merged
merged 1 commit into from
Feb 6, 2017

Conversation

SUPERCILEX
Copy link
Collaborator

@SUPERCILEX SUPERCILEX commented Feb 5, 2017

Otherwise, ./gradlew build fails.

…cause of failing tests

Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
# See:
# https://firebase.google.com/docs/auth/android/start/#proguard
-keepattributes Signature
-keepattributes *Annotation*
Copy link
Collaborator Author

@SUPERCILEX SUPERCILEX Feb 5, 2017

Choose a reason for hiding this comment

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

I don't think any of this is necessary because we add consumerProguardFiles.

// TODO Remove once either Facebook or Robolectric fix the crash: https://github.com/robolectric/robolectric/issues/2579#issuecomment-276526911
gradle.taskGraph.whenReady { graph ->
graph.allTasks.findAll { it.name ==~ /testReleaseUnitTest/ }*.enabled = false
}
Copy link
Collaborator Author

@SUPERCILEX SUPERCILEX Feb 5, 2017

Choose a reason for hiding this comment

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

This is a more permanent solution with a TODO that disables release unit tests for all gradle tasks. Unfortunately, I couldn't find a way to disable a task from within another task eg disable testReleaseUnitTest just for the build task which would have been preferable.

Copy link
Contributor

Choose a reason for hiding this comment

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

This LGTM, it's a better solution

@samtstern samtstern merged commit c7fd497 into firebase:version-1.2.0-dev Feb 6, 2017
@SUPERCILEX SUPERCILEX deleted the proguard-build branch February 6, 2017 17:22
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.

2 participants