Ian Lake | 9c00f40 | 2019-08-22 11:17:29 -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 | */ |
Jelle Fresen | 4a13c56 | 2021-11-26 16:50:44 +0000 | [diff] [blame] | 24 | import androidx.build.LibraryType |
| 25 | |
Ian Lake | 9c00f40 | 2019-08-22 11:17:29 -0700 | [diff] [blame] | 26 | plugins { |
| 27 | id("AndroidXPlugin") |
| 28 | id("com.android.library") |
| 29 | id("kotlin-android") |
| 30 | } |
| 31 | |
| 32 | dependencies { |
Aurimas Liutikas | 96f0b30 | 2024-07-25 15:49:23 -0700 | [diff] [blame] | 33 | api("androidx.annotation:annotation:1.8.1") |
Ian Lake | 9c00f40 | 2019-08-22 11:17:29 -0700 | [diff] [blame] | 34 | |
Aurimas Liutikas | 08f94ae | 2024-09-19 21:40:37 -0700 | [diff] [blame] | 35 | implementation(libs.espressoCore) |
Aurimas Liutikas | 0044296 | 2021-06-01 17:18:09 -0700 | [diff] [blame] | 36 | implementation(libs.kotlinStdlib) |
Jelle Fresen | af63e06 | 2021-06-14 16:10:46 +0100 | [diff] [blame] | 37 | implementation("androidx.core:core:1.2.0") |
Ian Lake | 9c00f40 | 2019-08-22 11:17:29 -0700 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | android { |
| 41 | lintOptions { |
Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 42 | disable "InvalidPackage" // Lint is unhappy about junit package |
Ian Lake | 9c00f40 | 2019-08-22 11:17:29 -0700 | [diff] [blame] | 43 | } |
Aurimas Liutikas | 7795282 | 2024-12-04 18:00:17 -0800 | [diff] [blame] | 44 | namespace = "androidx.testutils.espresso" |
Ian Lake | 9c00f40 | 2019-08-22 11:17:29 -0700 | [diff] [blame] | 45 | } |
Jelle Fresen | 4a13c56 | 2021-11-26 16:50:44 +0000 | [diff] [blame] | 46 | |
| 47 | androidx { |
| 48 | type = LibraryType.INTERNAL_TEST_LIBRARY |
Julia McClellan | 81a46bc | 2024-12-03 14:42:36 -0500 | [diff] [blame] | 49 | // TODO: b/326456246 |
| 50 | optOutJSpecify = true |
Jelle Fresen | 4a13c56 | 2021-11-26 16:50:44 +0000 | [diff] [blame] | 51 | } |