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 */
24import androidx.build.SoftwareType
25
26plugins {
27    id("AndroidXPlugin")
28    id("com.android.library")
29    id("AndroidXComposePlugin")
30}
31
32androidXMultiplatform {
33    androidTarget()
34
35    sourceSets {
36        commonMain {
37            dependencies {
38                implementation("androidx.compose.ui:ui:1.7.0")
39                implementation("androidx.compose.ui:ui-unit:1.7.0")
40                implementation("androidx.compose.ui:ui-util:1.7.0")
41                implementation("androidx.compose.foundation:foundation:1.7.0")
42                implementation("androidx.compose.foundation:foundation-layout:1.7.0")
43                implementation(project(":constraintlayout:constraintlayout-core"))
44                implementation("androidx.collection:collection:1.4.2")
45                implementation(libs.kotlinStdlib)
46            }
47        }
48
49        commonTest {
50            dependencies {
51            }
52        }
53
54        jvmCommonMain {
55            dependsOn(commonMain)
56            dependencies {
57            }
58        }
59
60
61        androidMain {
62            dependsOn(jvmCommonMain)
63            dependencies {
64                api("androidx.annotation:annotation:1.8.1")
65                implementation("androidx.core:core-ktx:1.5.0")
66            }
67        }
68
69        jvmCommonTest {
70            dependsOn(commonTest)
71            dependencies {
72            }
73        }
74
75        androidInstrumentedTest {
76            dependsOn(jvmCommonTest)
77            dependencies {
78                implementation(libs.kotlinTest)
79                implementation(libs.testRules)
80                implementation(libs.testRunner)
81                implementation(libs.junit)
82                implementation(libs.truth)
83                implementation(project(":compose:foundation:foundation"))
84                implementation(project(":compose:material:material"))
85                implementation("androidx.compose.material:material-icons-core:1.6.7")
86                implementation(project(":compose:ui:ui-test-junit4"))
87                implementation(project(":compose:test-utils"))
88            }
89        }
90
91        androidUnitTest {
92            dependsOn(jvmCommonTest)
93            dependencies {
94                implementation(libs.kotlinTest)
95                implementation(libs.testRules)
96                implementation(libs.testRunner)
97                implementation(libs.junit)
98            }
99        }
100    }
101}
102
103dependencies {
104    lintPublish(project(":constraintlayout:constraintlayout-compose-lint"))
105}
106
107androidx {
108    name = "ConstraintLayout Compose"
109    type = SoftwareType.PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS
110    mavenVersion = LibraryVersions.CONSTRAINTLAYOUT_COMPOSE
111    inceptionYear = "2022"
112    description = "This library offers a flexible and adaptable way to position and animate widgets in Compose"
113    legacyDisableKotlinStrictApiMode = true
114    metalavaK2UastEnabled = false
115    samples(project(":constraintlayout:constraintlayout-compose:constraintlayout-compose-samples"))
116}
117
118android {
119    compileSdk = 35
120    namespace = "androidx.constraintlayout.compose"
121}
122