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 <m.weghorn@posteo.de>
diff --git a/android/source/build.gradle b/android/source/build.gradle
index 8fd3de9..3157dcf 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.