Skip to content

Commit 2c0c05f

Browse files
committed
update
1 parent c4e55b7 commit 2c0c05f

File tree

3 files changed

+41
-41
lines changed

3 files changed

+41
-41
lines changed

gradle/libs.versions.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[versions]
2+
android-lint = "30.3.1"
23
autovalue = "1.10.1"
34
coroutines = "1.6.4"
45
dagger = "2.43.2"
@@ -10,6 +11,11 @@ robolectric = "4.9"
1011
truth = "1.1.2"
1112

1213
[libraries]
14+
android-lint = { module = "com.android.tools.lint:lint", version.ref = "android-lint"}
15+
android-lint-api = { module = "com.android.tools.lint:lint-api", version.ref = "android-lint"}
16+
android-lint-checks = { module = "com.android.tools.lint:lint-checks", version.ref = "android-lint"}
17+
android-lint-tests = { module = "com.android.tools.lint:lint-tests", version.ref = "android-lint"}
18+
android-lint-testutils = { module = "com.android.tools:testutils", version.ref = "android-lint"}
1319
androidx-annotation = { module = "androidx.annotation:annotation", version = "1.5.0" }
1420
androidx-core = { module = "androidx.core:core", version = "1.2.0" }
1521
androidx-futures = { module = "androidx.concurrent:concurrent-futures", version = "1.1.0" }
@@ -32,7 +38,7 @@ androidx-test-junit = { module = "androidx.test.ext:junit", version = "1.1.4" }
3238
androidx-test-runner = { module = "androidx.test:runner", version = "1.5.1" }
3339
junit = { module = "junit:junit", version = "4.13.2" }
3440
kotlin-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutines" }
35-
mockito-core = { module = "org.mockito:mockito-core", version = "3.6.0"}
41+
mockito-core = { module = "org.mockito:mockito-core", version = "2.28.2"}
3642
mockito-dexmaker = { module = "com.linkedin.dexmaker:dexmaker-mockito", version = "2.28.3"}
3743
robolectric = {module = "org.robolectric:robolectric", version.ref = "robolectric" }
3844
truth = { module = "com.google.truth:truth", version.ref = "truth"}

tools/lint/lint.gradle

Lines changed: 0 additions & 40 deletions
This file was deleted.

tools/lint/lint.gradle.kts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Copyright 2019 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
plugins {
16+
id("org.jetbrains.kotlin.jvm")
17+
}
18+
19+
dependencies {
20+
compileOnly(libs.kotlin.stdlib)
21+
compileOnly(libs.android.lint.api)
22+
compileOnly(libs.android.lint.checks)
23+
24+
testImplementation(libs.junit)
25+
testImplementation(libs.android.lint)
26+
testImplementation(libs.android.lint.tests)
27+
testImplementation(libs.android.lint.testutils)
28+
}
29+
30+
tasks.jar {
31+
manifest {
32+
attributes("Lint-Registry-v2" to "com.google.firebase.lint.checks.CheckRegistry")
33+
}
34+
}

0 commit comments

Comments
 (0)