Aurimas Liutikas | 526389b | 2018-02-27 14:01:24 -0800 | [diff] [blame] | 1 | import static androidx.build.dependencies.DependenciesKt.* |
| 2 | import androidx.build.LibraryGroups |
| 3 | import androidx.build.LibraryVersions |
Aurimas Liutikas | b63ef63 | 2019-04-01 04:37:49 -0700 | [diff] [blame] | 4 | import androidx.build.AndroidXExtension |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 5 | import androidx.build.Publish |
Aurimas Liutikas | bb85fac | 2017-08-24 13:32:28 -0700 | [diff] [blame] | 6 | |
Aurimas Liutikas | f8b708a | 2017-11-02 16:07:13 -0700 | [diff] [blame] | 7 | plugins { |
Aurimas Liutikas | cdb9f9f | 2019-04-08 12:07:49 +0100 | [diff] [blame] | 8 | id("AndroidXPlugin") |
| 9 | id("com.android.library") |
Aurimas Liutikas | f8b708a | 2017-11-02 16:07:13 -0700 | [diff] [blame] | 10 | } |
Yigit Boyar | b96cceaa | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 11 | |
| 12 | android { |
Aurimas Liutikas | e42958e | 2019-06-26 17:07:59 -0700 | [diff] [blame] | 13 | compileOptions { |
| 14 | sourceCompatibility = JavaVersion.VERSION_1_7 |
| 15 | targetCompatibility = JavaVersion.VERSION_1_7 |
| 16 | } |
Sergey Vasilinets | 1a06787 | 2017-06-21 16:27:47 -0700 | [diff] [blame] | 17 | buildTypes.all { |
| 18 | consumerProguardFiles 'proguard-rules.pro' |
| 19 | } |
Yigit Boyar | b96cceaa | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | dependencies { |
Alan Viverette | bdc4c86 | 2018-03-08 18:02:39 -0500 | [diff] [blame] | 23 | api(project(":lifecycle:lifecycle-common")) |
Ian Lake | 391dc4b | 2019-09-07 17:51:23 -0700 | [diff] [blame] | 24 | api("androidx.arch.core:core-common:2.1.0") |
Sergey Vasilinets | e69e470 | 2017-02-10 02:26:10 -0800 | [diff] [blame] | 25 | // necessary for IJ to resolve dependencies. |
Nick Anthony | ac4cf06 | 2019-06-04 10:59:29 -0400 | [diff] [blame] | 26 | api("androidx.annotation:annotation:1.1.0") |
Sergey Vasilinets | a9a8ffd | 2020-07-12 16:25:37 +0100 | [diff] [blame] | 27 | implementation("androidx.arch.core:core-runtime:2.1.0") |
Yigit Boyar | 21886b6 | 2016-12-12 16:59:30 -0800 | [diff] [blame] | 28 | |
Aurimas Liutikas | f4ec12f | 2017-11-22 12:55:43 -0800 | [diff] [blame] | 29 | testImplementation(JUNIT) |
| 30 | testImplementation(MOCKITO_CORE) |
Yigit Boyar | 54850ab | 2017-10-09 11:31:24 -0700 | [diff] [blame] | 31 | |
Aurimas Liutikas | f4ec12f | 2017-11-22 12:55:43 -0800 | [diff] [blame] | 32 | androidTestImplementation(JUNIT) |
Dustin Lam | 3979d96 | 2019-04-08 10:40:19 -0700 | [diff] [blame] | 33 | androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT) |
| 34 | androidTestImplementation(ANDROIDX_TEST_CORE) |
| 35 | androidTestImplementation(ANDROIDX_TEST_RUNNER) |
Yigit Boyar | b96cceaa | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 36 | } |
Yigit Boyar | 19b4110 | 2016-11-20 10:46:32 -0800 | [diff] [blame] | 37 | |
Aurimas Liutikas | 2ad3161 | 2019-04-01 04:23:03 -0700 | [diff] [blame] | 38 | androidx { |
Aurimas Liutikas | bb85fac | 2017-08-24 13:32:28 -0700 | [diff] [blame] | 39 | name 'Android Lifecycle Runtime' |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 40 | publish = Publish.SNAPSHOT_AND_RELEASE |
Sergey Vasilinets | 071d611 | 2018-10-04 19:32:59 +0100 | [diff] [blame] | 41 | mavenVersion = LibraryVersions.LIFECYCLE |
Aurimas Liutikas | 7f40a7e | 2017-10-27 17:55:06 -0700 | [diff] [blame] | 42 | mavenGroup LibraryGroups.LIFECYCLE |
Aurimas Liutikas | bb85fac | 2017-08-24 13:32:28 -0700 | [diff] [blame] | 43 | inceptionYear '2017' |
| 44 | description "Android Lifecycle Runtime" |
Jake Wharton | fc35d14 | 2018-08-04 02:28:31 -0400 | [diff] [blame] | 45 | } |