blob: 569a15fa2b249f834b6bd6036f1e7c28cef06db1 [file] [log] [blame]
Vineet Kumarf0fa6d52022-06-20 15:45:23 +05301/*
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 */
Aurimas Liutikas5aaa8642024-12-11 17:12:09 -080024
vighnesh15349a2b98d2024-12-30 09:00:46 +000025import androidx.build.KotlinTarget
Vineet Kumarf0fa6d52022-06-20 15:45:23 +053026import androidx.build.LibraryType
27
28plugins {
29 id("AndroidXPlugin")
Vineet Kumarefa63502022-08-30 10:00:54 +000030 id("AndroidXComposePlugin")
Vineet Kumarf0fa6d52022-06-20 15:45:23 +053031 id("com.android.library")
32 id("org.jetbrains.kotlin.android")
33}
34
35dependencies {
36 api(libs.kotlinStdlib)
rvighnesh2f18b602024-03-11 11:29:24 +053037
vighnesh15349a2b98d2024-12-30 09:00:46 +000038 api("androidx.annotation:annotation:1.9.1")
Aurimas Liutikas5aaa8642024-12-11 17:12:09 -080039
vighnesh15349a2b98d2024-12-30 09:00:46 +000040 val composeVersion = "1.7.6"
rvighnesh2f18b602024-03-11 11:29:24 +053041 api("androidx.compose.animation:animation:$composeVersion")
42 api("androidx.compose.foundation:foundation:$composeVersion")
43 api("androidx.compose.foundation:foundation-layout:$composeVersion")
rvighnesha7ff6a62024-03-11 22:56:16 +053044 api("androidx.compose.runtime:runtime:$composeVersion")
rvighnesh2f18b602024-03-11 11:29:24 +053045 api("androidx.compose.material:material-icons-core:$composeVersion")
rvighnesha7ff6a62024-03-11 22:56:16 +053046 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")
Vighnesh Raut6a0585f2022-12-08 15:51:56 +053050
vighnesh15349a2b98d2024-12-30 09:00:46 +000051 implementation("androidx.profileinstaller:profileinstaller:1.4.1")
Vineet Kumarefa63502022-08-30 10:00:54 +000052
53 androidTestImplementation(libs.truth)
vighnesh15349a2b98d2024-12-30 09:00:46 +000054 androidTestImplementation("androidx.compose.runtime:runtime:$composeVersion")
55 androidTestImplementation("androidx.compose.ui:ui-test:$composeVersion")
56 androidTestImplementation("androidx.compose.ui:ui-test-junit4:$composeVersion")
Vineet Kumarefa63502022-08-30 10:00:54 +000057 androidTestImplementation(project(":compose:test-utils"))
Vighnesh Raut7e0b7c12023-03-10 16:20:44 +053058 androidTestImplementation(project(":test:screenshot:screenshot"))
Vineet Kumarefa63502022-08-30 10:00:54 +000059 androidTestImplementation(libs.testRunner)
Vineet Kumarf0fa6d52022-06-20 15:45:23 +053060}
61
62android {
Aurimas Liutikas77952822024-12-04 18:00:17 -080063 compileSdk = 35
64 namespace = "androidx.tv.material"
Vineet Kumarf0fa6d52022-06-20 15:45:23 +053065}
66
67androidx {
Alan Viverettec9e1fd72023-05-08 17:36:59 -040068 name = "TV Material"
Omar Ismail8ff41a12024-04-24 11:29:28 +010069 type = LibraryType.PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS
Aurimas Liutikas5aaa8642024-12-11 17:12:09 -080070 mavenVersion = LibraryVersions["TV_MATERIAL"]
vighnesh15349a2b98d2024-12-30 09:00:46 +000071 kotlinTarget = KotlinTarget.KOTLIN_1_9
Vineet Kumarf0fa6d52022-06-20 15:45:23 +053072 inceptionYear = "2022"
73 description = "build TV applications using controls that adhere to Material Design Language."
Aurimas Liutikas5c5419a2024-05-29 15:26:58 -070074 legacyDisableKotlinStrictApiMode = true
Jinseong Jeon01fdca12024-07-22 22:58:29 -070075 metalavaK2UastEnabled = false
rvighneshc0579212024-05-06 12:36:59 +053076 samples(project(":tv:tv-material-samples"))
Aurimas Liutikas26cc1bf2024-12-11 18:09:23 -080077 addGoldenImageAssets()
Vineet Kumarefa63502022-08-30 10:00:54 +000078}