Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[Android] Show all deprecation warnings for tests #31455

Merged
merged 10 commits into from
Feb 17, 2022
4 changes: 3 additions & 1 deletion shell/platform/android/test_runner/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ apply plugin: "com.android.library"
rootProject.buildDir = project.property("build_dir")

// Shows warnings for usage of deprecated API usages.
// TODO(camsim99): Make deprecation warnings fatal and remove limit when all
// 434 (at the time of this comment) deprecations are fixed.
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:deprecation"
options.compilerArgs << "-Xlint:deprecation" << "-Xmaxwarns" << "434"
}
}

Expand Down