blob: 9d38b6adca150d1924b7569b545caaf1392421c1 [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 */
vighnesh15349a2b98d2024-12-30 09:00:46 +000024
25import androidx.build.KotlinTarget
Vineet Kumarf0fa6d52022-06-20 15:45:23 +053026import androidx.build.LibraryType
27
28plugins {
29 id("AndroidXPlugin")
Vineet Kumarcb0d565f2022-04-04 21:24:07 +053030 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)
vighnesh15349a2b98d2024-12-30 09:00:46 +000037 api("androidx.annotation:annotation:1.9.1")
Aurimas Liutikas5aaa8642024-12-11 17:12:09 -080038
vighnesh15349a2b98d2024-12-30 09:00:46 +000039 val composeVersion = "1.7.6"
rvighnesh2f18b602024-03-11 11:29:24 +053040 api("androidx.compose.foundation:foundation:$composeVersion")
rvighnesh2f18b602024-03-11 11:29:24 +053041 api("androidx.compose.runtime:runtime:$composeVersion")
rvighnesh2f18b602024-03-11 11:29:24 +053042 api("androidx.compose.ui:ui:$composeVersion")
rvighnesh2f18b602024-03-11 11:29:24 +053043 api("androidx.compose.ui:ui-text:$composeVersion")
Vineet Kumarcb0d565f2022-04-04 21:24:07 +053044
vighnesh15349a2b98d2024-12-30 09:00:46 +000045 implementation("androidx.profileinstaller:profileinstaller:1.4.1")
vighnesh15370005b32024-06-20 03:54:45 +000046
Vineet Kumarefa63502022-08-30 10:00:54 +000047 androidTestImplementation(libs.truth)
vighnesh15349a2b98d2024-12-30 09:00:46 +000048 androidTestImplementation("androidx.compose.runtime:runtime:$composeVersion")
49 androidTestImplementation("androidx.compose.ui:ui-test:$composeVersion")
50 androidTestImplementation("androidx.compose.ui:ui-test-junit4:$composeVersion")
Vineet Kumarcb0d565f2022-04-04 21:24:07 +053051 androidTestImplementation(project(":compose:test-utils"))
52 androidTestImplementation(libs.testRunner)
Vineet Kumarf0fa6d52022-06-20 15:45:23 +053053}
54
55android {
Aurimas Liutikas77952822024-12-04 18:00:17 -080056 compileSdk = 35
57 namespace = "androidx.tv.foundation"
Vineet Kumarf0fa6d52022-06-20 15:45:23 +053058}
59
60androidx {
Alan Viverettec9e1fd72023-05-08 17:36:59 -040061 name = "TV Foundation"
Omar Ismail8ff41a12024-04-24 11:29:28 +010062 type = LibraryType.PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS
Aurimas Liutikas5aaa8642024-12-11 17:12:09 -080063 mavenVersion = LibraryVersions["TV"]
vighnesh15349a2b98d2024-12-30 09:00:46 +000064 kotlinTarget = KotlinTarget.KOTLIN_1_9
Vineet Kumarf0fa6d52022-06-20 15:45:23 +053065 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 Liutikas5c5419a2024-05-29 15:26:58 -070070 legacyDisableKotlinStrictApiMode = true
Vineet Kumarcb0d565f2022-04-04 21:24:07 +053071}