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 | |
Tiem Song | ee0da74 | 2024-01-03 14:08:46 -0800 | [diff] [blame] | 17 | /** |
| 18 | * This file was created using the `create_project.py` script located in the |
| 19 | * `<AndroidX root>/development/project-creator` directory. |
| 20 | * |
| 21 | * Please use that script when creating a new project, rather than copying an existing project and |
| 22 | * modifying its settings. |
| 23 | */ |
Owen Gray | a7530b8 | 2020-09-22 15:07:02 -0400 | [diff] [blame] | 24 | import androidx.build.LibraryType |
Oussama Ben Abdelbaki | 9a945cf | 2019-12-05 14:44:58 -0500 | [diff] [blame] | 25 | |
Oussama Ben Abdelbaki | 9a945cf | 2019-12-05 14:44:58 -0500 | [diff] [blame] | 26 | plugins { |
| 27 | id("AndroidXPlugin") |
| 28 | id("kotlin") |
| 29 | } |
| 30 | |
Alan Viverette | 54269b0 | 2022-07-01 10:56:43 -0400 | [diff] [blame] | 31 | sourceSets { |
| 32 | test.resources.srcDirs( |
| 33 | project(":appcompat:appcompat-lint:integration-tests").projectDir.toString() + "/src/main", |
| 34 | project(":appcompat:appcompat-lint:integration-tests").projectDir.toString() + "/src/res" |
| 35 | ) |
| 36 | } |
| 37 | |
Oussama Ben Abdelbaki | 9a945cf | 2019-12-05 14:44:58 -0500 | [diff] [blame] | 38 | dependencies { |
Aurimas Liutikas | b6af5fb | 2021-05-24 16:24:38 -0700 | [diff] [blame] | 39 | compileOnly(libs.androidLintApi) |
| 40 | compileOnly(libs.kotlinStdlib) |
Kirill Grouchnikov | b8c9b39 | 2020-01-21 17:52:49 -0500 | [diff] [blame] | 41 | |
Aurimas Liutikas | b6af5fb | 2021-05-24 16:24:38 -0700 | [diff] [blame] | 42 | testImplementation(libs.kotlinStdlib) |
| 43 | testImplementation(libs.androidLint) |
| 44 | testImplementation(libs.androidLintTests) |
| 45 | testImplementation(libs.junit) |
Oussama Ben Abdelbaki | 9a945cf | 2019-12-05 14:44:58 -0500 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | androidx { |
Kirill Grouchnikov | 8e405b9 | 2020-01-14 10:31:02 -0500 | [diff] [blame] | 49 | name = "AppCompat Lint Checks" |
Owen Gray | a7530b8 | 2020-09-22 15:07:02 -0400 | [diff] [blame] | 50 | type = LibraryType.LINT |
Oussama Ben Abdelbaki | 9a945cf | 2019-12-05 14:44:58 -0500 | [diff] [blame] | 51 | inceptionYear = "2019" |
Kirill Grouchnikov | 578e5ba | 2019-12-17 11:47:24 -0500 | [diff] [blame] | 52 | description = "AppCompat Lint Checks" |
Owen Gray | a7530b8 | 2020-09-22 15:07:02 -0400 | [diff] [blame] | 53 | } |