Jeremy Woods | 88b606a | 2020-06-11 11:27:35 -0700 | [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 | 74cc259 | 2020-09-24 15:05:40 -0400 | [diff] [blame] | 24 | import androidx.build.LibraryType |
| 25 | |
Jeremy Woods | 88b606a | 2020-06-11 11:27:35 -0700 | [diff] [blame] | 26 | plugins { |
| 27 | id("AndroidXPlugin") |
| 28 | id("kotlin") |
| 29 | } |
| 30 | |
| 31 | dependencies { |
Aurimas Liutikas | cf3d160 | 2024-06-11 11:09:05 -0700 | [diff] [blame] | 32 | compileOnly("com.android.tools.build:builder-model:8.1.0") |
Tiem Song | 9424752 | 2021-07-07 20:48:01 +0000 | [diff] [blame] | 33 | compileOnly(libs.androidLintMinApi) |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 34 | compileOnly(libs.kotlinStdlib) |
Jeremy Woods | 522b295 | 2024-07-16 16:52:54 +0000 | [diff] [blame] | 35 | compileOnly(libs.intellijCore) |
| 36 | compileOnly(libs.uast) |
Jeremy Woods | 88b606a | 2020-06-11 11:27:35 -0700 | [diff] [blame] | 37 | |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 38 | testImplementation(libs.kotlinStdlib) |
Jeremy Woods | 522b295 | 2024-07-16 16:52:54 +0000 | [diff] [blame] | 39 | testRuntimeOnly(libs.kotlinReflect) |
Jeremy Woods | 9a54ac5 | 2021-10-07 14:59:11 -0700 | [diff] [blame] | 40 | testImplementation(libs.kotlinStdlibJdk8) |
Julia McClellan | e75b3e8 | 2024-11-14 15:07:49 -0500 | [diff] [blame] | 41 | testImplementation(libs.androidLintApiPrevAnalysis) |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 42 | testImplementation(libs.androidLintTests) |
| 43 | testImplementation(libs.junit) |
| 44 | testImplementation(libs.truth) |
Jeremy Woods | 88b606a | 2020-06-11 11:27:35 -0700 | [diff] [blame] | 45 | } |
| 46 | |
| 47 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 48 | name = "Activity Lint Checks" |
Owen Gray | 74cc259 | 2020-09-24 15:05:40 -0400 | [diff] [blame] | 49 | type = LibraryType.LINT |
Jeremy Woods | 88b606a | 2020-06-11 11:27:35 -0700 | [diff] [blame] | 50 | inceptionYear = "2020" |
| 51 | description = "Android Activity Lint Checks" |
Jeremy Woods | 88b606a | 2020-06-11 11:27:35 -0700 | [diff] [blame] | 52 | } |