X-Git-Url: http://gitweb.fperrin.net/?p=Dictionary.git;a=blobdiff_plain;f=build.gradle;h=21bbe741e09e7a1be39024a534223a9b93b0a67c;hp=5aa1859e00f40a8296b17350f3eedd912260efa7;hb=HEAD;hpb=5c624e1782dc8079123c70e536ba5a3877211fdd diff --git a/build.gradle b/build.gradle index 5aa1859..21bbe74 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:3.6.2' + classpath 'com.android.tools.build:gradle:4.1.1' } } @@ -27,6 +27,8 @@ dependencies { implementation files("$buildDir/icu4j-57.1.small.jar") { builtBy 'makesmallicu' } + implementation 'com.android.support:preference-v7:25.3.1' + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.1' } task makesmallicu (type:Exec, dependsOn: configurations.smallicu) { @@ -41,6 +43,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 { @@ -74,8 +82,14 @@ android { } defaultConfig { applicationId 'de.reimardoeffinger.quickdic' + multiDexEnabled true targetSdkVersion 29 - resConfigs "de", "es", "fr", "it", "ja", "pt", "pt-rBR", "ru", "zh-rCN" - minSdkVersion = 10 + resConfigs "de", "es", "eu", "fr", "it", "ja", "pt", "pt-rBR", "ru", "zh-rCN" + minSdkVersion 10 + } + compileOptions { + coreLibraryDesugaringEnabled true + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 } }