Enable all java lint warnings

This commit is contained in:
Daniel Martí 2014-12-10 10:50:08 +01:00
parent c7e9e16a6b
commit 9d2a4eb999

View File

@ -51,6 +51,13 @@ android {
abortOnError false abortOnError false
} }
// Enable all java warnings
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:all"
}
}
} }
// TODO: This person took the example code below from another blogpost online, however // TODO: This person took the example code below from another blogpost online, however