Skip to content

Commit

Permalink
[Android] Show deprecation warnings for Android tests (flutter#31246)
Browse files Browse the repository at this point in the history
  • Loading branch information
camsim99 authored Feb 10, 2022
1 parent 3d629c5 commit 963c449
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions shell/platform/android/test_runner/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 "=========================================="
Expand Down

0 comments on commit 963c449

Please sign in to comment.