blob: 75c382591488dd609228819b6c33b34fce9d6b42 [file] [log] [blame]
Rahul Ravikumar10a01892020-01-10 18:23:17 -08001/*
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 Ravikumar10a01892020-01-10 18:23:17 -080018import androidx.build.AndroidXExtension
Aurimas Liutikasedd82e72020-03-30 15:47:41 -070019import androidx.build.LibraryGroups
20import androidx.build.Publish
Rahul Ravikumar10a01892020-01-10 18:23:17 -080021
22import static androidx.build.dependencies.DependenciesKt.*
Rahul Ravikumar10a01892020-01-10 18:23:17 -080023
24plugins {
25 id("AndroidXPlugin")
26 id("com.android.library")
27 id("kotlin-android")
28}
29
30android {
Rahul Ravikumar9a82f9c2020-06-23 09:31:45 -070031 buildTypes.all {
Jim Sproch9e38b4f2021-01-06 14:21:06 -080032 consumerProguardFiles "proguard-rules.pro"
Rahul Ravikumar9a82f9c2020-06-23 09:31:45 -070033 }
Rahul Ravikumar6f8706e2020-03-24 14:21:04 -070034 compileOptions {
35 sourceCompatibility = JavaVersion.VERSION_1_7
36 targetCompatibility = JavaVersion.VERSION_1_7
37 }
Rahul Ravikumar10a01892020-01-10 18:23:17 -080038}
39
40dependencies {
Rahul Ravikumar10a01892020-01-10 18:23:17 -080041 implementation("androidx.annotation:annotation:1.1.0")
Jim Sproch9e38b4f2021-01-06 14:21:06 -080042 implementation("androidx.tracing:tracing:1.0.0")
43 lintPublish(project(":startup:startup-runtime-lint"))
Rahul Ravikumarec8db132020-01-22 14:36:16 -080044 androidTestImplementation(KOTLIN_STDLIB)
Rahul Ravikumar10a01892020-01-10 18:23:17 -080045 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
54androidx {
55 name = "Android App Startup Runtime"
Rahul Ravikumar5a1d319f2020-01-23 11:01:19 -080056 publish = Publish.SNAPSHOT_AND_RELEASE
Rahul Ravikumar10a01892020-01-10 18:23:17 -080057 mavenGroup = LibraryGroups.STARTUP
58 inceptionYear = "2020"
59 description = "Android App Startup Runtime"
Rahul Ravikumar10a01892020-01-10 18:23:17 -080060}