blob: a052358114fc596ba934e777a1ac0b9b8e747600 [file] [log] [blame]
Shane3c6ed482022-07-28 14:28:10 -07001/*
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 */
Shane3c6ed482022-07-28 14:28:10 -070024import androidx.build.LibraryType
Shane3c6ed482022-07-28 14:28:10 -070025
26plugins {
27 id("AndroidXPlugin")
28 id("com.android.library")
29 id("AndroidXComposePlugin")
30}
31
Jim S5930cd732023-04-12 02:33:37 -070032androidXMultiplatform {
33 android()
Shane3c6ed482022-07-28 14:28:10 -070034
Jim S5930cd732023-04-12 02:33:37 -070035 sourceSets {
36 commonMain {
37 dependencies {
Shane3c6ed482022-07-28 14:28:10 -070038 implementation(project(":compose:ui:ui"))
Jim S5930cd732023-04-12 02:33:37 -070039 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"))
Shane3c6ed482022-07-28 14:28:10 -070043 implementation(project(":constraintlayout:constraintlayout-core"))
Chet Haase40681b42023-08-14 16:17:55 -070044 implementation(project(":collection:collection"))
Shane3c6ed482022-07-28 14:28:10 -070045 }
Jim S5930cd732023-04-12 02:33:37 -070046 }
Shane3c6ed482022-07-28 14:28:10 -070047
Jim S5930cd732023-04-12 02:33:37 -070048 commonTest {
49 dependencies {
50 }
51 }
52
53 jvmMain {
54 dependencies {
55 }
56 }
57
58
59 androidMain {
60 dependsOn(commonMain)
61 dependsOn(jvmMain)
62 dependencies {
Shane3c6ed482022-07-28 14:28:10 -070063 api("androidx.annotation:annotation:1.1.0")
64 implementation("androidx.core:core-ktx:1.5.0")
65 }
Jim S5930cd732023-04-12 02:33:37 -070066 }
Shane3c6ed482022-07-28 14:28:10 -070067
Jim S5930cd732023-04-12 02:33:37 -070068 jvmTest {
69 dependencies {
Shane3c6ed482022-07-28 14:28:10 -070070 }
Jim S5930cd732023-04-12 02:33:37 -070071 }
Shane3c6ed482022-07-28 14:28:10 -070072
Fred Sladkeyd2ea9cf2023-08-17 21:19:01 -040073 androidInstrumentedTest {
Jim S5930cd732023-04-12 02:33:37 -070074 dependsOn(jvmTest)
75 dependencies {
Oscar Adame Vázquezed5f56e2022-09-29 16:38:34 -070076 implementation(libs.kotlinTest)
Shane3c6ed482022-07-28 14:28:10 -070077 implementation(libs.testRules)
78 implementation(libs.testRunner)
79 implementation(libs.junit)
80 implementation(libs.truth)
81 implementation(project(":compose:foundation:foundation"))
Oscar Adame Vázquezed5f56e2022-09-29 16:38:34 -070082 implementation(project(":compose:material:material"))
Shane3c6ed482022-07-28 14:28:10 -070083 implementation(project(":compose:ui:ui-test-junit4"))
Oscar Adame Vázquezed5f56e2022-09-29 16:38:34 -070084 implementation(project(":compose:ui:ui-test-manifest"))
Shane3c6ed482022-07-28 14:28:10 -070085 implementation(project(":compose:test-utils"))
86 }
87 }
Jim S5930cd732023-04-12 02:33:37 -070088
Fred Sladkeyd2ea9cf2023-08-17 21:19:01 -040089 androidUnitTest {
Jim S5930cd732023-04-12 02:33:37 -070090 dependsOn(jvmTest)
91 dependencies {
Fred Sladkeyd2ea9cf2023-08-17 21:19:01 -040092 implementation(libs.kotlinTest)
Jim S5930cd732023-04-12 02:33:37 -070093 implementation(libs.testRules)
94 implementation(libs.testRunner)
95 implementation(libs.junit)
96 }
97 }
Shane3c6ed482022-07-28 14:28:10 -070098 }
99}
100
Jim S5930cd732023-04-12 02:33:37 -0700101dependencies {
102 lintPublish(project(":constraintlayout:constraintlayout-compose-lint"))
103}
104
Shane3c6ed482022-07-28 14:28:10 -0700105androidx {
Alan Viverettec9e1fd72023-05-08 17:36:59 -0400106 name = "ConstraintLayout Compose"
omarismail6700b612024-02-19 14:28:20 +0000107 type = LibraryType.PUBLISHED_KOTLIN_ONLY_LIBRARY
Shane3c6ed482022-07-28 14:28:10 -0700108 mavenVersion = LibraryVersions.CONSTRAINTLAYOUT_COMPOSE
Shane3c6ed482022-07-28 14:28:10 -0700109 inceptionYear = "2022"
110 description = "This library offers a flexible and adaptable way to position and animate widgets in Compose"
111}
112
113android {
114 namespace "androidx.constraintlayout.compose"
115}