From: Reimar Döffinger Date: Fri, 1 May 2020 10:58:52 +0000 (+0200) Subject: Switch to app compat preferences. X-Git-Url: http://gitweb.fperrin.net/?p=Dictionary.git;a=commitdiff_plain;h=c76660b2772122109529d3616289980a7084eeeb Switch to app compat preferences. --- diff --git a/build.gradle b/build.gradle index 378cc82..aafb2b8 100644 --- a/build.gradle +++ b/build.gradle @@ -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 { diff --git a/res/layout/preference_activity.xml b/res/layout/preference_activity.xml new file mode 100644 index 0000000..1607909 --- /dev/null +++ b/res/layout/preference_activity.xml @@ -0,0 +1,10 @@ + + + + diff --git a/res/values-v11/styles.xml b/res/values-v11/styles.xml index 937ade5..f16a235 100644 --- a/res/values-v11/styles.xml +++ b/res/values-v11/styles.xml @@ -1,6 +1,7 @@