1/*
2 * Copyright (C) 2022 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
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 */
24
25import androidx.build.SoftwareType
26import androidx.build.PlatformIdentifier
27
28plugins {
29    id("AndroidXPlugin")
30}
31
32androidXMultiplatform {
33    jvm()
34    androidLibrary {
35        namespace = "androidx.window.core"
36        withAndroidTestOnDeviceBuilder {
37            it.compilationName = "instrumentedTest"
38            it.defaultSourceSetName = "androidInstrumentedTest"
39            it.sourceSetTreeName = "test"
40        }
41    }
42    mac()
43    linux()
44    ios()
45    watchos()
46    tvos()
47
48    defaultPlatform(PlatformIdentifier.JVM)
49
50    sourceSets {
51        commonMain {
52            dependencies {
53                api(libs.kotlinStdlib)
54                api("androidx.annotation:annotation:1.9.1")
55            }
56        }
57
58        commonTest {
59            dependencies {
60                implementation(libs.kotlinTest)
61                implementation(libs.kotlinTestAnnotationsCommon)
62                implementation(libs.kotlinCoroutinesCore)
63            }
64        }
65
66        androidInstrumentedTest {
67            dependencies {
68                implementation(libs.testRunner)
69            }
70        }
71    }
72
73    enableBinaryCompatibilityValidator = false
74}
75
76androidx {
77    name = "WindowManager Core"
78    type = SoftwareType.PUBLISHED_LIBRARY
79    inceptionYear = "2022"
80    description = "WindowManager Core Library."
81    legacyDisableKotlinStrictApiMode = true
82    samples(project(":window:window-core-samples"))
83}
84