[Android] Show deprecation warnings for Android tests (flutter/engine#31246)

This commit is contained in:
Camille Simon
2022-02-10 10:50:10 -08:00
committed by GitHub
parent d953d54b1d
commit 147d162382

View File

@@ -17,6 +17,13 @@ apply plugin: "com.android.library"
rootProject.buildDir = project.property("build_dir")
// Shows warnings for usage of deprecated API usages.
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:deprecation"
}
}
def availableProcessors = Runtime.runtime.availableProcessors() ?: 1
println "=========================================="