blob: 8138a13a5b031f9cecef17d1f5c5a6c2cbcf7ac9 [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
Diego Velab211c202021-05-10 15:04:01 -070017import androidx.build.LibraryType
Aurimas Liutikasb3483fd2021-06-04 16:56:37 -070018import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
Diego Velab211c202021-05-10 15:04:01 -070019
20plugins {
21 id("AndroidXPlugin")
22 id("com.android.library")
23 id("org.jetbrains.kotlin.android")
24}
25
26android {
27 defaultConfig {
28 multiDexEnabled = true
29 }
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070030 namespace "androidx.window.testing"
Diego Velab211c202021-05-10 15:04:01 -070031}
32
33dependencies {
Aurimas Liutikasb3483fd2021-06-04 16:56:37 -070034 api(libs.kotlinStdlib)
Diego Velab211c202021-05-10 15:04:01 -070035 api(project(":window:window"))
Aurimas Liutikasb3483fd2021-06-04 16:56:37 -070036 api(libs.junit)
Diego Velab211c202021-05-10 15:04:01 -070037 implementation("androidx.core:core:1.3.2")
38
Jeremy Woodsfa788952021-07-29 16:12:29 -070039 androidTestImplementation(libs.testCore)
Aurimas Liutikasb3483fd2021-06-04 16:56:37 -070040 androidTestImplementation(libs.testExtJunit)
41 androidTestImplementation(libs.testRunner)
42 androidTestImplementation(libs.testRules)
43 androidTestImplementation(libs.kotlinCoroutinesTest)
44 androidTestImplementation(libs.multidex)
45 androidTestImplementation(libs.truth)
Diego Velab211c202021-05-10 15:04:01 -070046}
47
48androidx {
49 name = "WindowManager Test Library"
Jelle Fresen4a13c562021-11-26 16:50:44 +000050 type = LibraryType.PUBLISHED_TEST_LIBRARY
Diego Velab211c202021-05-10 15:04:01 -070051 mavenGroup = LibraryGroups.WINDOW
52 inceptionYear = "2021"
53 description = "WindowManager Test Library"
54}
55
56// Allow usage of Kotlin's @OptIn.
57tasks.withType(KotlinCompile).configureEach {
58 kotlinOptions {
Jim Sprochbcbd33a2022-01-12 14:45:37 -080059 freeCompilerArgs += ["-opt-in=kotlin.RequiresOptIn"]
Diego Velab211c202021-05-10 15:04:01 -070060 }
61}