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  */
24 
25 import androidx.build.KotlinTarget
26 import androidx.build.SoftwareType
27 
<lambda>null28 plugins {
29     id("AndroidXPlugin")
30     id("AndroidXComposePlugin")
31     id("com.android.library")
32     id("org.jetbrains.kotlin.android")
33 }
34 
<lambda>null35 dependencies {
36     api(libs.kotlinStdlib)
37 
38     api("androidx.annotation:annotation:1.9.1")
39 
40     val composeVersion = "1.7.6"
41     api("androidx.compose.animation:animation:$composeVersion")
42     api("androidx.compose.foundation:foundation:$composeVersion")
43     api("androidx.compose.foundation:foundation-layout:$composeVersion")
44     api("androidx.compose.runtime:runtime:$composeVersion")
45     api("androidx.compose.material:material-icons-core:$composeVersion")
46     api("androidx.compose.ui:ui-util:$composeVersion")
47     api("androidx.compose.ui:ui:$composeVersion")
48     api("androidx.compose.ui:ui-graphics:$composeVersion")
49     api("androidx.compose.ui:ui-text:$composeVersion")
50 
51     implementation("androidx.profileinstaller:profileinstaller:1.4.1")
52 
53     androidTestImplementation(libs.truth)
54     androidTestImplementation("androidx.compose.runtime:runtime:$composeVersion")
55     androidTestImplementation("androidx.compose.ui:ui-test:$composeVersion")
56     androidTestImplementation("androidx.compose.ui:ui-test-junit4:$composeVersion")
57     androidTestImplementation(project(":compose:test-utils"))
58     androidTestImplementation(project(":test:screenshot:screenshot"))
59     androidTestImplementation(libs.testRunner)
60 }
61 
<lambda>null62 android {
63     compileSdk = 35
64     namespace = "androidx.tv.material"
65 }
66 
<lambda>null67 androidx {
68     name = "TV Material"
69     type = SoftwareType.PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS
70     mavenVersion = LibraryVersions["TV_MATERIAL"]
71     inceptionYear = "2022"
72     description = "build TV applications using controls that adhere to Material Design Language."
73     legacyDisableKotlinStrictApiMode = true
74     samples(project(":tv:tv-material-samples"))
75     addGoldenImageAssets()
76 }
77