[go: nahoru, domu]

blob: d67f346ffff2f5593adc2628e321faeb7fffeb85 [file] [log] [blame]
Oussama Ben Abdelbaki9a945cf2019-12-05 14:44:58 -05001/*
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
17import androidx.build.AndroidXExtension
18import androidx.build.CompilationTarget
19import androidx.build.LibraryGroups
20import androidx.build.LibraryVersions
21import androidx.build.Publish
22
23import static androidx.build.dependencies.DependenciesKt.LINT_API_MIN
24import static androidx.build.dependencies.DependenciesKt.getKOTLIN_STDLIB
25import static androidx.build.dependencies.DependenciesKt.getLINT_API_LATEST
26
27plugins {
28 id("AndroidXPlugin")
29 id("kotlin")
30}
31
32dependencies {
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
41androidx {
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 Grouchnikov578e5ba2019-12-17 11:47:24 -050048 description = "AppCompat Lint Checks"
Oussama Ben Abdelbaki9a945cf2019-12-05 14:44:58 -050049}