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 | |
Chris Craik | 22c3392 | 2019-07-25 12:33:06 -0700 | [diff] [blame] | 17 | import androidx.build.Publish |
| 18 | |
| 19 | plugins { |
| 20 | id("AndroidXPlugin") |
| 21 | id("com.android.library") |
| 22 | id("kotlin-android") |
| 23 | } |
| 24 | |
| 25 | android { |
| 26 | defaultConfig { |
Dustin Lam | 3a125bc | 2019-07-27 19:40:11 -0700 | [diff] [blame] | 27 | testInstrumentationRunner = "androidx.benchmark.junit4.AndroidBenchmarkRunner" |
Chris Craik | 22c3392 | 2019-07-25 12:33:06 -0700 | [diff] [blame] | 28 | } |
| 29 | } |
| 30 | |
| 31 | dependencies { |
| 32 | api(project(":benchmark:benchmark-common")) |
Chris Craik | 22c3392 | 2019-07-25 12:33:06 -0700 | [diff] [blame] | 33 | |
Aurimas Liutikas | 2c1a81e | 2021-05-24 16:43:05 -0700 | [diff] [blame] | 34 | api(libs.junit) |
| 35 | api(libs.kotlinStdlib) |
Chris Craik | 22c3392 | 2019-07-25 12:33:06 -0700 | [diff] [blame] | 36 | |
Rahul Ravikumar | a1d7e3f | 2021-10-18 13:49:40 -0700 | [diff] [blame] | 37 | implementation("androidx.test:rules:1.4.0") |
| 38 | implementation("androidx.test:runner:1.4.0") |
Chris Craik | f75110b | 2020-11-06 08:15:24 -0800 | [diff] [blame] | 39 | implementation("androidx.tracing:tracing-ktx:1.0.0") |
Dustin Lam | 79d9d24 | 2020-03-30 19:43:53 -0700 | [diff] [blame] | 40 | api("androidx.annotation:annotation:1.1.0") |
Chris Craik | 22c3392 | 2019-07-25 12:33:06 -0700 | [diff] [blame] | 41 | |
Chris Craik | f5d35eb | 2021-08-11 17:35:21 -0700 | [diff] [blame] | 42 | androidTestImplementation(project(":internal-testutils-ktx")) |
Jeremy Woods | fa78895 | 2021-07-29 16:12:29 -0700 | [diff] [blame] | 43 | androidTestImplementation(libs.testCore) |
Aurimas Liutikas | 2c1a81e | 2021-05-24 16:43:05 -0700 | [diff] [blame] | 44 | androidTestImplementation(libs.testExtJunit) |
Chris Craik | 22c3392 | 2019-07-25 12:33:06 -0700 | [diff] [blame] | 45 | } |
| 46 | |
| 47 | androidx { |
| 48 | name = "Android Benchmark - JUnit4" |
| 49 | publish = Publish.SNAPSHOT_AND_RELEASE |
Chris Craik | 22c3392 | 2019-07-25 12:33:06 -0700 | [diff] [blame] | 50 | mavenGroup = LibraryGroups.BENCHMARK |
| 51 | inceptionYear = "2019" |
| 52 | description = "Android Benchmark - JUnit4" |
| 53 | } |