Vineet Kumar | f0fa6d5 | 2022-06-20 15:45:23 +0530 | [diff] [blame] | 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 | |
Tiem Song | ee0da74 | 2024-01-03 14:08:46 -0800 | [diff] [blame] | 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 | */ |
Aurimas Liutikas | 5aaa864 | 2024-12-11 17:12:09 -0800 | [diff] [blame] | 24 | |
vighnesh153 | 49a2b98d | 2024-12-30 09:00:46 +0000 | [diff] [blame] | 25 | import androidx.build.KotlinTarget |
Vineet Kumar | f0fa6d5 | 2022-06-20 15:45:23 +0530 | [diff] [blame] | 26 | import androidx.build.LibraryType |
| 27 | |
| 28 | plugins { |
| 29 | id("AndroidXPlugin") |
Vineet Kumar | efa6350 | 2022-08-30 10:00:54 +0000 | [diff] [blame] | 30 | id("AndroidXComposePlugin") |
Vineet Kumar | f0fa6d5 | 2022-06-20 15:45:23 +0530 | [diff] [blame] | 31 | id("com.android.library") |
| 32 | id("org.jetbrains.kotlin.android") |
| 33 | } |
| 34 | |
| 35 | dependencies { |
| 36 | api(libs.kotlinStdlib) |
rvighnesh | 2f18b60 | 2024-03-11 11:29:24 +0530 | [diff] [blame] | 37 | |
vighnesh153 | 49a2b98d | 2024-12-30 09:00:46 +0000 | [diff] [blame] | 38 | api("androidx.annotation:annotation:1.9.1") |
Aurimas Liutikas | 5aaa864 | 2024-12-11 17:12:09 -0800 | [diff] [blame] | 39 | |
vighnesh153 | 49a2b98d | 2024-12-30 09:00:46 +0000 | [diff] [blame] | 40 | val composeVersion = "1.7.6" |
rvighnesh | 2f18b60 | 2024-03-11 11:29:24 +0530 | [diff] [blame] | 41 | api("androidx.compose.animation:animation:$composeVersion") |
| 42 | api("androidx.compose.foundation:foundation:$composeVersion") |
| 43 | api("androidx.compose.foundation:foundation-layout:$composeVersion") |
rvighnesh | a7ff6a6 | 2024-03-11 22:56:16 +0530 | [diff] [blame] | 44 | api("androidx.compose.runtime:runtime:$composeVersion") |
rvighnesh | 2f18b60 | 2024-03-11 11:29:24 +0530 | [diff] [blame] | 45 | api("androidx.compose.material:material-icons-core:$composeVersion") |
rvighnesh | a7ff6a6 | 2024-03-11 22:56:16 +0530 | [diff] [blame] | 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") |
Vighnesh Raut | 6a0585f | 2022-12-08 15:51:56 +0530 | [diff] [blame] | 50 | |
vighnesh153 | 49a2b98d | 2024-12-30 09:00:46 +0000 | [diff] [blame] | 51 | implementation("androidx.profileinstaller:profileinstaller:1.4.1") |
Vineet Kumar | efa6350 | 2022-08-30 10:00:54 +0000 | [diff] [blame] | 52 | |
| 53 | androidTestImplementation(libs.truth) |
vighnesh153 | 49a2b98d | 2024-12-30 09:00:46 +0000 | [diff] [blame] | 54 | androidTestImplementation("androidx.compose.runtime:runtime:$composeVersion") |
| 55 | androidTestImplementation("androidx.compose.ui:ui-test:$composeVersion") |
| 56 | androidTestImplementation("androidx.compose.ui:ui-test-junit4:$composeVersion") |
Vineet Kumar | efa6350 | 2022-08-30 10:00:54 +0000 | [diff] [blame] | 57 | androidTestImplementation(project(":compose:test-utils")) |
Vighnesh Raut | 7e0b7c1 | 2023-03-10 16:20:44 +0530 | [diff] [blame] | 58 | androidTestImplementation(project(":test:screenshot:screenshot")) |
Vineet Kumar | efa6350 | 2022-08-30 10:00:54 +0000 | [diff] [blame] | 59 | androidTestImplementation(libs.testRunner) |
Vineet Kumar | f0fa6d5 | 2022-06-20 15:45:23 +0530 | [diff] [blame] | 60 | } |
| 61 | |
| 62 | android { |
Aurimas Liutikas | 7795282 | 2024-12-04 18:00:17 -0800 | [diff] [blame] | 63 | compileSdk = 35 |
| 64 | namespace = "androidx.tv.material" |
Vineet Kumar | f0fa6d5 | 2022-06-20 15:45:23 +0530 | [diff] [blame] | 65 | } |
| 66 | |
| 67 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 68 | name = "TV Material" |
Omar Ismail | 8ff41a1 | 2024-04-24 11:29:28 +0100 | [diff] [blame] | 69 | type = LibraryType.PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS |
Aurimas Liutikas | 5aaa864 | 2024-12-11 17:12:09 -0800 | [diff] [blame] | 70 | mavenVersion = LibraryVersions["TV_MATERIAL"] |
vighnesh153 | 49a2b98d | 2024-12-30 09:00:46 +0000 | [diff] [blame] | 71 | kotlinTarget = KotlinTarget.KOTLIN_1_9 |
Vineet Kumar | f0fa6d5 | 2022-06-20 15:45:23 +0530 | [diff] [blame] | 72 | inceptionYear = "2022" |
| 73 | description = "build TV applications using controls that adhere to Material Design Language." |
Aurimas Liutikas | 5c5419a | 2024-05-29 15:26:58 -0700 | [diff] [blame] | 74 | legacyDisableKotlinStrictApiMode = true |
Jinseong Jeon | 01fdca1 | 2024-07-22 22:58:29 -0700 | [diff] [blame] | 75 | metalavaK2UastEnabled = false |
rvighnesh | c057921 | 2024-05-06 12:36:59 +0530 | [diff] [blame] | 76 | samples(project(":tv:tv-material-samples")) |
Aurimas Liutikas | 26cc1bf | 2024-12-11 18:09:23 -0800 | [diff] [blame] | 77 | addGoldenImageAssets() |
Vineet Kumar | efa6350 | 2022-08-30 10:00:54 +0000 | [diff] [blame] | 78 | } |