From 98448e413c8e28c3626dcf33e94c42884e2ff4bb Mon Sep 17 00:00:00 2001 From: Zac Sweers Date: Thu, 12 Dec 2024 22:36:40 -0500 Subject: [PATCH] Prepare for release 0.23.5. --- CHANGELOG.md | 7 +++++++ gradle.properties | 2 +- .../src/main/kotlin/foundry/gradle/FoundryProperties.kt | 6 ++++++ .../src/main/kotlin/foundry/gradle/lint/LintTasks.kt | 5 ++++- 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1519a09bf..fd02f9e4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ Changelog **Unreleased** -------------- +0.23.5 +------ + +_2024-12-12_ + +- Don't apply checkDependencies in test projects' lint. + 0.23.4 ------ diff --git a/gradle.properties b/gradle.properties index a491cc624..bfd33a30a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -52,4 +52,4 @@ POM_DEVELOPER_ID=slackhq POM_DEVELOPER_NAME=Slack Technologies, Inc. POM_DEVELOPER_URL=https://github.com/slackhq POM_INCEPTION_YEAR=2022 -VERSION_NAME=1.0.0-SNAPSHOT +VERSION_NAME=0.23.5 diff --git a/platforms/gradle/foundry-gradle-plugin/src/main/kotlin/foundry/gradle/FoundryProperties.kt b/platforms/gradle/foundry-gradle-plugin/src/main/kotlin/foundry/gradle/FoundryProperties.kt index 4998b3a27..b58291e96 100644 --- a/platforms/gradle/foundry-gradle-plugin/src/main/kotlin/foundry/gradle/FoundryProperties.kt +++ b/platforms/gradle/foundry-gradle-plugin/src/main/kotlin/foundry/gradle/FoundryProperties.kt @@ -385,6 +385,12 @@ internal constructor( public val enableLintInAndroidTestProjects: Boolean get() = booleanProperty("foundry.lint.enableOnAndroidTestProjects", false) + /** + * Proxy flag for lint.checkDependencies. Usually enabled for application projects. + */ + public val lintCheckDependencies: Boolean + get() = booleanProperty("foundry.lint.checkDependencies", false) + /** If enabled, enables emulator.wtf for androidTest() uses. */ public val enableEmulatorWtfForAndroidTest: Boolean get() = booleanProperty("foundry.emulatorwtf.enable", false) diff --git a/platforms/gradle/foundry-gradle-plugin/src/main/kotlin/foundry/gradle/lint/LintTasks.kt b/platforms/gradle/foundry-gradle-plugin/src/main/kotlin/foundry/gradle/lint/LintTasks.kt index c3d8e9bb1..4ce3321e0 100644 --- a/platforms/gradle/foundry-gradle-plugin/src/main/kotlin/foundry/gradle/lint/LintTasks.kt +++ b/platforms/gradle/foundry-gradle-plugin/src/main/kotlin/foundry/gradle/lint/LintTasks.kt @@ -324,7 +324,10 @@ internal object LintTasks { // see https://issuetracker.google.com/issues/265962219 disable += "EnsureInitializerMetadata" - if (androidExtensionNullable is ApplicationAndroidComponentsExtension) { + if ( + androidExtensionNullable is ApplicationAndroidComponentsExtension && + !foundryProperties.isTestLibrary + ) { checkDependencies = true }