]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/build.gradle
enable viewBinding ("compile-time check for findViewById")
[mobile-ledger.git] / app / build.gradle
index ab808a84bb37ffe5b91c9e55008923762ec515b0..2c565250f75aaad88dfe77dac08a42420f32298e 100644 (file)
@@ -45,6 +45,7 @@ android {
     }
     productFlavors {
     }
+    viewBinding.enabled = true
 }
 
 dependencies {
@@ -63,4 +64,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