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 |
Ian Lake | 6e53bd19 | 2018-08-31 10:59:49 -0700 | [diff] [blame] | 9 | |
| 10 | plugins { |
Aurimas Liutikas | cdb9f9f | 2019-04-08 12:07:49 +0100 | [diff] [blame] | 11 | id("AndroidXPlugin") |
| 12 | id("com.android.library") |
Ian Lake | 6e53bd19 | 2018-08-31 10:59:49 -0700 | [diff] [blame] | 13 | id("kotlin-android") |
Marcello Albano | 07912b8 | 2023-02-08 15:29:13 -0800 | [diff] [blame] | 14 | id("androidx.baselineprofile") |
Ian Lake | 6e53bd19 | 2018-08-31 10:59:49 -0700 | [diff] [blame] | 15 | } |
| 16 | |
Aurimas Liutikas | 5888019 | 2019-06-26 17:17:08 -0700 | [diff] [blame] | 17 | android { |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 18 | namespace "androidx.activity" |
Aurimas Liutikas | 5888019 | 2019-06-26 17:17:08 -0700 | [diff] [blame] | 19 | } |
| 20 | |
Ian Lake | 6e53bd19 | 2018-08-31 10:59:49 -0700 | [diff] [blame] | 21 | dependencies { |
Alan Viverette | ced1c93 | 2022-04-27 13:05:32 -0400 | [diff] [blame] | 22 | |
Nick Anthony | ac4cf06 | 2019-06-04 10:59:29 -0400 | [diff] [blame] | 23 | api("androidx.annotation:annotation:1.1.0") |
Jeff Gaston | af5cd0f | 2020-04-06 12:55:54 -0400 | [diff] [blame] | 24 | implementation("androidx.collection:collection:1.0.0") |
Jeremy Woods | 8aaf581 | 2024-04-04 19:27:22 +0000 | [diff] [blame] | 25 | api("androidx.core:core:1.13.0") |
Jeremy Woods | 586fe7d | 2023-03-10 00:54:14 +0000 | [diff] [blame] | 26 | api("androidx.lifecycle:lifecycle-runtime:2.6.1") |
| 27 | api("androidx.lifecycle:lifecycle-viewmodel:2.6.1") |
Jeremy Woods | 078e4ef | 2023-03-09 23:39:33 +0000 | [diff] [blame] | 28 | api("androidx.savedstate:savedstate:1.2.1") |
Jeremy Woods | 586fe7d | 2023-03-10 00:54:14 +0000 | [diff] [blame] | 29 | api("androidx.lifecycle:lifecycle-viewmodel-savedstate:2.6.1") |
Chris Craik | acb4252 | 2024-03-19 13:42:53 -0700 | [diff] [blame] | 30 | implementation("androidx.profileinstaller:profileinstaller:1.3.1") |
Chris Craik | 0cc052f | 2020-12-08 15:05:50 -0800 | [diff] [blame] | 31 | implementation("androidx.tracing:tracing:1.0.0") |
Ian Lake | c868d24 | 2021-08-27 11:01:47 -0700 | [diff] [blame] | 32 | api(libs.kotlinStdlib) |
Ian Lake | 6e53bd19 | 2018-08-31 10:59:49 -0700 | [diff] [blame] | 33 | |
Ian Lake | b8eda3d | 2024-01-03 23:35:40 +0000 | [diff] [blame] | 34 | androidTestImplementation("androidx.lifecycle:lifecycle-runtime-testing:2.6.1") |
| 35 | androidTestImplementation("androidx.lifecycle:lifecycle-viewmodel:2.6.1") |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 36 | androidTestImplementation(libs.kotlinStdlib) |
Sanura N'Jaka | 28424b7 | 2021-08-20 21:46:48 +0000 | [diff] [blame] | 37 | androidTestImplementation(libs.espressoCore, excludes.espresso) |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 38 | androidTestImplementation(libs.leakcanary) |
| 39 | androidTestImplementation(libs.leakcanaryInstrumentation) |
| 40 | androidTestImplementation(libs.testExtJunit) |
| 41 | androidTestImplementation(libs.testCore) |
| 42 | androidTestImplementation(libs.testRunner) |
| 43 | androidTestImplementation(libs.testRules) |
| 44 | androidTestImplementation(libs.truth) |
Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 45 | androidTestImplementation(project(":internal-testutils-runtime"), { |
| 46 | exclude group: "androidx.activity", module: "activity" |
| 47 | }) |
Jeremy Woods | a17089e | 2020-07-01 17:59:41 -0700 | [diff] [blame] | 48 | |
Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 49 | lintPublish(project(":activity:activity-lint")) |
Marcello Albano | 07912b8 | 2023-02-08 15:29:13 -0800 | [diff] [blame] | 50 | |
| 51 | baselineProfile(project(":activity:integration-tests:baselineprofile")) |
Ian Lake | 6e53bd19 | 2018-08-31 10:59:49 -0700 | [diff] [blame] | 52 | } |
| 53 | |
Aurimas Liutikas | 2ad3161 | 2019-04-01 04:23:03 -0700 | [diff] [blame] | 54 | androidx { |
Ian Lake | 6e53bd19 | 2018-08-31 10:59:49 -0700 | [diff] [blame] | 55 | name = "Activity" |
Omar Ismail | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame] | 56 | type = LibraryType.PUBLISHED_LIBRARY |
Ian Lake | 6e53bd19 | 2018-08-31 10:59:49 -0700 | [diff] [blame] | 57 | inceptionYear = "2018" |
| 58 | description = "Provides the base Activity subclass and the relevant hooks to build a composable structure on top." |
Jinseong Jeon | 14b91e9 | 2023-10-05 22:26:34 -0700 | [diff] [blame] | 59 | metalavaK2UastEnabled = true |
Aurimas Liutikas | 5c5419a | 2024-05-29 15:26:58 -0700 | [diff] [blame] | 60 | legacyDisableKotlinStrictApiMode = true |
Ian Lake | 6e53bd19 | 2018-08-31 10:59:49 -0700 | [diff] [blame] | 61 | } |
Marcello Albano | 07912b8 | 2023-02-08 15:29:13 -0800 | [diff] [blame] | 62 | |
| 63 | baselineProfile { |
| 64 | // This filter selects everything in androidx.activity, excluding the integration test code. |
| 65 | filter { |
| 66 | include "androidx.activity.**" |
| 67 | exclude "androidx.activity.integration.**" |
| 68 | } |
| 69 | } |