From 7dfa9e5f0204f8c16a39b4d0946d1b4d3b280df4 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 14 Mar 2020 18:36:22 +0200 Subject: [PATCH] add -Xlint:deprecation -Xlint:unchecked to compiler arguments --- app/build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index ab808a84..a4f21d87 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -63,4 +63,14 @@ dependencies { implementation 'com.fasterxml.jackson.module:jackson-modules-java8:2.10.2' implementation "androidx.navigation:navigation-fragment:$nav_version" implementation "androidx.navigation:navigation-ui:$nav_version" +} + +allprojects { + gradle.projectsEvaluated { + tasks.withType(JavaCompile) { + options.compilerArgs << + "-Xlint:deprecation" << + "-Xlint:unchecked" + } + } } \ No newline at end of file -- 2.39.5