Diego Vela | b211c20 | 2021-05-10 15:04:01 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2021 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 | */ |
Diego Vela | b211c20 | 2021-05-10 15:04:01 -0700 | [diff] [blame] | 24 | import androidx.build.LibraryType |
Aurimas Liutikas | b3483fd | 2021-06-04 16:56:37 -0700 | [diff] [blame] | 25 | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
Diego Vela | b211c20 | 2021-05-10 15:04:01 -0700 | [diff] [blame] | 26 | |
| 27 | plugins { |
| 28 | id("AndroidXPlugin") |
| 29 | id("com.android.library") |
| 30 | id("org.jetbrains.kotlin.android") |
| 31 | } |
| 32 | |
| 33 | android { |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 34 | namespace "androidx.window.testing" |
Diego Vela | b211c20 | 2021-05-10 15:04:01 -0700 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | dependencies { |
Aurimas Liutikas | b3483fd | 2021-06-04 16:56:37 -0700 | [diff] [blame] | 38 | api(libs.kotlinStdlib) |
Diego Vela | b211c20 | 2021-05-10 15:04:01 -0700 | [diff] [blame] | 39 | api(project(":window:window")) |
Aurimas Liutikas | b3483fd | 2021-06-04 16:56:37 -0700 | [diff] [blame] | 40 | api(libs.junit) |
Aurimas Liutikas | 36de1fe | 2023-11-29 15:12:02 -0800 | [diff] [blame] | 41 | implementation("androidx.core:core:1.8.0") |
| 42 | implementation("androidx.annotation:annotation:1.7.0") |
Diego Vela | b211c20 | 2021-05-10 15:04:01 -0700 | [diff] [blame] | 43 | |
Jeremy Woods | fa78895 | 2021-07-29 16:12:29 -0700 | [diff] [blame] | 44 | androidTestImplementation(libs.testCore) |
Aurimas Liutikas | b3483fd | 2021-06-04 16:56:37 -0700 | [diff] [blame] | 45 | androidTestImplementation(libs.testExtJunit) |
| 46 | androidTestImplementation(libs.testRunner) |
| 47 | androidTestImplementation(libs.testRules) |
| 48 | androidTestImplementation(libs.kotlinCoroutinesTest) |
Aurimas Liutikas | b3483fd | 2021-06-04 16:56:37 -0700 | [diff] [blame] | 49 | androidTestImplementation(libs.truth) |
Charles Chen | b7fe47d | 2023-02-20 17:04:00 +0800 | [diff] [blame] | 50 | |
| 51 | testImplementation(libs.robolectric) |
Charles Chen | f96e871 | 2023-03-07 18:15:38 +0800 | [diff] [blame] | 52 | testImplementation(libs.mockitoCore4) |
Chris Li | 9d3a192 | 2023-02-18 21:36:54 +0800 | [diff] [blame] | 53 | testImplementation(libs.mockitoKotlin4) |
Charles Chen | b7fe47d | 2023-02-20 17:04:00 +0800 | [diff] [blame] | 54 | testImplementation(libs.testCore) |
| 55 | testImplementation(libs.testExtJunit) |
| 56 | testImplementation(libs.testRunner) |
| 57 | testImplementation(libs.testRules) |
| 58 | testImplementation(libs.kotlinCoroutinesTest) |
Diego Vela | b211c20 | 2021-05-10 15:04:01 -0700 | [diff] [blame] | 59 | } |
| 60 | |
| 61 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 62 | name = "WindowManager Testing Extensions" |
Jelle Fresen | 4a13c56 | 2021-11-26 16:50:44 +0000 | [diff] [blame] | 63 | type = LibraryType.PUBLISHED_TEST_LIBRARY |
Diego Vela | b211c20 | 2021-05-10 15:04:01 -0700 | [diff] [blame] | 64 | inceptionYear = "2021" |
| 65 | description = "WindowManager Test Library" |
Jinseong Jeon | 999075e | 2023-08-22 00:40:11 -0700 | [diff] [blame] | 66 | metalavaK2UastEnabled = true |
Aurimas Liutikas | 5c5419a | 2024-05-29 15:26:58 -0700 | [diff] [blame] | 67 | legacyDisableKotlinStrictApiMode = true |
Jinseong Jeon | 999075e | 2023-08-22 00:40:11 -0700 | [diff] [blame] | 68 | } |