From 58ed84f8cd169adbf50b222c3274ff6b93fb3eb2 Mon Sep 17 00:00:00 2001 From: Camille Simon <43054281+camsim99@users.noreply.github.com> Date: Thu, 17 Feb 2022 13:34:11 -0800 Subject: [PATCH] [Android] Show all deprecation warnings for tests (flutter/engine#31455) --- .../flutter/shell/platform/android/test_runner/build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/platform/android/test_runner/build.gradle b/engine/src/flutter/shell/platform/android/test_runner/build.gradle index 303a13cf31e..2b4748aa1f6 100644 --- a/engine/src/flutter/shell/platform/android/test_runner/build.gradle +++ b/engine/src/flutter/shell/platform/android/test_runner/build.gradle @@ -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" } }