]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - build.gradle
Switch to app compat preferences.
[Dictionary.git] / build.gradle
index 378cc827cb057bdbed50f4f2095ffceab1f7a858..aafb2b8562856628d258ed2c6b999c80a33297ce 100644 (file)
@@ -27,6 +27,7 @@ dependencies {
     implementation files("$buildDir/icu4j-57.1.small.jar") {
         builtBy 'makesmallicu'
     }
+    implementation 'com.android.support:preference-v7:25.3.1'
 }
 
 task makesmallicu (type:Exec, dependsOn: configurations.smallicu) {
@@ -41,6 +42,12 @@ task makesmallicu (type:Exec, dependsOn: configurations.smallicu) {
 
 def utildir = hasProperty("quickdicUtilDir") ? quickdicUtilDir : "Util"
 
+allprojects {
+    tasks.withType(JavaCompile) {
+        options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
+    }
+}
+
 android {
     compileSdkVersion 29
     lintOptions {