1/*
2 * Copyright (C) 2023 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 */
24
25
26import androidx.build.SoftwareType
27import androidx.build.PlatformIdentifier
28
29plugins {
30    id("AndroidXPlugin")
31    id("AndroidXComposePlugin")
32}
33
34androidXMultiplatform {
35    androidLibrary {
36        namespace = "androidx.compose.material3.adaptive.navigationsuite"
37        withAndroidTestOnDeviceBuilder {
38            it.compilationName = "instrumentedTest"
39            it.defaultSourceSetName = "androidInstrumentedTest"
40            it.sourceSetTreeName = "test"
41        }
42        withAndroidTestOnJvmBuilder {
43            it.defaultSourceSetName = "androidUnitTest"
44        }
45
46        compileSdk = 35
47        aarMetadata.minCompileSdk = 35
48    }
49    jvmStubs()
50
51    defaultPlatform(PlatformIdentifier.ANDROID)
52
53    sourceSets {
54        commonMain {
55            dependencies {
56                implementation(libs.kotlinStdlib)
57                api(project(":compose:material3:material3"))
58                api(project(":compose:material3:adaptive:adaptive"))
59                implementation("androidx.window:window-core:1.4.0-rc01")
60            }
61        }
62
63        commonTest {
64            dependencies {
65            }
66        }
67
68        jvmMain {
69            dependsOn(commonMain)
70            dependencies {
71            }
72        }
73
74        androidMain {
75            dependsOn(jvmMain)
76            dependencies {
77                api("androidx.annotation:annotation:1.8.1")
78                api("androidx.annotation:annotation-experimental:1.4.1")
79            }
80        }
81
82        jvmStubsMain {
83            dependsOn(jvmMain)
84            dependencies {
85            }
86        }
87
88        androidInstrumentedTest {
89            dependsOn(commonTest)
90            dependencies {
91                implementation(project(":compose:test-utils"))
92                implementation("androidx.window:window-testing:1.3.0")
93                implementation(libs.junit)
94                implementation(libs.testRunner)
95                implementation(libs.truth)
96            }
97        }
98
99        androidUnitTest {
100            dependsOn(commonTest)
101            dependencies {
102                implementation(libs.junit)
103                implementation(libs.testRunner)
104                implementation(libs.truth)
105                implementation(project(":window:window-core"))
106            }
107        }
108    }
109}
110
111
112androidx {
113    name = "Material Adaptive Navigation Suite"
114    type = SoftwareType.PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS
115    inceptionYear = "2023"
116    description = "Compose Material Design Adaptive Navigation Suite Library"
117    legacyDisableKotlinStrictApiMode = true
118    samples(project(":compose:material3:material3-adaptive-navigation-suite:material3-adaptive-navigation-suite-samples"))
119}
120