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 { |
Sergey Vasilinets | 1a06787 | 2017-06-21 16:27:47 -0700 | [diff] [blame] | 13 | buildTypes.all { |
| 14 | consumerProguardFiles 'proguard-rules.pro' |
| 15 | } |
Jake Wharton | fc35d14 | 2018-08-04 02:28:31 -0400 | [diff] [blame] | 16 | |
| 17 | lintOptions { |
| 18 | fatal("UnknownNullness") |
| 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")) |
| 24 | api(project(":arch:core-common")) |
Sergey Vasilinets | e69e470 | 2017-02-10 02:26:10 -0800 | [diff] [blame] | 25 | // necessary for IJ to resolve dependencies. |
Nick Anthony | f7cef0b | 2019-05-09 16:51:52 -0400 | [diff] [blame] | 26 | api("androidx.annotation:annotation:1.1.0-rc01") |
Yigit Boyar | 21886b6 | 2016-12-12 16:59:30 -0800 | [diff] [blame] | 27 | |
Aurimas Liutikas | f4ec12f | 2017-11-22 12:55:43 -0800 | [diff] [blame] | 28 | testImplementation(JUNIT) |
| 29 | testImplementation(MOCKITO_CORE) |
Yigit Boyar | 54850ab | 2017-10-09 11:31:24 -0700 | [diff] [blame] | 30 | |
Aurimas Liutikas | f4ec12f | 2017-11-22 12:55:43 -0800 | [diff] [blame] | 31 | androidTestImplementation(JUNIT) |
Dustin Lam | 3979d96 | 2019-04-08 10:40:19 -0700 | [diff] [blame] | 32 | androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT) |
| 33 | androidTestImplementation(ANDROIDX_TEST_CORE) |
| 34 | androidTestImplementation(ANDROIDX_TEST_RUNNER) |
Yigit Boyar | b96cceaa | 2016-10-31 17:51:15 -0700 | [diff] [blame] | 35 | } |
Yigit Boyar | 19b4110 | 2016-11-20 10:46:32 -0800 | [diff] [blame] | 36 | |
Aurimas Liutikas | 2ad3161 | 2019-04-01 04:23:03 -0700 | [diff] [blame] | 37 | androidx { |
Aurimas Liutikas | bb85fac | 2017-08-24 13:32:28 -0700 | [diff] [blame] | 38 | name 'Android Lifecycle Runtime' |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 39 | publish = Publish.SNAPSHOT_AND_RELEASE |
Sergey Vasilinets | 071d611 | 2018-10-04 19:32:59 +0100 | [diff] [blame] | 40 | mavenVersion = LibraryVersions.LIFECYCLE |
Aurimas Liutikas | 7f40a7e | 2017-10-27 17:55:06 -0700 | [diff] [blame] | 41 | mavenGroup LibraryGroups.LIFECYCLE |
Aurimas Liutikas | bb85fac | 2017-08-24 13:32:28 -0700 | [diff] [blame] | 42 | inceptionYear '2017' |
| 43 | description "Android Lifecycle Runtime" |
Aurimas Liutikas | b63ef63 | 2019-04-01 04:37:49 -0700 | [diff] [blame] | 44 | url AndroidXExtension.ARCHITECTURE_URL |
Aurimas Liutikas | bfef093 | 2018-04-04 13:25:38 -0700 | [diff] [blame] | 45 | failOnDeprecationWarnings = false |
Jake Wharton | fc35d14 | 2018-08-04 02:28:31 -0400 | [diff] [blame] | 46 | } |