| Rahul Ravikumar | 10a0189 | 2020-01-10 18:23:17 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2020 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | |
| Rahul Ravikumar | 10a0189 | 2020-01-10 18:23:17 -0800 | [diff] [blame] | 18 | import androidx.build.AndroidXExtension |
| Aurimas Liutikas | edd82e7 | 2020-03-30 15:47:41 -0700 | [diff] [blame] | 19 | import androidx.build.LibraryGroups |
| 20 | import androidx.build.Publish |
| Rahul Ravikumar | 10a0189 | 2020-01-10 18:23:17 -0800 | [diff] [blame] | 21 | |
| 22 | import static androidx.build.dependencies.DependenciesKt.* |
| Rahul Ravikumar | 10a0189 | 2020-01-10 18:23:17 -0800 | [diff] [blame] | 23 | |
| 24 | plugins { |
| 25 | id("AndroidXPlugin") |
| 26 | id("com.android.library") |
| 27 | id("kotlin-android") |
| 28 | } |
| 29 | |
| 30 | android { |
| Rahul Ravikumar | 9a82f9c | 2020-06-23 09:31:45 -0700 | [diff] [blame] | 31 | buildTypes.all { |
| Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame^] | 32 | consumerProguardFiles "proguard-rules.pro" |
| Rahul Ravikumar | 9a82f9c | 2020-06-23 09:31:45 -0700 | [diff] [blame] | 33 | } |
| Rahul Ravikumar | 6f8706e | 2020-03-24 14:21:04 -0700 | [diff] [blame] | 34 | compileOptions { |
| 35 | sourceCompatibility = JavaVersion.VERSION_1_7 |
| 36 | targetCompatibility = JavaVersion.VERSION_1_7 |
| 37 | } |
| Rahul Ravikumar | 10a0189 | 2020-01-10 18:23:17 -0800 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | dependencies { |
| Rahul Ravikumar | 10a0189 | 2020-01-10 18:23:17 -0800 | [diff] [blame] | 41 | implementation("androidx.annotation:annotation:1.1.0") |
| Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame^] | 42 | implementation("androidx.tracing:tracing:1.0.0") |
| 43 | lintPublish(project(":startup:startup-runtime-lint")) |
| Rahul Ravikumar | ec8db13 | 2020-01-22 14:36:16 -0800 | [diff] [blame] | 44 | androidTestImplementation(KOTLIN_STDLIB) |
| Rahul Ravikumar | 10a0189 | 2020-01-10 18:23:17 -0800 | [diff] [blame] | 45 | androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT) |
| 46 | androidTestImplementation(ANDROIDX_TEST_CORE) |
| 47 | androidTestImplementation(ANDROIDX_TEST_RUNNER) |
| 48 | androidTestImplementation(ESPRESSO_CORE) |
| 49 | androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy) // DexMaker has its own MockMaker |
| 50 | androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy) // DexMaker has its own MockMaker |
| 51 | testImplementation(JUNIT) |
| 52 | } |
| 53 | |
| 54 | androidx { |
| 55 | name = "Android App Startup Runtime" |
| Rahul Ravikumar | 5a1d319f | 2020-01-23 11:01:19 -0800 | [diff] [blame] | 56 | publish = Publish.SNAPSHOT_AND_RELEASE |
| Rahul Ravikumar | 10a0189 | 2020-01-10 18:23:17 -0800 | [diff] [blame] | 57 | mavenGroup = LibraryGroups.STARTUP |
| 58 | inceptionYear = "2020" |
| 59 | description = "Android App Startup Runtime" |
| Rahul Ravikumar | 10a0189 | 2020-01-10 18:23:17 -0800 | [diff] [blame] | 60 | } |