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>null28plugins { 29 id("AndroidXPlugin") 30 id("AndroidXComposePlugin") 31 id("com.android.library") 32 id("org.jetbrains.kotlin.android") 33 } 34 <lambda>null35dependencies { 36 api(libs.kotlinStdlib) 37 api("androidx.annotation:annotation:1.9.1") 38 39 val composeVersion = "1.7.6" 40 api("androidx.compose.foundation:foundation:$composeVersion") 41 api("androidx.compose.runtime:runtime:$composeVersion") 42 api("androidx.compose.ui:ui:$composeVersion") 43 api("androidx.compose.ui:ui-text:$composeVersion") 44 45 implementation("androidx.profileinstaller:profileinstaller:1.4.1") 46 47 androidTestImplementation(libs.truth) 48 androidTestImplementation("androidx.compose.runtime:runtime:$composeVersion") 49 androidTestImplementation("androidx.compose.ui:ui-test:$composeVersion") 50 androidTestImplementation("androidx.compose.ui:ui-test-junit4:$composeVersion") 51 androidTestImplementation(project(":compose:test-utils")) 52 androidTestImplementation(libs.testRunner) 53 } 54 <lambda>null55android { 56 compileSdk = 35 57 namespace = "androidx.tv.foundation" 58 } 59 <lambda>null60androidx { 61 name = "TV Foundation" 62 type = SoftwareType.PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS 63 mavenVersion = LibraryVersions["TV"] 64 inceptionYear = "2022" 65 description = "This library makes it easier for developers" + 66 "to write Jetpack Compose applications for TV devices by providing " + 67 "functionality to support TV specific devices sizes, shapes and d-pad navigation " + 68 "supported components. It builds upon the Jetpack Compose libraries." 69 legacyDisableKotlinStrictApiMode = true 70 } 71