Diego Vela | ee1a164 | 2022-07-21 23:31:46 +0000 | [diff] [blame] | 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 | |
Tiem Song | ee0da74 | 2024-01-03 14:08:46 -0800 | [diff] [blame] | 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 | */ |
Diego Vela | ee1a164 | 2022-07-21 23:31:46 +0000 | [diff] [blame] | 24 | import androidx.build.LibraryType |
Diego Vela | f3403f8 | 2023-10-27 17:37:42 +0000 | [diff] [blame] | 25 | import androidx.build.PlatformIdentifier |
Diego Vela | ee1a164 | 2022-07-21 23:31:46 +0000 | [diff] [blame] | 26 | |
| 27 | plugins { |
| 28 | id("AndroidXPlugin") |
| 29 | id("com.android.library") |
Diego Vela | ee1a164 | 2022-07-21 23:31:46 +0000 | [diff] [blame] | 30 | } |
| 31 | |
Diego Vela | f3403f8 | 2023-10-27 17:37:42 +0000 | [diff] [blame] | 32 | androidXMultiplatform { |
| 33 | jvm() |
| 34 | android() |
Diego Vela | ee1a164 | 2022-07-21 23:31:46 +0000 | [diff] [blame] | 35 | |
Diego Vela | f3403f8 | 2023-10-27 17:37:42 +0000 | [diff] [blame] | 36 | 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 Liutikas | 0456970 | 2023-11-30 14:11:23 -0800 | [diff] [blame] | 56 | |
| 57 | androidInstrumentedTest { |
| 58 | dependencies { |
| 59 | implementation(libs.testRunner) |
| 60 | } |
| 61 | } |
Diego Vela | f3403f8 | 2023-10-27 17:37:42 +0000 | [diff] [blame] | 62 | } |
Diego Vela | ee1a164 | 2022-07-21 23:31:46 +0000 | [diff] [blame] | 63 | } |
| 64 | |
| 65 | android { |
| 66 | namespace "androidx.window.core" |
| 67 | } |
| 68 | |
| 69 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 70 | name = "WindowManager Core" |
Diego Vela | ee1a164 | 2022-07-21 23:31:46 +0000 | [diff] [blame] | 71 | type = LibraryType.PUBLISHED_LIBRARY |
Diego Vela | ee1a164 | 2022-07-21 23:31:46 +0000 | [diff] [blame] | 72 | inceptionYear = "2022" |
| 73 | description = "WindowManager Core Library." |
Diego Vela | ee1a164 | 2022-07-21 23:31:46 +0000 | [diff] [blame] | 74 | } |