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 | */ |
vighnesh153 | 49a2b98d | 2024-12-30 09:00:46 +0000 | [diff] [blame] | 24 | |
| 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 | cb0d565f | 2022-04-04 21:24:07 +0530 | [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) |
vighnesh153 | 49a2b98d | 2024-12-30 09:00:46 +0000 | [diff] [blame] | 37 | api("androidx.annotation:annotation:1.9.1") |
Aurimas Liutikas | 5aaa864 | 2024-12-11 17:12:09 -0800 | [diff] [blame] | 38 | |
vighnesh153 | 49a2b98d | 2024-12-30 09:00:46 +0000 | [diff] [blame] | 39 | val composeVersion = "1.7.6" |
rvighnesh | 2f18b60 | 2024-03-11 11:29:24 +0530 | [diff] [blame] | 40 | api("androidx.compose.foundation:foundation:$composeVersion") |
rvighnesh | 2f18b60 | 2024-03-11 11:29:24 +0530 | [diff] [blame] | 41 | api("androidx.compose.runtime:runtime:$composeVersion") |
rvighnesh | 2f18b60 | 2024-03-11 11:29:24 +0530 | [diff] [blame] | 42 | api("androidx.compose.ui:ui:$composeVersion") |
rvighnesh | 2f18b60 | 2024-03-11 11:29:24 +0530 | [diff] [blame] | 43 | api("androidx.compose.ui:ui-text:$composeVersion") |
Vineet Kumar | cb0d565f | 2022-04-04 21:24:07 +0530 | [diff] [blame] | 44 | |
vighnesh153 | 49a2b98d | 2024-12-30 09:00:46 +0000 | [diff] [blame] | 45 | implementation("androidx.profileinstaller:profileinstaller:1.4.1") |
vighnesh153 | 70005b3 | 2024-06-20 03:54:45 +0000 | [diff] [blame] | 46 | |
Vineet Kumar | efa6350 | 2022-08-30 10:00:54 +0000 | [diff] [blame] | 47 | androidTestImplementation(libs.truth) |
vighnesh153 | 49a2b98d | 2024-12-30 09:00:46 +0000 | [diff] [blame] | 48 | androidTestImplementation("androidx.compose.runtime:runtime:$composeVersion") |
| 49 | androidTestImplementation("androidx.compose.ui:ui-test:$composeVersion") |
| 50 | androidTestImplementation("androidx.compose.ui:ui-test-junit4:$composeVersion") |
Vineet Kumar | cb0d565f | 2022-04-04 21:24:07 +0530 | [diff] [blame] | 51 | androidTestImplementation(project(":compose:test-utils")) |
| 52 | androidTestImplementation(libs.testRunner) |
Vineet Kumar | f0fa6d5 | 2022-06-20 15:45:23 +0530 | [diff] [blame] | 53 | } |
| 54 | |
| 55 | android { |
Aurimas Liutikas | 7795282 | 2024-12-04 18:00:17 -0800 | [diff] [blame] | 56 | compileSdk = 35 |
| 57 | namespace = "androidx.tv.foundation" |
Vineet Kumar | f0fa6d5 | 2022-06-20 15:45:23 +0530 | [diff] [blame] | 58 | } |
| 59 | |
| 60 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 61 | name = "TV Foundation" |
Omar Ismail | 8ff41a1 | 2024-04-24 11:29:28 +0100 | [diff] [blame] | 62 | type = LibraryType.PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS |
Aurimas Liutikas | 5aaa864 | 2024-12-11 17:12:09 -0800 | [diff] [blame] | 63 | mavenVersion = LibraryVersions["TV"] |
vighnesh153 | 49a2b98d | 2024-12-30 09:00:46 +0000 | [diff] [blame] | 64 | kotlinTarget = KotlinTarget.KOTLIN_1_9 |
Vineet Kumar | f0fa6d5 | 2022-06-20 15:45:23 +0530 | [diff] [blame] | 65 | inceptionYear = "2022" |
| 66 | description = "This library makes it easier for developers" + |
| 67 | "to write Jetpack Compose applications for TV devices by providing " + |
| 68 | "functionality to support TV specific devices sizes, shapes and d-pad navigation " + |
| 69 | "supported components. It builds upon the Jetpack Compose libraries." |
Aurimas Liutikas | 5c5419a | 2024-05-29 15:26:58 -0700 | [diff] [blame] | 70 | legacyDisableKotlinStrictApiMode = true |
Vineet Kumar | cb0d565f | 2022-04-04 21:24:07 +0530 | [diff] [blame] | 71 | } |