]> git.ktnx.net Git - mobile-ledger.git/commitdiff
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 ab808a84bb37ffe5b91c9e55008923762ec515b0..a4f21d8739b5ff0f36448c8415d9ec9afe2fc356 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