Shane | 3c6ed48 | 2022-07-28 14:28:10 -0700 | [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 | */ |
Shane | 3c6ed48 | 2022-07-28 14:28:10 -0700 | [diff] [blame] | 24 | import androidx.build.LibraryType |
Shane | 3c6ed48 | 2022-07-28 14:28:10 -0700 | [diff] [blame] | 25 | |
| 26 | plugins { |
| 27 | id("AndroidXPlugin") |
| 28 | id("com.android.library") |
| 29 | id("AndroidXComposePlugin") |
| 30 | } |
| 31 | |
Jim S | 5930cd73 | 2023-04-12 02:33:37 -0700 | [diff] [blame] | 32 | androidXMultiplatform { |
| 33 | android() |
Shane | 3c6ed48 | 2022-07-28 14:28:10 -0700 | [diff] [blame] | 34 | |
Jim S | 5930cd73 | 2023-04-12 02:33:37 -0700 | [diff] [blame] | 35 | sourceSets { |
| 36 | commonMain { |
| 37 | dependencies { |
Shane | 3c6ed48 | 2022-07-28 14:28:10 -0700 | [diff] [blame] | 38 | implementation(project(":compose:ui:ui")) |
Jim S | 5930cd73 | 2023-04-12 02:33:37 -0700 | [diff] [blame] | 39 | implementation(project(":compose:ui:ui-unit")) |
| 40 | implementation(project(":compose:ui:ui-util")) |
| 41 | implementation(project(":compose:foundation:foundation")) |
| 42 | implementation(project(":compose:foundation:foundation-layout")) |
Shane | 3c6ed48 | 2022-07-28 14:28:10 -0700 | [diff] [blame] | 43 | implementation(project(":constraintlayout:constraintlayout-core")) |
Chet Haase | 40681b4 | 2023-08-14 16:17:55 -0700 | [diff] [blame] | 44 | implementation(project(":collection:collection")) |
Shane | 3c6ed48 | 2022-07-28 14:28:10 -0700 | [diff] [blame] | 45 | } |
Jim S | 5930cd73 | 2023-04-12 02:33:37 -0700 | [diff] [blame] | 46 | } |
Shane | 3c6ed48 | 2022-07-28 14:28:10 -0700 | [diff] [blame] | 47 | |
Jim S | 5930cd73 | 2023-04-12 02:33:37 -0700 | [diff] [blame] | 48 | commonTest { |
| 49 | dependencies { |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | jvmMain { |
| 54 | dependencies { |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | |
| 59 | androidMain { |
| 60 | dependsOn(commonMain) |
| 61 | dependsOn(jvmMain) |
| 62 | dependencies { |
Shane | 3c6ed48 | 2022-07-28 14:28:10 -0700 | [diff] [blame] | 63 | api("androidx.annotation:annotation:1.1.0") |
| 64 | implementation("androidx.core:core-ktx:1.5.0") |
| 65 | } |
Jim S | 5930cd73 | 2023-04-12 02:33:37 -0700 | [diff] [blame] | 66 | } |
Shane | 3c6ed48 | 2022-07-28 14:28:10 -0700 | [diff] [blame] | 67 | |
Jim S | 5930cd73 | 2023-04-12 02:33:37 -0700 | [diff] [blame] | 68 | jvmTest { |
| 69 | dependencies { |
Shane | 3c6ed48 | 2022-07-28 14:28:10 -0700 | [diff] [blame] | 70 | } |
Jim S | 5930cd73 | 2023-04-12 02:33:37 -0700 | [diff] [blame] | 71 | } |
Shane | 3c6ed48 | 2022-07-28 14:28:10 -0700 | [diff] [blame] | 72 | |
Fred Sladkey | d2ea9cf | 2023-08-17 21:19:01 -0400 | [diff] [blame] | 73 | androidInstrumentedTest { |
Jim S | 5930cd73 | 2023-04-12 02:33:37 -0700 | [diff] [blame] | 74 | dependsOn(jvmTest) |
| 75 | dependencies { |
Oscar Adame Vázquez | ed5f56e | 2022-09-29 16:38:34 -0700 | [diff] [blame] | 76 | implementation(libs.kotlinTest) |
Shane | 3c6ed48 | 2022-07-28 14:28:10 -0700 | [diff] [blame] | 77 | implementation(libs.testRules) |
| 78 | implementation(libs.testRunner) |
| 79 | implementation(libs.junit) |
| 80 | implementation(libs.truth) |
| 81 | implementation(project(":compose:foundation:foundation")) |
Oscar Adame Vázquez | ed5f56e | 2022-09-29 16:38:34 -0700 | [diff] [blame] | 82 | implementation(project(":compose:material:material")) |
Shane | 3c6ed48 | 2022-07-28 14:28:10 -0700 | [diff] [blame] | 83 | implementation(project(":compose:ui:ui-test-junit4")) |
Oscar Adame Vázquez | ed5f56e | 2022-09-29 16:38:34 -0700 | [diff] [blame] | 84 | implementation(project(":compose:ui:ui-test-manifest")) |
Shane | 3c6ed48 | 2022-07-28 14:28:10 -0700 | [diff] [blame] | 85 | implementation(project(":compose:test-utils")) |
| 86 | } |
| 87 | } |
Jim S | 5930cd73 | 2023-04-12 02:33:37 -0700 | [diff] [blame] | 88 | |
Fred Sladkey | d2ea9cf | 2023-08-17 21:19:01 -0400 | [diff] [blame] | 89 | androidUnitTest { |
Jim S | 5930cd73 | 2023-04-12 02:33:37 -0700 | [diff] [blame] | 90 | dependsOn(jvmTest) |
| 91 | dependencies { |
Fred Sladkey | d2ea9cf | 2023-08-17 21:19:01 -0400 | [diff] [blame] | 92 | implementation(libs.kotlinTest) |
Jim S | 5930cd73 | 2023-04-12 02:33:37 -0700 | [diff] [blame] | 93 | implementation(libs.testRules) |
| 94 | implementation(libs.testRunner) |
| 95 | implementation(libs.junit) |
| 96 | } |
| 97 | } |
Shane | 3c6ed48 | 2022-07-28 14:28:10 -0700 | [diff] [blame] | 98 | } |
| 99 | } |
| 100 | |
Jim S | 5930cd73 | 2023-04-12 02:33:37 -0700 | [diff] [blame] | 101 | dependencies { |
| 102 | lintPublish(project(":constraintlayout:constraintlayout-compose-lint")) |
| 103 | } |
| 104 | |
Shane | 3c6ed48 | 2022-07-28 14:28:10 -0700 | [diff] [blame] | 105 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 106 | name = "ConstraintLayout Compose" |
omarismail | 6700b61 | 2024-02-19 14:28:20 +0000 | [diff] [blame] | 107 | type = LibraryType.PUBLISHED_KOTLIN_ONLY_LIBRARY |
Shane | 3c6ed48 | 2022-07-28 14:28:10 -0700 | [diff] [blame] | 108 | mavenVersion = LibraryVersions.CONSTRAINTLAYOUT_COMPOSE |
Shane | 3c6ed48 | 2022-07-28 14:28:10 -0700 | [diff] [blame] | 109 | inceptionYear = "2022" |
| 110 | description = "This library offers a flexible and adaptable way to position and animate widgets in Compose" |
| 111 | } |
| 112 | |
| 113 | android { |
| 114 | namespace "androidx.constraintlayout.compose" |
| 115 | } |