Don't warn in tests for deprecation

This change removes hundreds of lines of useless warnings, since
tests must check the continued working of old and deprecated methods.

Test: build manually and observe the warnings are gone
Flag: EXEMPT test-only
Change-Id: Ie50b2f35b09041e8e201b30b1e575e66e045bc44
This commit is contained in:
Chalard Jean 2025-05-09 13:19:11 +09:00
commit 87df372535

View file

@ -155,6 +155,9 @@ java_defaults {
// if sdk_version="" this gets automatically included, but here we need to add manually.
"framework-res",
],
// Tests must check a large number of deprecated methods and warning about it
// sends hundreds of warning lines flooding the useful warnings.
kotlincflags: ["-Xsuppress-warning=DEPRECATION"],
}
// defaults for tests that need to build against framework-connectivity's @hide APIs, but also
@ -178,6 +181,9 @@ java_defaults {
// if sdk_version="" this gets automatically included, but here we need to add manually.
"framework-res",
],
// Tests must check a large number of deprecated methods and warning about it
// sends hundreds of warning lines flooding the useful warnings.
kotlincflags: ["-Xsuppress-warning=DEPRECATION"],
defaults_visibility: ["//packages/modules/Connectivity/tests:__subpackages__"],
}