feat: add Google's security lints

This commit is contained in:
Harsh Shandilya 2025-01-13 21:11:23 +05:30
parent e2ae36616c
commit 276578d9da
3 changed files with 5 additions and 3 deletions

View file

@ -79,5 +79,5 @@ dependencies {
// Expose the generated version catalog API to the plugin.
implementation(files(libs::class.java.superclass.protectionDomain.codeSource.location))
lintChecks(libs.androidx.lint)
lintChecks(libs.androidx.lint.gradle)
}

View file

@ -1,5 +1,5 @@
/*
* Copyright © 2022-2024 Harsh Shandilya.
* Copyright © 2022-2025 Harsh Shandilya.
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
@ -52,6 +52,7 @@ class AndroidCommonPlugin : Plugin<Project> {
project.extensions.findByType<ApplicationExtension>()?.lint?.configureLint(project)
project.extensions.findByType<LibraryExtension>()?.lint?.configureLint(project)
val libs = project.extensions.getByName("libs") as LibrariesForLibs
project.dependencies.addProvider("lintChecks", libs.android.security.lints)
project.dependencies.addProvider("lintChecks", libs.slack.compose.lints)
project.dependencies.addProvider("lintChecks", libs.slack.lints)
}