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 | |
| 17 | import androidx.build.AndroidXExtension |
| 18 | import androidx.build.CompilationTarget |
| 19 | import androidx.build.LibraryGroups |
| 20 | import androidx.build.LibraryVersions |
| 21 | import androidx.build.Publish |
| 22 | |
| 23 | import static androidx.build.dependencies.DependenciesKt.LINT_API_MIN |
| 24 | import static androidx.build.dependencies.DependenciesKt.getKOTLIN_STDLIB |
| 25 | import static androidx.build.dependencies.DependenciesKt.getLINT_API_LATEST |
| 26 | |
| 27 | plugins { |
| 28 | id("AndroidXPlugin") |
| 29 | id("kotlin") |
| 30 | } |
| 31 | |
| 32 | dependencies { |
| 33 | if (rootProject.hasProperty("android.injected.invoked.from.ide")) { |
| 34 | compileOnly LINT_API_LATEST |
| 35 | } else { |
| 36 | compileOnly LINT_API_MIN |
| 37 | } |
| 38 | compileOnly KOTLIN_STDLIB |
| 39 | } |
| 40 | |
| 41 | androidx { |
| 42 | name = "Android Lifecycles Lint Checks" |
| 43 | toolingProject = true |
| 44 | publish = Publish.NONE |
| 45 | mavenVersion = LibraryVersions.APPCOMPAT |
| 46 | mavenGroup = LibraryGroups.APPCOMPAT |
| 47 | inceptionYear = "2019" |
Kirill Grouchnikov | 578e5ba | 2019-12-17 11:47:24 -0500 | [diff] [blame^] | 48 | description = "AppCompat Lint Checks" |
Oussama Ben Abdelbaki | 9a945cf | 2019-12-05 14:44:58 -0500 | [diff] [blame] | 49 | } |