blob: d4f976665a41314b7fe0f6e3b9f47b4359653916 [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
Aurimas Liutikasedd82e72020-03-30 15:47:41 -070017import androidx.build.Publish
Rahul Ravikumar10a01892020-01-10 18:23:17 -080018
Rahul Ravikumar10a01892020-01-10 18:23:17 -080019plugins {
20 id("AndroidXPlugin")
21 id("com.android.library")
22 id("kotlin-android")
23}
24
25android {
Rahul Ravikumar9a82f9c2020-06-23 09:31:45 -070026 buildTypes.all {
Jim Sproch9e38b4f2021-01-06 14:21:06 -080027 consumerProguardFiles "proguard-rules.pro"
Rahul Ravikumardceec642021-06-22 18:47:58 -070028 multiDexKeepProguard file("multidex-rules.pro")
Rahul Ravikumar9a82f9c2020-06-23 09:31:45 -070029 }
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070030 namespace "androidx.startup"
Rahul Ravikumar10a01892020-01-10 18:23:17 -080031}
32
33dependencies {
Chris Craik84ff6532023-01-27 15:11:33 -080034 // Ideally startup would depend on profileinstaller so startup gets the benefit of its
35 // baseline profile rules, but profileinstaller calls startup APIs, so we have to avoid
36 // the circular dependency
37
Rahul Ravikumar10a01892020-01-10 18:23:17 -080038 implementation("androidx.annotation:annotation:1.1.0")
Jim Sproch9e38b4f2021-01-06 14:21:06 -080039 implementation("androidx.tracing:tracing:1.0.0")
40 lintPublish(project(":startup:startup-runtime-lint"))
Aurimas Liutikas00442962021-06-01 17:18:09 -070041 androidTestImplementation(libs.kotlinStdlib)
42 androidTestImplementation(libs.testExtJunit)
43 androidTestImplementation(libs.testCore)
44 androidTestImplementation(libs.testRunner)
45 androidTestImplementation(libs.espressoCore)
46 androidTestImplementation(libs.mockitoCore, excludes.bytebuddy) // DexMaker has its own MockMaker
47 androidTestImplementation(libs.dexmakerMockito, excludes.bytebuddy) // DexMaker has its own MockMaker
48 testImplementation(libs.junit)
Rahul Ravikumar10a01892020-01-10 18:23:17 -080049}
50
51androidx {
Alan Viverettec9e1fd72023-05-08 17:36:59 -040052 name = "Startup Runtime"
Rahul Ravikumar5a1d319f2020-01-23 11:01:19 -080053 publish = Publish.SNAPSHOT_AND_RELEASE
Rahul Ravikumar10a01892020-01-10 18:23:17 -080054 inceptionYear = "2020"
55 description = "Android App Startup Runtime"
Rahul Ravikumar10a01892020-01-10 18:23:17 -080056}