From 17cb9570578d61aa35905474c3a61d67a49e6975 Mon Sep 17 00:00:00 2001 From: Colin White Date: Wed, 15 May 2024 21:18:42 -0700 Subject: [PATCH 1/2] Reenable the debug build type for libraries. --- .../cash/redwood/buildsupport/RedwoodBuildPlugin.kt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/build-support/src/main/kotlin/app/cash/redwood/buildsupport/RedwoodBuildPlugin.kt b/build-support/src/main/kotlin/app/cash/redwood/buildsupport/RedwoodBuildPlugin.kt index c23ee0546e..bc8adf3c7f 100644 --- a/build-support/src/main/kotlin/app/cash/redwood/buildsupport/RedwoodBuildPlugin.kt +++ b/build-support/src/main/kotlin/app/cash/redwood/buildsupport/RedwoodBuildPlugin.kt @@ -184,16 +184,6 @@ class RedwoodBuildPlugin : Plugin { } } - plugins.withId("com.android.library") { - val androidComponents = extensions.getByType(AndroidComponentsExtension::class.java) - androidComponents.beforeVariants { - // Disable the debug build type for libraries because we only publish release. - if (it.buildType == "debug") { - it.enable = false - } - } - } - plugins.withId("com.android.application") { val android = extensions.getByName("android") as BaseExtension android.packagingOptions.apply { From b78d265b929aaa1eb8d00a2b8bc70f9216ae37f2 Mon Sep 17 00:00:00 2001 From: Colin White Date: Wed, 15 May 2024 23:00:00 -0700 Subject: [PATCH 2/2] Remove more code. --- .../app/cash/redwood/buildsupport/RedwoodBuildPlugin.kt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/build-support/src/main/kotlin/app/cash/redwood/buildsupport/RedwoodBuildPlugin.kt b/build-support/src/main/kotlin/app/cash/redwood/buildsupport/RedwoodBuildPlugin.kt index bc8adf3c7f..5f043a3b9c 100644 --- a/build-support/src/main/kotlin/app/cash/redwood/buildsupport/RedwoodBuildPlugin.kt +++ b/build-support/src/main/kotlin/app/cash/redwood/buildsupport/RedwoodBuildPlugin.kt @@ -190,12 +190,6 @@ class RedwoodBuildPlugin : Plugin { // Keep native symbols for diagnosing sample application crashes. doNotStrip("**/*.so") } - android.buildTypes.apply { - // Libraries don't build debug so fall back to release. - getByName("debug") { - it.matchingFallbacks += "release" - } - } val androidComponents = extensions.getByType(AndroidComponentsExtension::class.java) androidComponents.beforeVariants { // Disable the release build type for sample applications because we never need it.