mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[Android] Show all deprecation warnings for tests (flutter/engine#31455)
This commit is contained in:
parent
043d9d2e39
commit
58ed84f8cd
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user