blob: 6b5153b81c362be41eda97ba6632cd2cd0fcc0e4 [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.LibraryGroups
18import androidx.build.LibraryType
19import androidx.build.LibraryVersions
Aurimas Liutikasb3483fd2021-06-04 16:56:37 -070020import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
Diego Velab211c202021-05-10 15:04:01 -070021
22plugins {
23 id("AndroidXPlugin")
24 id("com.android.library")
25 id("org.jetbrains.kotlin.android")
26}
27
28android {
29 defaultConfig {
30 multiDexEnabled = true
31 }
32}
33
34dependencies {
Aurimas Liutikasb3483fd2021-06-04 16:56:37 -070035 api(libs.kotlinStdlib)
Diego Velab211c202021-05-10 15:04:01 -070036 api(project(":window:window"))
Aurimas Liutikasb3483fd2021-06-04 16:56:37 -070037 api(libs.junit)
Diego Velab211c202021-05-10 15:04:01 -070038 implementation("androidx.core:core:1.3.2")
39
Jeremy Woodsfa788952021-07-29 16:12:29 -070040 androidTestImplementation(libs.testCore)
Aurimas Liutikasb3483fd2021-06-04 16:56:37 -070041 androidTestImplementation(libs.testExtJunit)
42 androidTestImplementation(libs.testRunner)
43 androidTestImplementation(libs.testRules)
44 androidTestImplementation(libs.kotlinCoroutinesTest)
45 androidTestImplementation(libs.multidex)
46 androidTestImplementation(libs.truth)
Diego Velab211c202021-05-10 15:04:01 -070047}
48
49androidx {
50 name = "WindowManager Test Library"
51 type = LibraryType.PUBLISHED_LIBRARY
52 mavenVersion = LibraryVersions.WINDOW
53 mavenGroup = LibraryGroups.WINDOW
54 inceptionYear = "2021"
55 description = "WindowManager Test Library"
56}
57
58// Allow usage of Kotlin's @OptIn.
59tasks.withType(KotlinCompile).configureEach {
60 kotlinOptions {
61 freeCompilerArgs += ["-Xopt-in=kotlin.RequiresOptIn"]
62 }
63}