Sergey Vasilinets | d724640 | 2018-11-20 14:06:33 +0000 | [diff] [blame] | 1 | import static androidx.build.dependencies.DependenciesKt.* |
| 2 | import androidx.build.LibraryGroups |
| 3 | import androidx.build.LibraryVersions |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 4 | import androidx.build.Publish |
Sergey Vasilinets | d724640 | 2018-11-20 14:06:33 +0000 | [diff] [blame] | 5 | |
| 6 | plugins { |
Aurimas Liutikas | cdb9f9f | 2019-04-08 12:07:49 +0100 | [diff] [blame] | 7 | id("AndroidXPlugin") |
| 8 | id("com.android.library") |
Sergey Vasilinets | d724640 | 2018-11-20 14:06:33 +0000 | [diff] [blame] | 9 | id("kotlin-android") |
| 10 | } |
| 11 | |
| 12 | android { |
Aurimas Liutikas | f99c45d | 2019-06-03 14:41:56 -0700 | [diff] [blame] | 13 | compileOptions { |
| 14 | sourceCompatibility = JavaVersion.VERSION_1_7 |
| 15 | targetCompatibility = JavaVersion.VERSION_1_7 |
| 16 | } |
Sergey Vasilinets | 82ddb41 | 2019-01-31 15:53:28 -0800 | [diff] [blame] | 17 | buildTypes.all { |
| 18 | consumerProguardFiles("proguard-rules.pro") |
| 19 | } |
Sergey Vasilinets | d724640 | 2018-11-20 14:06:33 +0000 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | dependencies { |
Louis Pullen-Freilich | 32a7dec | 2019-06-13 15:33:01 +0100 | [diff] [blame] | 23 | api("androidx.annotation:annotation:1.1.0") |
Ian Lake | 005a920 | 2019-09-26 16:17:25 -0700 | [diff] [blame] | 24 | implementation("androidx.arch.core:core-common:2.0.1") |
| 25 | implementation("androidx.lifecycle:lifecycle-common:2.0.0") |
Aurimas Liutikas | 827a1f2 | 2019-07-12 16:29:28 -0700 | [diff] [blame] | 26 | |
Sergey Vasilinets | d724640 | 2018-11-20 14:06:33 +0000 | [diff] [blame] | 27 | androidTestImplementation(KOTLIN_STDLIB) |
Ian Lake | 005a920 | 2019-09-26 16:17:25 -0700 | [diff] [blame] | 28 | androidTestImplementation("androidx.lifecycle:lifecycle-runtime:2.0.0") |
Dustin Lam | 3979d96 | 2019-04-08 10:40:19 -0700 | [diff] [blame] | 29 | androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT) |
| 30 | androidTestImplementation(ANDROIDX_TEST_CORE) |
| 31 | androidTestImplementation(ANDROIDX_TEST_RUNNER) |
| 32 | androidTestImplementation(ANDROIDX_TEST_RULES) |
Sergey Vasilinets | d724640 | 2018-11-20 14:06:33 +0000 | [diff] [blame] | 33 | androidTestImplementation(TRUTH) |
| 34 | } |
| 35 | |
Aurimas Liutikas | 2ad3161 | 2019-04-01 04:23:03 -0700 | [diff] [blame] | 36 | androidx { |
Sergey Vasilinets | d724640 | 2018-11-20 14:06:33 +0000 | [diff] [blame] | 37 | name = "Activity" |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 38 | publish = Publish.SNAPSHOT_AND_RELEASE |
Sergey Vasilinets | d724640 | 2018-11-20 14:06:33 +0000 | [diff] [blame] | 39 | mavenVersion = LibraryVersions.SAVEDSTATE |
| 40 | mavenGroup = LibraryGroups.SAVEDSTATE |
| 41 | inceptionYear = "2018" |
| 42 | description = "Provides the base Activity subclass and the relevant hooks to build a composable structure on top." |
| 43 | } |