blob: e7f50517dbc4c43deea197442e1bdb5f1e7baf55 [file] [log] [blame]
Diego Velab211c202021-05-10 15:04:01 -07001/*
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 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 */
Aurimas Liutikas73b142a2024-11-01 11:16:28 -070024
25import androidx.build.KotlinTarget
Diego Velab211c202021-05-10 15:04:01 -070026import androidx.build.LibraryType
Diego Velab211c202021-05-10 15:04:01 -070027
28plugins {
29 id("AndroidXPlugin")
30 id("com.android.library")
31 id("org.jetbrains.kotlin.android")
32}
33
34android {
Aurimas Liutikas77952822024-12-04 18:00:17 -080035 namespace = "androidx.window.testing"
Diego Velab211c202021-05-10 15:04:01 -070036}
37
38dependencies {
Julia McClellanb0fab542024-11-21 13:32:58 -050039 api(libs.jspecify)
Aurimas Liutikasb3483fd2021-06-04 16:56:37 -070040 api(libs.kotlinStdlib)
Diego Velab211c202021-05-10 15:04:01 -070041 api(project(":window:window"))
Aurimas Liutikasb3483fd2021-06-04 16:56:37 -070042 api(libs.junit)
Aurimas Liutikas36de1fe2023-11-29 15:12:02 -080043 implementation("androidx.core:core:1.8.0")
Aurimas Liutikas96f0b302024-07-25 15:49:23 -070044 implementation("androidx.annotation:annotation:1.8.1")
Diego Velab211c202021-05-10 15:04:01 -070045
Jeremy Woodsfa788952021-07-29 16:12:29 -070046 androidTestImplementation(libs.testCore)
Aurimas Liutikasb3483fd2021-06-04 16:56:37 -070047 androidTestImplementation(libs.testExtJunit)
48 androidTestImplementation(libs.testRunner)
49 androidTestImplementation(libs.testRules)
50 androidTestImplementation(libs.kotlinCoroutinesTest)
Aurimas Liutikasb3483fd2021-06-04 16:56:37 -070051 androidTestImplementation(libs.truth)
Charles Chenb7fe47d2023-02-20 17:04:00 +080052
53 testImplementation(libs.robolectric)
Charles Chenf96e8712023-03-07 18:15:38 +080054 testImplementation(libs.mockitoCore4)
Chris Li9d3a1922023-02-18 21:36:54 +080055 testImplementation(libs.mockitoKotlin4)
Charles Chenb7fe47d2023-02-20 17:04:00 +080056 testImplementation(libs.testCore)
57 testImplementation(libs.testExtJunit)
58 testImplementation(libs.testRunner)
59 testImplementation(libs.testRules)
60 testImplementation(libs.kotlinCoroutinesTest)
Diego Velab211c202021-05-10 15:04:01 -070061}
62
63androidx {
Alan Viverettec9e1fd72023-05-08 17:36:59 -040064 name = "WindowManager Testing Extensions"
Jelle Fresen4a13c562021-11-26 16:50:44 +000065 type = LibraryType.PUBLISHED_TEST_LIBRARY
Diego Velab211c202021-05-10 15:04:01 -070066 inceptionYear = "2021"
67 description = "WindowManager Test Library"
Aurimas Liutikas5c5419a2024-05-29 15:26:58 -070068 legacyDisableKotlinStrictApiMode = true
Aurimas Liutikas73b142a2024-11-01 11:16:28 -070069 kotlinTarget = KotlinTarget.KOTLIN_1_9
Jinseong Jeon999075e2023-08-22 00:40:11 -070070}