X-Git-Url: http://gitweb.fperrin.net/?p=Dictionary.git;a=blobdiff_plain;f=build.gradle;h=21bbe741e09e7a1be39024a534223a9b93b0a67c;hp=435c44d9da30dd1d847796f173992f068594fd41;hb=HEAD;hpb=bc3c0bd9df9044a154830101547070571640249b diff --git a/build.gradle b/build.gradle index 435c44d..21bbe74 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:3.1.4' + 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,9 +43,14 @@ 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 26 - buildToolsVersion "27.0.3" + compileSdkVersion 29 lintOptions { disable "MissingTranslation" } @@ -75,7 +82,14 @@ android { } defaultConfig { applicationId 'de.reimardoeffinger.quickdic' - targetSdkVersion 26 - resConfigs "de", "es", "fr", "it", "ja", "pt", "pt-rBR", "ru", "zh-rCN" + multiDexEnabled true + targetSdkVersion 29 + 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 } }