Tiem Song | ee0da74 | 2024-01-03 14:08:46 -0800 | [diff] [blame] | 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 | */ |
Omar Ismail | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame] | 8 | import androidx.build.LibraryType |
sambitp | a58362a | 2020-07-17 04:11:18 +0530 | [diff] [blame] | 9 | |
| 10 | plugins { |
| 11 | id("AndroidXPlugin") |
| 12 | id("com.android.library") |
| 13 | id("kotlin-android") |
| 14 | } |
| 15 | |
| 16 | dependencies { |
Aurimas Liutikas | 96f0b30 | 2024-07-25 15:49:23 -0700 | [diff] [blame] | 17 | api("androidx.annotation:annotation:1.8.1") |
Dake Gu | d89a945b | 2020-12-03 14:04:05 -0800 | [diff] [blame] | 18 | api("androidx.leanback:leanback:1.1.0-beta01") |
Clara Fok | 882ed18 | 2022-10-28 10:46:22 -0700 | [diff] [blame] | 19 | api("androidx.paging:paging-runtime:3.1.0") |
sambitp | a58362a | 2020-07-17 04:11:18 +0530 | [diff] [blame] | 20 | |
Aurimas Liutikas | 5a9a40d | 2021-08-05 16:07:49 -0700 | [diff] [blame] | 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 | |
Aurimas Liutikas | b3483fd | 2021-06-04 16:56:37 -0700 | [diff] [blame] | 25 | androidTestImplementation(libs.testExtJunit) |
| 26 | androidTestImplementation(libs.testCore) |
| 27 | androidTestImplementation(libs.testRunner) |
| 28 | androidTestImplementation(libs.testRules) |
Aurimas Liutikas | 08f94ae | 2024-09-19 21:40:37 -0700 | [diff] [blame] | 29 | androidTestImplementation(libs.espressoCore) |
Aurimas Liutikas | 1a31ba6 | 2024-08-30 12:49:00 -0700 | [diff] [blame] | 30 | androidTestImplementation(libs.mockitoCore) |
| 31 | androidTestImplementation(libs.dexmakerMockito) |
sambitp | a58362a | 2020-07-17 04:11:18 +0530 | [diff] [blame] | 32 | androidTestImplementation(project(":internal-testutils-espresso")) |
| 33 | androidTestImplementation(project(":internal-testutils-runtime")) |
| 34 | androidTestImplementation(project(":internal-testutils-common")) |
| 35 | androidTestImplementation(project(":internal-testutils-ktx")) |
Clara Fok | 2dfb235 | 2021-08-02 14:34:12 -0700 | [diff] [blame] | 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 | } |
Aurimas Liutikas | b3483fd | 2021-06-04 16:56:37 -0700 | [diff] [blame] | 43 | androidTestImplementation(libs.kotlinTest) |
| 44 | androidTestImplementation(libs.kotlinCoroutinesTest) |
Jeremy Woods | 5dc7b57 | 2023-05-01 22:46:22 +0000 | [diff] [blame] | 45 | androidTestImplementation("androidx.arch.core:core-testing:2.2.0") |
Ian Lake | 6b6bf16 | 2021-08-25 22:23:04 -0700 | [diff] [blame] | 46 | androidTestImplementation("androidx.lifecycle:lifecycle-runtime-testing:2.3.1") |
sambitp | a58362a | 2020-07-17 04:11:18 +0530 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | android { |
Aurimas Liutikas | 7795282 | 2024-12-04 18:00:17 -0800 | [diff] [blame] | 50 | compileSdk = 35 |
Alan Viverette | 4411aa1 | 2021-05-07 18:33:11 -0400 | [diff] [blame] | 51 | lintOptions { |
| 52 | // Bug in Android Lint 7.0.0-alpha15 b/187419330 |
| 53 | disable("MissingLeanbackLauncher", "ImpliedTouchscreenHardware", "MissingLeanbackSupport") |
| 54 | } |
Aurimas Liutikas | 7795282 | 2024-12-04 18:00:17 -0800 | [diff] [blame] | 55 | namespace = "androidx.leanback.paging" |
sambitp | a58362a | 2020-07-17 04:11:18 +0530 | [diff] [blame] | 56 | } |
| 57 | |
sambitp | a58362a | 2020-07-17 04:11:18 +0530 | [diff] [blame] | 58 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 59 | name = "Leanback Paging" |
Omar Ismail | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame] | 60 | type = LibraryType.PUBLISHED_LIBRARY |
Dake Gu | 600b93d | 2020-11-16 10:13:26 -0800 | [diff] [blame] | 61 | mavenVersion = LibraryVersions.LEANBACK_PAGING |
sambitp | a58362a | 2020-07-17 04:11:18 +0530 | [diff] [blame] | 62 | inceptionYear = "2020" |
| 63 | description = "AndroidX Leanback Paging" |
| 64 | failOnDeprecationWarnings = false |
Aurimas Liutikas | c53db9a | 2020-10-08 17:22:52 -0700 | [diff] [blame] | 65 | legacyDisableKotlinStrictApiMode = true |
sambitp | a58362a | 2020-07-17 04:11:18 +0530 | [diff] [blame] | 66 | } |