From a54062b9419029bb86b032adc5ce72e8a7d92c47 Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 17 Jun 2020 20:47:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 265d741ee..1e827329c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -66,6 +66,7 @@ android { applicationIdSuffix '.debug' versionNameSuffix 'debug' minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } android.applicationVariants.all { variant -> variant.outputs.all { @@ -86,7 +87,7 @@ android { } compileOptions { // Flag to enable support for the new language APIs - //coreLibraryDesugaringEnabled true + coreLibraryDesugaringEnabled true // Sets Java compatibility to Java 8 sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 @@ -108,6 +109,7 @@ kapt { } dependencies { + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.5' implementation fileTree(dir: 'libs', include: ['*.jar']) testImplementation 'junit:junit:4.13' androidTestImplementation 'androidx.test:runner:1.2.0' @@ -196,10 +198,4 @@ dependencies { implementation 'fadeapp.widgets:scrollless-recyclerView:1.0.2' } -apply plugin: 'com.google.gms.google-services' - -//afterEvaluate { -// for (Task task : project.tasks.matching { it.name.startsWith('crashlyticsUploadDeobs') }) { -// task.enabled = false -// } -//} \ No newline at end of file +apply plugin: 'com.google.gms.google-services' \ No newline at end of file