diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 05212a28fa..b042986cb4 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -131,6 +131,8 @@ dependencies { androidTestImplementation(libs.kotlin.test) baselineProfile(projects.benchmarks) + + lintChecks(libs.android.security.lint) } baselineProfile { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index ea68a516c5..9ce90b8a21 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,6 +3,7 @@ accompanist = "0.37.0" androidDesugarJdkLibs = "2.1.3" # AGP and tools should be updated together androidGradlePlugin = "8.7.3" +androidSecurityLint = "1.0.3" androidTools = "31.7.3" androidxActivity = "1.9.3" androidxAppCompat = "1.7.0" @@ -64,6 +65,7 @@ androidx-compose-ui-test = ["androidx-compose-ui-test", "androidx-compose-ui-tes [libraries] accompanist-permissions = { group = "com.google.accompanist", name = "accompanist-permissions", version.ref = "accompanist" } android-desugarJdkLibs = { group = "com.android.tools", name = "desugar_jdk_libs", version.ref = "androidDesugarJdkLibs" } +android-security-lint = { group = "com.android.security.lint", name = "lint", version.ref = "androidSecurityLint" } androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "androidxActivity" } androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "androidxAppCompat" } androidx-benchmark-macro = { group = "androidx.benchmark", name = "benchmark-macro-junit4", version.ref = "androidxMacroBenchmark" }