Skip to content

Commit 94f92f6

Browse files
committed
Android : added review comments point
1 parent 85a6ba6 commit 94f92f6

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ subprojects {
3434
}
3535
}
3636

37+
tasks.withType(JavaCompile).configureEach {
38+
it.options.compilerArgs += [
39+
"-Xlint:all"
40+
]
41+
if (rootProject.hasProperty('failOnWarnings') && rootProject.failOnWarnings.toBoolean()) {
42+
it.options.compilerArgs += ["-Werror"]
43+
}
44+
}
45+
3746
repositories {
3847
maven { // The google mirror is less flaky than mavenCentral()
3948
url "https://maven-central.storage-download.googleapis.com/maven2/"

0 commit comments

Comments
 (0)