[go: nahoru, domu]

blob: b4060735b4993928662853c0504121814c1c96fb [file] [log] [blame]
Diego Velaee1a1642022-07-21 23:31:46 +00001/*
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
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 */
Diego Velaee1a1642022-07-21 23:31:46 +000024import androidx.build.LibraryType
Diego Velaf3403f82023-10-27 17:37:42 +000025import androidx.build.PlatformIdentifier
Diego Velaee1a1642022-07-21 23:31:46 +000026
27plugins {
28 id("AndroidXPlugin")
29 id("com.android.library")
Diego Velaee1a1642022-07-21 23:31:46 +000030}
31
Diego Velaf3403f82023-10-27 17:37:42 +000032androidXMultiplatform {
33 jvm()
34 android()
Diego Velaee1a1642022-07-21 23:31:46 +000035
Diego Velaf3403f82023-10-27 17:37:42 +000036 defaultPlatform(PlatformIdentifier.JVM)
37
38 sourceSets {
39 commonMain {
40 dependencies {
41 api(libs.kotlinStdlib)
42 api("androidx.annotation:annotation:1.7.0")
43 }
44 }
45
46 commonTest {
47 dependencies {
48 implementation(libs.kotlinTest)
49 implementation(libs.kotlinTestAnnotationsCommon)
50 implementation(libs.kotlinCoroutinesCore)
51 // TODO remove when https://youtrack.jetbrains.com/issue/KT-62368/Kotlin-1.9.X-fails-to-detect-kotlin.test.Test-annotation-reference-on-commonTest-source-set-when-targeting-JVMAndroid
52 // is fixed
53 implementation(libs.kotlinTestJunit)
54 }
55 }
Aurimas Liutikas04569702023-11-30 14:11:23 -080056
57 androidInstrumentedTest {
58 dependencies {
59 implementation(libs.testRunner)
60 }
61 }
Diego Velaf3403f82023-10-27 17:37:42 +000062 }
Diego Velaee1a1642022-07-21 23:31:46 +000063}
64
65android {
66 namespace "androidx.window.core"
67}
68
69androidx {
Alan Viverettec9e1fd72023-05-08 17:36:59 -040070 name = "WindowManager Core"
Diego Velaee1a1642022-07-21 23:31:46 +000071 type = LibraryType.PUBLISHED_LIBRARY
Diego Velaee1a1642022-07-21 23:31:46 +000072 inceptionYear = "2022"
73 description = "WindowManager Core Library."
Diego Velaee1a1642022-07-21 23:31:46 +000074}