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