blob: d8842be3e81758db801c067541ab5776a2263c8b [file] [log] [blame]
Julia McClellancd77b4b2022-04-14 15:31:46 -04001/*
2 * Copyright 2022 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 Songee0da742024-01-03 14:08:46 -080017/**
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 */
Clara Fok06352592024-05-29 14:48:07 -070024
25import androidx.build.BundleInsideHelper
Julia McClellancd77b4b2022-04-14 15:31:46 -040026import androidx.build.LibraryType
27
28plugins {
29 id("AndroidXPlugin")
30 id("kotlin")
31}
32
Clara Fok06352592024-05-29 14:48:07 -070033BundleInsideHelper.forInsideLintJar(project)
34
Julia McClellancd77b4b2022-04-14 15:31:46 -040035dependencies {
Jeremy Woodsc096da72024-10-09 22:40:13 +000036 compileOnly(libs.androidLintApiPrevKotlin)
Julia McClellancd77b4b2022-04-14 15:31:46 -040037 compileOnly(libs.kotlinStdlib)
Jeremy Woods70f3e062024-09-23 23:06:38 +000038 compileOnly(libs.androidToolsCommon)
39 compileOnly(libs.intellijCore)
40 compileOnly(libs.uast)
Clara Fok23c78e62024-09-26 10:09:05 -070041 bundleInside(project(":navigation:lint:common"))
Julia McClellancd77b4b2022-04-14 15:31:46 -040042
43 testImplementation(libs.kotlinStdlib)
Jeremy Woodsc096da72024-10-09 22:40:13 +000044 testImplementation(libs.androidLintApiPrevKotlin)
45 testImplementation(libs.androidLintTestsPrevKotlin)
Jeremy Woods70f3e062024-09-23 23:06:38 +000046 testImplementation(libs.intellijCore)
Julia McClellancd77b4b2022-04-14 15:31:46 -040047 testImplementation(libs.junit)
48 testImplementation(libs.truth)
Jeremy Woodsc096da72024-10-09 22:40:13 +000049 testImplementation(project(":navigation:lint:common-test"))
Julia McClellancd77b4b2022-04-14 15:31:46 -040050}
51
52androidx {
53 name = "Navigation Runtime Lint"
54 type = LibraryType.LINT
Julia McClellancd77b4b2022-04-14 15:31:46 -040055 inceptionYear = "2022"
56 description = "Lint checks for Navigation Runtime"
57}