Oussama Ben Abdelbaki | 9a945cf | 2019-12-05 14:44:58 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2019 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Owen Gray | a7530b8 | 2020-09-22 15:07:02 -0400 | [diff] [blame] | 17 | import androidx.build.LibraryType |
Oussama Ben Abdelbaki | 9a945cf | 2019-12-05 14:44:58 -0500 | [diff] [blame] | 18 | |
Oussama Ben Abdelbaki | 9a945cf | 2019-12-05 14:44:58 -0500 | [diff] [blame] | 19 | plugins { |
| 20 | id("AndroidXPlugin") |
| 21 | id("kotlin") |
| 22 | } |
| 23 | |
Alan Viverette | 54269b0 | 2022-07-01 10:56:43 -0400 | [diff] [blame] | 24 | sourceSets { |
| 25 | test.resources.srcDirs( |
| 26 | project(":appcompat:appcompat-lint:integration-tests").projectDir.toString() + "/src/main", |
| 27 | project(":appcompat:appcompat-lint:integration-tests").projectDir.toString() + "/src/res" |
| 28 | ) |
| 29 | } |
| 30 | |
Oussama Ben Abdelbaki | 9a945cf | 2019-12-05 14:44:58 -0500 | [diff] [blame] | 31 | dependencies { |
Aurimas Liutikas | b6af5fb | 2021-05-24 16:24:38 -0700 | [diff] [blame] | 32 | compileOnly(libs.androidLintApi) |
| 33 | compileOnly(libs.kotlinStdlib) |
Kirill Grouchnikov | b8c9b39 | 2020-01-21 17:52:49 -0500 | [diff] [blame] | 34 | |
Aurimas Liutikas | b6af5fb | 2021-05-24 16:24:38 -0700 | [diff] [blame] | 35 | testImplementation(libs.kotlinStdlib) |
| 36 | testImplementation(libs.androidLint) |
| 37 | testImplementation(libs.androidLintTests) |
| 38 | testImplementation(libs.junit) |
Oussama Ben Abdelbaki | 9a945cf | 2019-12-05 14:44:58 -0500 | [diff] [blame] | 39 | } |
| 40 | |
| 41 | androidx { |
Kirill Grouchnikov | 8e405b9 | 2020-01-14 10:31:02 -0500 | [diff] [blame] | 42 | name = "AppCompat Lint Checks" |
Owen Gray | a7530b8 | 2020-09-22 15:07:02 -0400 | [diff] [blame] | 43 | type = LibraryType.LINT |
Oussama Ben Abdelbaki | 9a945cf | 2019-12-05 14:44:58 -0500 | [diff] [blame] | 44 | inceptionYear = "2019" |
Kirill Grouchnikov | 578e5ba | 2019-12-17 11:47:24 -0500 | [diff] [blame] | 45 | description = "AppCompat Lint Checks" |
Owen Gray | a7530b8 | 2020-09-22 15:07:02 -0400 | [diff] [blame] | 46 | } |