Chris Craik | 22c3392 | 2019-07-25 12:33:06 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2019 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 | import static androidx.build.dependencies.DependenciesKt.* |
| 18 | import androidx.build.LibraryGroups |
| 19 | import androidx.build.LibraryVersions |
| 20 | import androidx.build.Publish |
| 21 | |
| 22 | plugins { |
| 23 | id("AndroidXPlugin") |
| 24 | id("com.android.library") |
| 25 | id("kotlin-android") |
| 26 | } |
| 27 | |
| 28 | android { |
| 29 | defaultConfig { |
Dustin Lam | 3a125bc | 2019-07-27 19:40:11 -0700 | [diff] [blame] | 30 | testInstrumentationRunner = "androidx.benchmark.junit4.AndroidBenchmarkRunner" |
Chris Craik | 22c3392 | 2019-07-25 12:33:06 -0700 | [diff] [blame] | 31 | } |
| 32 | } |
| 33 | |
| 34 | dependencies { |
| 35 | api(project(":benchmark:benchmark-common")) |
Rahul Ravikumar | 6b603b2 | 2020-03-05 17:18:31 -0800 | [diff] [blame] | 36 | implementation(project(':tracing:tracing-ktx')) |
Chris Craik | 22c3392 | 2019-07-25 12:33:06 -0700 | [diff] [blame] | 37 | |
| 38 | api(JUNIT) |
| 39 | api(KOTLIN_STDLIB) |
| 40 | |
Aurimas Liutikas | 506ab64d | 2020-06-02 14:37:26 -0700 | [diff] [blame] | 41 | implementation("androidx.test:rules:1.2.0") |
| 42 | implementation("androidx.test:runner:1.2.0") |
Dustin Lam | 79d9d24 | 2020-03-30 19:43:53 -0700 | [diff] [blame] | 43 | api("androidx.annotation:annotation:1.1.0") |
Chris Craik | 22c3392 | 2019-07-25 12:33:06 -0700 | [diff] [blame] | 44 | |
| 45 | androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT) |
| 46 | } |
| 47 | |
| 48 | androidx { |
| 49 | name = "Android Benchmark - JUnit4" |
| 50 | publish = Publish.SNAPSHOT_AND_RELEASE |
Chris Craik | 22c3392 | 2019-07-25 12:33:06 -0700 | [diff] [blame] | 51 | mavenGroup = LibraryGroups.BENCHMARK |
| 52 | inceptionYear = "2019" |
| 53 | description = "Android Benchmark - JUnit4" |
| 54 | } |