blob: 5952829970074694b349a6b7e2141974bfe2af43 [file] [log] [blame]
Chris Craik22c33922019-07-25 12:33:06 -07001/*
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
17import static androidx.build.dependencies.DependenciesKt.*
18import androidx.build.LibraryGroups
19import androidx.build.LibraryVersions
20import androidx.build.Publish
21
22plugins {
23 id("AndroidXPlugin")
24 id("com.android.library")
25 id("kotlin-android")
26}
27
28android {
29 defaultConfig {
Dustin Lam3a125bc2019-07-27 19:40:11 -070030 testInstrumentationRunner = "androidx.benchmark.junit4.AndroidBenchmarkRunner"
Chris Craik22c33922019-07-25 12:33:06 -070031 }
32}
33
34dependencies {
35 api(project(":benchmark:benchmark-common"))
Rahul Ravikumar6b603b22020-03-05 17:18:31 -080036 implementation(project(':tracing:tracing-ktx'))
Chris Craik22c33922019-07-25 12:33:06 -070037
38 api(JUNIT)
39 api(KOTLIN_STDLIB)
40
Aurimas Liutikas506ab64d2020-06-02 14:37:26 -070041 implementation("androidx.test:rules:1.2.0")
42 implementation("androidx.test:runner:1.2.0")
Dustin Lam79d9d242020-03-30 19:43:53 -070043 api("androidx.annotation:annotation:1.1.0")
Chris Craik22c33922019-07-25 12:33:06 -070044
45 androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT)
46}
47
48androidx {
49 name = "Android Benchmark - JUnit4"
50 publish = Publish.SNAPSHOT_AND_RELEASE
Chris Craik22c33922019-07-25 12:33:06 -070051 mavenGroup = LibraryGroups.BENCHMARK
52 inceptionYear = "2019"
53 description = "Android Benchmark - JUnit4"
54}