blob: 64ad3049fa39ea06ea7185788659b6f074d5ef5d [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
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"
50 type = LibraryType.PUBLISHED_LIBRARY
51 mavenVersion = LibraryVersions.WINDOW
52 mavenGroup = LibraryGroups.WINDOW
53 inceptionYear = "2021"
54 description = "WindowManager Test Library"
55}
56
57// Allow usage of Kotlin's @OptIn.
58tasks.withType(KotlinCompile).configureEach {
59 kotlinOptions {
60 freeCompilerArgs += ["-Xopt-in=kotlin.RequiresOptIn"]
61 }
62}