[go: nahoru, domu]

blob: ae764d9a728d0ae4610835e27f6175a4d4280021 [file] [log] [blame]
Aurimas Liutikas526389b2018-02-27 14:01:24 -08001import static androidx.build.dependencies.DependenciesKt.*
2import androidx.build.LibraryGroups
3import androidx.build.LibraryVersions
Aurimas Liutikasb63ef632019-04-01 04:37:49 -07004import androidx.build.AndroidXExtension
Aurimas Liutikas75e93a02019-05-28 16:31:38 -07005import androidx.build.Publish
Aurimas Liutikasbb85fac2017-08-24 13:32:28 -07006
Aurimas Liutikasf8b708a2017-11-02 16:07:13 -07007plugins {
Aurimas Liutikascdb9f9f2019-04-08 12:07:49 +01008 id("AndroidXPlugin")
9 id("com.android.library")
Aurimas Liutikasf8b708a2017-11-02 16:07:13 -070010}
Yigit Boyarb96cceaa2016-10-31 17:51:15 -070011
12android {
Aurimas Liutikase42958e2019-06-26 17:07:59 -070013 compileOptions {
14 sourceCompatibility = JavaVersion.VERSION_1_7
15 targetCompatibility = JavaVersion.VERSION_1_7
16 }
Sergey Vasilinets1a067872017-06-21 16:27:47 -070017 buildTypes.all {
18 consumerProguardFiles 'proguard-rules.pro'
19 }
Yigit Boyarb96cceaa2016-10-31 17:51:15 -070020}
21
22dependencies {
Alan Viverettebdc4c862018-03-08 18:02:39 -050023 api(project(":lifecycle:lifecycle-common"))
Ian Lake391dc4b2019-09-07 17:51:23 -070024 api("androidx.arch.core:core-common:2.1.0")
Sergey Vasilinetse69e4702017-02-10 02:26:10 -080025 // necessary for IJ to resolve dependencies.
Nick Anthonyac4cf062019-06-04 10:59:29 -040026 api("androidx.annotation:annotation:1.1.0")
Sergey Vasilinetsa9a8ffd2020-07-12 16:25:37 +010027 implementation("androidx.arch.core:core-runtime:2.1.0")
Yigit Boyar21886b62016-12-12 16:59:30 -080028
Aurimas Liutikasf4ec12f2017-11-22 12:55:43 -080029 testImplementation(JUNIT)
30 testImplementation(MOCKITO_CORE)
Yigit Boyar54850ab2017-10-09 11:31:24 -070031
Aurimas Liutikasf4ec12f2017-11-22 12:55:43 -080032 androidTestImplementation(JUNIT)
Dustin Lam3979d962019-04-08 10:40:19 -070033 androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT)
34 androidTestImplementation(ANDROIDX_TEST_CORE)
35 androidTestImplementation(ANDROIDX_TEST_RUNNER)
Yigit Boyarb96cceaa2016-10-31 17:51:15 -070036}
Yigit Boyar19b41102016-11-20 10:46:32 -080037
Aurimas Liutikas2ad31612019-04-01 04:23:03 -070038androidx {
Aurimas Liutikasbb85fac2017-08-24 13:32:28 -070039 name 'Android Lifecycle Runtime'
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070040 publish = Publish.SNAPSHOT_AND_RELEASE
Sergey Vasilinets071d6112018-10-04 19:32:59 +010041 mavenVersion = LibraryVersions.LIFECYCLE
Aurimas Liutikas7f40a7e2017-10-27 17:55:06 -070042 mavenGroup LibraryGroups.LIFECYCLE
Aurimas Liutikasbb85fac2017-08-24 13:32:28 -070043 inceptionYear '2017'
44 description "Android Lifecycle Runtime"
Jake Whartonfc35d142018-08-04 02:28:31 -040045}