1/*
2 * Copyright (C) 2024 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("org.jetbrains.kotlin.android")
30}
31
32dependencies {
33    api(libs.jspecify)
34    annotationProcessor(libs.nullaway)
35    api(project(":wear:protolayout:protolayout"))
36    api(project(":wear:protolayout:protolayout-expression"))
37    api(libs.kotlinStdlib)
38    implementation(project(":wear:protolayout:protolayout-material-core"))
39    lintChecks(project(":wear:protolayout:protolayout-lint"))
40    lintPublish(project(":wear:protolayout:protolayout-lint"))
41    compileOnly(project(":annotation:annotation-sampled"))
42    implementation("androidx.annotation:annotation-experimental:1.4.1")
43    implementation("androidx.core:core:1.15.0")
44
45    testImplementation(libs.junit)
46    testImplementation(libs.mockitoCore4)
47    testImplementation(libs.robolectric)
48    testImplementation(libs.testExtJunit)
49    testImplementation(libs.testExtTruth)
50    testImplementation(libs.testCore)
51    testImplementation(libs.testRunner)
52    testImplementation(libs.testRules)
53    testImplementation(libs.truth)
54    testImplementation(project(":wear:protolayout:protolayout-proto"))
55    testImplementation(project(":wear:protolayout:protolayout-testing"))
56    testImplementation(project(":wear:protolayout:protolayout"))
57
58    androidTestImplementation(libs.junit)
59    androidTestImplementation(libs.testCore)
60    androidTestImplementation(libs.testExtJunit)
61    androidTestImplementation(libs.testRules)
62    androidTestImplementation(libs.testRunner)
63    androidTestImplementation(project(":test:screenshot:screenshot"))
64    androidTestImplementation("androidx.core:core:1.7.0")
65    androidTestImplementation(project(":test:screenshot:screenshot"))
66    androidTestImplementation(project(":wear:protolayout:protolayout-renderer"))
67    androidTestImplementation(project(":wear:protolayout:protolayout-proto"))
68}
69
70android {
71    compileSdk = 35
72
73    defaultConfig {
74        minSdk = 26
75    }
76    namespace = "androidx.wear.protolayout.material3"
77}
78
79androidx {
80    name = "androidx.wear.protolayout:protolayout-material3"
81    type = SoftwareType.PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS
82    samples(project(":wear:protolayout:protolayout-material3-samples"))
83    inceptionYear = "2024"
84    description = "Material3 components library for ProtoLayout."
85    samples(project(":wear:protolayout:protolayout-material3-samples"))
86    addGoldenImageAssets()
87}
88