1/**
2 * This file was created using the `create_project.py` script located in the
3 * `<AndroidX root>/development/project-creator` directory.
4 *
5 * Please use that script when creating a new project, rather than copying an existing project and
6 * modifying its settings.
7 */
8import androidx.build.SoftwareType
9
10plugins {
11    id("AndroidXPlugin")
12    id("com.android.library")
13    id("org.jetbrains.kotlin.android")
14}
15
16dependencies {
17    api("androidx.annotation:annotation:1.8.1")
18    api(project(":leanback:leanback"))
19    api("androidx.paging:paging-runtime:3.1.0")
20
21    // To avoid manifest merger warnings due to duplicate package names
22    // It can be removed if leanback library is updated to a newer version
23    implementation("androidx.vectordrawable:vectordrawable-animated:1.1.0")
24
25    androidTestImplementation(libs.testExtJunit)
26    androidTestImplementation(libs.testCore)
27    androidTestImplementation(libs.testRunner)
28    androidTestImplementation(libs.testRules)
29    androidTestImplementation(libs.espressoCore)
30    androidTestImplementation(libs.mockitoCore)
31    androidTestImplementation(libs.dexmakerMockito)
32    androidTestImplementation(project(":internal-testutils-espresso"))
33    androidTestImplementation(project(":internal-testutils-runtime"))
34    androidTestImplementation(project(":internal-testutils-common"))
35    androidTestImplementation(project(":internal-testutils-ktx"))
36    // internal-testutils-paging uses latest version of paging-common which is getting pulled in
37    // by gradle when leanback runs. But leanback uses paging-runtime:3.0.0. The version discrepancy
38    // between paging-common and paging-runtime will cause errors. `Exclude` prevents pulling in
39    // paging-common from internal-testutils-paging and uses the 3.0.0 version provided by leanback.
40    androidTestImplementation(project(":internal-testutils-paging")){
41        exclude group: "androidx.paging"
42    }
43    androidTestImplementation(libs.kotlinTest)
44    androidTestImplementation(libs.kotlinCoroutinesTest)
45    androidTestImplementation("androidx.arch.core:core-testing:2.2.0")
46    androidTestImplementation("androidx.lifecycle:lifecycle-runtime-testing:2.3.1")
47}
48
49android {
50    compileSdk = 35
51    lint {
52        // Bug in Android Lint 7.0.0-alpha15 b/187419330
53        disable.add("MissingLeanbackLauncher")
54        disable.add("ImpliedTouchscreenHardware")
55        disable.add("MissingLeanbackSupport")
56    }
57    namespace = "androidx.leanback.paging"
58}
59
60androidx {
61    name = "Leanback Paging"
62    type = SoftwareType.PUBLISHED_LIBRARY
63    mavenVersion = LibraryVersions.LEANBACK_PAGING
64    inceptionYear = "2020"
65    description = "AndroidX Leanback Paging"
66    failOnDeprecationWarnings = false
67    legacyDisableKotlinStrictApiMode = true
68}
69