Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 1 | import androidx.build.Publish |
Aurimas Liutikas | bb85fac | 2017-08-24 13:32:28 -0700 | [diff] [blame] | 2 | |
Aurimas Liutikas | f8b708a | 2017-11-02 16:07:13 -0700 | [diff] [blame] | 3 | plugins { |
Aurimas Liutikas | cdb9f9f | 2019-04-08 12:07:49 +0100 | [diff] [blame] | 4 | id("AndroidXPlugin") |
| 5 | id("com.android.library") |
Aurimas Liutikas | f8b708a | 2017-11-02 16:07:13 -0700 | [diff] [blame] | 6 | } |
Yigit Boyar | b96cceaa | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 7 | |
| 8 | android { |
Sergey Vasilinets | 1a06787 | 2017-06-21 16:27:47 -0700 | [diff] [blame] | 9 | buildTypes.all { |
Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 10 | consumerProguardFiles "proguard-rules.pro" |
Sergey Vasilinets | 1a06787 | 2017-06-21 16:27:47 -0700 | [diff] [blame] | 11 | } |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 12 | namespace "androidx.lifecycle.runtime" |
Yigit Boyar | b96cceaa | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 13 | } |
| 14 | |
| 15 | dependencies { |
Alan Viverette | bdc4c86 | 2018-03-08 18:02:39 -0500 | [diff] [blame] | 16 | api(project(":lifecycle:lifecycle-common")) |
Sergey Vasilinets | 20a1295 | 2021-08-20 15:49:17 +0100 | [diff] [blame] | 17 | |
Ian Lake | 391dc4b | 2019-09-07 17:51:23 -0700 | [diff] [blame] | 18 | api("androidx.arch.core:core-common:2.1.0") |
Sergey Vasilinets | e69e470 | 2017-02-10 02:26:10 -0800 | [diff] [blame] | 19 | // necessary for IJ to resolve dependencies. |
Nick Anthony | ac4cf06 | 2019-06-04 10:59:29 -0400 | [diff] [blame] | 20 | api("androidx.annotation:annotation:1.1.0") |
Sergey Vasilinets | a9a8ffd | 2020-07-12 16:25:37 +0100 | [diff] [blame] | 21 | implementation("androidx.arch.core:core-runtime:2.1.0") |
Yigit Boyar | 21886b6 | 2016-12-12 16:59:30 -0800 | [diff] [blame] | 22 | |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 23 | testImplementation(libs.junit) |
| 24 | testImplementation(libs.mockitoCore) |
Yigit Boyar | 54850ab | 2017-10-09 11:31:24 -0700 | [diff] [blame] | 25 | |
Aurimas Liutikas | bc1dbeb | 2021-05-04 13:36:59 -0700 | [diff] [blame] | 26 | androidTestImplementation(libs.junit) |
| 27 | androidTestImplementation(libs.testExtJunit) |
| 28 | androidTestImplementation(libs.testCore) |
| 29 | androidTestImplementation(libs.testRunner) |
Sanura N'Jaka | b671082 | 2022-08-17 20:02:11 +0000 | [diff] [blame] | 30 | |
| 31 | constraints { |
| 32 | implementation(project(":lifecycle:lifecycle-common")) |
Sanura N'Jaka | 3409880 | 2022-08-17 22:16:45 +0000 | [diff] [blame] | 33 | implementation(project(":lifecycle:lifecycle-runtime-ktx")) |
Sanura N'Jaka | f9794b4 | 2022-08-17 22:26:13 +0000 | [diff] [blame] | 34 | implementation(project(":lifecycle:lifecycle-runtime-testing")) |
Sanura N'Jaka | e7a81dc9 | 2022-08-17 22:44:55 +0000 | [diff] [blame] | 35 | // this syntax is a temporary workout to allow project dependency on cross-project-set |
| 36 | // i.e. COMPOSE + MAIN project sets |
| 37 | // update syntax when b/239979823 is fixed |
| 38 | implementation("androidx.lifecycle:lifecycle-runtime-compose:{androidx.LibraryVersions.LIFECYCLE}") |
Sanura N'Jaka | b671082 | 2022-08-17 20:02:11 +0000 | [diff] [blame] | 39 | } |
Yigit Boyar | b96cceaa | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 40 | } |
Yigit Boyar | 19b4110 | 2016-11-20 10:46:32 -0800 | [diff] [blame] | 41 | |
Aurimas Liutikas | 2ad3161 | 2019-04-01 04:23:03 -0700 | [diff] [blame] | 42 | androidx { |
Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 43 | name "Android Lifecycle Runtime" |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 44 | publish = Publish.SNAPSHOT_AND_RELEASE |
Aurimas Liutikas | 7f40a7e | 2017-10-27 17:55:06 -0700 | [diff] [blame] | 45 | mavenGroup LibraryGroups.LIFECYCLE |
Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 46 | inceptionYear "2017" |
Aurimas Liutikas | bb85fac | 2017-08-24 13:32:28 -0700 | [diff] [blame] | 47 | description "Android Lifecycle Runtime" |
Jake Wharton | fc35d14 | 2018-08-04 02:28:31 -0400 | [diff] [blame] | 48 | } |