Auto-update dependencies.#2783
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the Android Gradle Plugin (AGP) to version 9.2.1 and increments the Android Lint dependencies to version 32.2.1. The reviewer suggested moving these hardcoded Lint versions into the project's Version Catalog to maintain a single source of truth and ensure consistency with the AGP version, or at least using a local variable to reduce repetition.
| compileOnly("com.android.tools.lint:lint-api:32.2.1") | ||
| testImplementation("com.android.tools.lint:lint:32.2.1") | ||
| testImplementation("com.android.tools.lint:lint-tests:32.2.1") |
There was a problem hiding this comment.
The Android Lint version is hardcoded and repeated across multiple dependencies. Since the project uses a Version Catalog (libs.versions.toml), it is recommended to define the Lint version there to maintain a single source of truth and ensure it stays in sync with the Android Gradle Plugin (AGP) version (the Lint version 32.2.1 correctly corresponds to AGP 9.2.1). At a minimum, using a local variable within this block reduces repetition and simplifies future updates.
val lintVersion = "32.2.1"
compileOnly("com.android.tools.lint:lint-api:$lintVersion")
testImplementation("com.android.tools.lint:lint:$lintVersion")
testImplementation("com.android.tools.lint:lint-tests:$lintVersion")
Brought to you by your friendly Repository Gardener.