Skip to content

Commit 3a33d84

Browse files
committed
[build] add android security lint
1 parent c96bd83 commit 3a33d84

10 files changed

Lines changed: 11 additions & 0 deletions

File tree

app/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ dependencies {
308308
lintChecks(libs.androidx.lint.gradle)
309309
lintChecks(libs.slack.lint.checks)
310310
lintChecks(libs.slack.lint.checks.compose)
311+
lintChecks(libs.android.securityLint)
311312
}
312313

313314
configurations {

components/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ dependencies {
118118
lintChecks(libs.androidx.lint.gradle)
119119
lintChecks(libs.slack.lint.checks)
120120
lintChecks(libs.slack.lint.checks.compose)
121+
lintChecks(libs.android.securityLint)
121122
}
122123

123124
// dokka {

coreinfra/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ dependencies {
9393
lintChecks(libs.androidx.lint.gradle)
9494
lintChecks(libs.slack.lint.checks)
9595
lintChecks(libs.slack.lint.checks.compose)
96+
lintChecks(libs.android.securityLint)
9697
}
9798

9899
// dokka {

features/buzzer/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ dependencies {
9999
lintChecks(libs.androidx.lint.gradle)
100100
lintChecks(libs.slack.lint.checks)
101101
lintChecks(libs.slack.lint.checks.compose)
102+
lintChecks(libs.android.securityLint)
102103
}
103104

104105
@OptIn(ExperimentalKotlinGradlePluginApi::class)

features/debug/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ dependencies {
125125
lintChecks(libs.androidx.lint.gradle)
126126
lintChecks(libs.slack.lint.checks)
127127
lintChecks(libs.slack.lint.checks.compose)
128+
lintChecks(libs.android.securityLint)
128129
}
129130

130131
@OptIn(ExperimentalKotlinGradlePluginApi::class)

features/encyclopaedia/android/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ dependencies {
103103
lintChecks(libs.androidx.lint.gradle)
104104
lintChecks(libs.slack.lint.checks)
105105
lintChecks(libs.slack.lint.checks.compose)
106+
lintChecks(libs.android.securityLint)
106107
}
107108

108109
@OptIn(ExperimentalKotlinGradlePluginApi::class)

features/timer/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ dependencies {
101101
lintChecks(libs.androidx.lint.gradle)
102102
lintChecks(libs.slack.lint.checks)
103103
lintChecks(libs.slack.lint.checks.compose)
104+
lintChecks(libs.android.securityLint)
104105
}
105106

106107
@OptIn(ExperimentalKotlinGradlePluginApi::class)

features/tonguetwister/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ dependencies {
111111
lintChecks(libs.androidx.lint.gradle)
112112
lintChecks(libs.slack.lint.checks)
113113
lintChecks(libs.slack.lint.checks.compose)
114+
lintChecks(libs.android.securityLint)
114115
}
115116

116117
@OptIn(ExperimentalKotlinGradlePluginApi::class)

features/tonguetwister/widget/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ dependencies {
9797
lintChecks(libs.androidx.lint.gradle)
9898
lintChecks(libs.slack.lint.checks)
9999
lintChecks(libs.slack.lint.checks.compose)
100+
lintChecks(libs.android.securityLint)
100101
}
101102

102103
@OptIn(ExperimentalKotlinGradlePluginApi::class)

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ ktlint = "14.2.0"
6262
ktlintComposeVersion = "0.6.2"
6363
leakcanaryAndroid = "2.14"
6464
lifecycleVersion = "2.11.0"
65+
androidSecurirtyLint = "1.0.4"
6566
lintGradle = "1.0.0"
6667
material3 = "1.4.0"
6768
material3Adaptive = "1.2.0"
@@ -217,6 +218,7 @@ leakcanary-android = { module = "com.squareup.leakcanary:leakcanary-android", ve
217218
leakcanary-android-instrumentation = { module = "com.squareup.leakcanary:leakcanary-android-instrumentation", version.ref = "leakcanaryAndroid" }
218219
leakcanary-android-release = { module = "com.squareup.leakcanary:leakcanary-android-release", version.ref = "leakcanaryAndroid" }
219220
leakcanary-object1-watcher-android = { module = "com.squareup.leakcanary:leakcanary-object-watcher-android", version.ref = "leakcanaryAndroid" }
221+
android-securityLint = { module = "com.android.security.lint:lint", version.ref = "androidSecurirtyLint" }
220222
mathjax-plugin = { module = "org.jetbrains.dokka:mathjax-plugin", version.ref = "androidDocumentationPlugin" }
221223
mikepenz-aboutlibraries-compose-core = { module = "com.mikepenz:aboutlibraries-compose-core", version.ref = "aboutLibraries" }
222224
navigation-runtime = { module = "androidx.navigation:navigation-runtime", version.ref = "navigationRuntimeVersion" }

0 commit comments

Comments
 (0)