| 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 | |
| Aurimas Liutikas | edd82e7 | 2020-03-30 15:47:41 -0700 | [diff] [blame] | 17 | import androidx.build.Publish |
| Rahul Ravikumar | 10a0189 | 2020-01-10 18:23:17 -0800 | [diff] [blame] | 18 | |
| Rahul Ravikumar | 10a0189 | 2020-01-10 18:23:17 -0800 | [diff] [blame] | 19 | plugins { |
| 20 | id("AndroidXPlugin") |
| 21 | id("com.android.library") |
| 22 | id("kotlin-android") |
| 23 | } |
| 24 | |
| 25 | android { |
| Rahul Ravikumar | 9a82f9c | 2020-06-23 09:31:45 -0700 | [diff] [blame] | 26 | buildTypes.all { |
| Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 27 | consumerProguardFiles "proguard-rules.pro" |
| Rahul Ravikumar | dceec64 | 2021-06-22 18:47:58 -0700 | [diff] [blame] | 28 | multiDexKeepProguard file("multidex-rules.pro") |
| Rahul Ravikumar | 9a82f9c | 2020-06-23 09:31:45 -0700 | [diff] [blame] | 29 | } |
| Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 30 | namespace "androidx.startup" |
| Rahul Ravikumar | 10a0189 | 2020-01-10 18:23:17 -0800 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | dependencies { |
| Chris Craik | 84ff653 | 2023-01-27 15:11:33 -0800 | [diff] [blame] | 34 | // 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 Ravikumar | 10a0189 | 2020-01-10 18:23:17 -0800 | [diff] [blame] | 38 | implementation("androidx.annotation:annotation:1.1.0") |
| Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 39 | implementation("androidx.tracing:tracing:1.0.0") |
| 40 | lintPublish(project(":startup:startup-runtime-lint")) |
| Aurimas Liutikas | 0044296 | 2021-06-01 17:18:09 -0700 | [diff] [blame] | 41 | 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 Ravikumar | 10a0189 | 2020-01-10 18:23:17 -0800 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | androidx { |
| Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 52 | name = "Startup Runtime" |
| Rahul Ravikumar | 5a1d319f | 2020-01-23 11:01:19 -0800 | [diff] [blame] | 53 | publish = Publish.SNAPSHOT_AND_RELEASE |
| Rahul Ravikumar | 10a0189 | 2020-01-10 18:23:17 -0800 | [diff] [blame] | 54 | inceptionYear = "2020" |
| 55 | description = "Android App Startup Runtime" |
| Rahul Ravikumar | 10a0189 | 2020-01-10 18:23:17 -0800 | [diff] [blame] | 56 | } |