blob: 4ee565e01cb726bfb4800de948547484a3c3a44a [file] [log] [blame]
Chris Craikfbfc7212021-01-27 11:54:18 -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
17import static androidx.build.dependencies.DependenciesKt.*
18import androidx.build.LibraryGroups
19import androidx.build.Publish
20
21plugins {
22 id("AndroidXPlugin")
23 id("com.android.library")
24 id("kotlin-android")
25}
26
27android {
28 defaultConfig {
29 // 18 needed for UI automator. While 28 is a theoretical minimum for Perfetto, we
30 // currently leave this lower currently to enable optional usage.
31 minSdkVersion 18
32 multiDexEnabled true
33 }
34}
35
36dependencies {
37 api(JUNIT)
38 api(KOTLIN_STDLIB)
39 api("androidx.annotation:annotation:1.1.0")
40 api(project(":benchmark:benchmark-macro"))
41 implementation(project(":benchmark:benchmark-common"))
Chris Craikca61f762021-02-24 15:30:48 -080042 implementation("androidx.test:rules:1.3.0")
43 implementation("androidx.test:runner:1.3.0")
44 implementation("androidx.test.uiautomator:uiautomator:2.2.0")
Chris Craikfbfc7212021-01-27 11:54:18 -080045
46 androidTestImplementation(project(":internal-testutils-ktx"))
47 androidTestImplementation(project(":tracing:tracing-ktx"))
48 androidTestImplementation("androidx.test:rules:1.3.0")
49 androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT)
50 androidTestImplementation(ANDROIDX_TEST_CORE)
51 androidTestImplementation(ANDROIDX_TEST_RUNNER)
52 androidTestImplementation(ESPRESSO_CORE)
53 androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy)
54 // DexMaker has it"s own MockMaker
55 androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy)
56 // DexMaker has it"s own MockMaker
57}
58
59androidx {
60 name = "Android Benchmark - Macrobenchmark JUnit4"
Chris Craik7a104212021-03-30 16:18:52 -070061 publish = Publish.SNAPSHOT_AND_RELEASE
Chris Craikfbfc7212021-01-27 11:54:18 -080062 mavenGroup = LibraryGroups.BENCHMARK
63 inceptionYear = "2020"
64 description = "Android Benchmark - Macrobenchmark JUnit4"
65}