add -Xlint:deprecation -Xlint:unchecked to compiler arguments
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 14 Mar 2020 16:36:22 +0000 (18:36 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 14 Mar 2020 16:36:22 +0000 (18:36 +0200)
app/build.gradle

index ab808a8..a4f21d8 100644 (file)
@@ -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