From f86db6fb3003b88a405ffa437b510414a1df2af1 Mon Sep 17 00:00:00 2001 From: Sam Judd Date: Fri, 26 Aug 2022 11:07:35 -0700 Subject: [PATCH] Allow Glide to build both release and debug variants again It's annoying because from Glide's perspective these are identical. However, Android Studio requires the debug variant to show syntax highlighting for instrumentation tests. Similarly the kotlin compile testing rule requires a release variant to output and validate API dumps. It seems a lot simpler to just give in and double compile/test everything Fixes #4881 PiperOrigin-RevId: 470288990 --- build.gradle | 9 --------- library/test/build.gradle | 1 + 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index ec6de4f931..cd9018a3d4 100644 --- a/build.gradle +++ b/build.gradle @@ -164,15 +164,6 @@ subprojects { project -> signingConfig signingConfigs.debug } } - - // It's faster to build only one variant, and debug / release - // are identical for Glide. - variantFilter { variant -> - if(variant.buildType.name == 'debug') { - variant.setIgnore(true) - } - } - } } diff --git a/library/test/build.gradle b/library/test/build.gradle index 31f5a29eb4..ec4ea82854 100644 --- a/library/test/build.gradle +++ b/library/test/build.gradle @@ -23,6 +23,7 @@ tasks.withType(JavaCompile) { afterEvaluate { lint.enabled = false compileReleaseJavaWithJavac.enabled = false + compileDebugJavaWithJavac.enabled = false } android.testOptions.unitTests.all { Test testTask ->