android/source/build.gradle | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 55097433ed766a2ced6b87021a71c8a31cde9d99
Author: Michael Weghorn <[email protected]>
AuthorDate: Fri Dec 1 10:17:02 2023 +0100
Commit: Michael Weghorn <[email protected]>
CommitDate: Fri Dec 1 11:54:42 2023 +0100
android: Shown warnings about deprecated API usage
Configure the gradle build to show detailed warnings
about the use of deprecated API, instead of just
> Task :compileStrippedUIEditingDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
With this in place, 78 specific warnings about the use
of deprecated API are now shown in the build output,
which can be addressed at some point.
Change-Id: I9f3b484b6dfad1fc57895efa7d3426b625030ee7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160198
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <[email protected]>
diff --git a/android/source/build.gradle b/android/source/build.gradle
index 8fd3de9be2c3..3157dcf6ad6d 100644
--- a/android/source/build.gradle
+++ b/android/source/build.gradle
@@ -91,6 +91,11 @@ android {
}
}
+// show warnings about use of deprecated API
+tasks.withType(JavaCompile).configureEach {
+ options.deprecation = true
+}
+
/* remark inherited from makefile:
Then "assets". Let the directory structure under assets mimic
that under solver for now.