From 963c449bf6b5efed1df45e4ef21483ed0b036df8 Mon Sep 17 00:00:00 2001 From: Camille Simon <43054281+camsim99@users.noreply.github.com> Date: Thu, 10 Feb 2022 10:50:10 -0800 Subject: [PATCH] [Android] Show deprecation warnings for Android tests (#31246) --- shell/platform/android/test_runner/build.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shell/platform/android/test_runner/build.gradle b/shell/platform/android/test_runner/build.gradle index 662a3139d325b..303a13cf31edc 100644 --- a/shell/platform/android/test_runner/build.gradle +++ b/shell/platform/android/test_runner/build.gradle @@ -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 "=========================================="