From: Damyan Ivanov Date: Sat, 14 Mar 2020 16:36:22 +0000 (+0200) Subject: add -Xlint:deprecation -Xlint:unchecked to compiler arguments X-Git-Tag: v0.12.0~75 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=7dfa9e5f0204f8c16a39b4d0946d1b4d3b280df4;p=mobile-ledger.git add -Xlint:deprecation -Xlint:unchecked to compiler arguments --- 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