blob: 5c33119523db3adb88c752d52f2db03ab527f80b [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"))
42 implementation(ANDROIDX_TEST_EXT_JUNIT)
43 implementation(ANDROIDX_TEST_UIAUTOMATOR)
44
45 androidTestImplementation(project(":internal-testutils-ktx"))
46 androidTestImplementation(project(":tracing:tracing-ktx"))
47 androidTestImplementation("androidx.test:rules:1.3.0")
48 androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT)
49 androidTestImplementation(ANDROIDX_TEST_CORE)
50 androidTestImplementation(ANDROIDX_TEST_RUNNER)
51 androidTestImplementation(ESPRESSO_CORE)
52 androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy)
53 // DexMaker has it"s own MockMaker
54 androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy)
55 // DexMaker has it"s own MockMaker
56}
57
58androidx {
59 name = "Android Benchmark - Macrobenchmark JUnit4"
60 publish = Publish.SNAPSHOT_ONLY
61 mavenGroup = LibraryGroups.BENCHMARK
62 inceptionYear = "2020"
63 description = "Android Benchmark - Macrobenchmark JUnit4"
64}