Skip to content

Commit 963c449

Browse files
authored
[Android] Show deprecation warnings for Android tests (flutter#31246)
1 parent 3d629c5 commit 963c449

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

shell/platform/android/test_runner/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ apply plugin: "com.android.library"
1717

1818
rootProject.buildDir = project.property("build_dir")
1919

20+
// Shows warnings for usage of deprecated API usages.
21+
gradle.projectsEvaluated {
22+
tasks.withType(JavaCompile) {
23+
options.compilerArgs << "-Xlint:deprecation"
24+
}
25+
}
26+
2027
def availableProcessors = Runtime.runtime.availableProcessors() ?: 1
2128

2229
println "=========================================="

0 commit comments

Comments
 (0)