blob: 0e64ea38e8852fb65714509a192148d3d66f273c [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
Tiem Songee0da742024-01-03 14:08:46 -080017/**
18 * This file was created using the `create_project.py` script located in the
19 * `<AndroidX root>/development/project-creator` directory.
20 *
21 * Please use that script when creating a new project, rather than copying an existing project and
22 * modifying its settings.
23 */
Chris Craikfbfc7212021-01-27 11:54:18 -080024import androidx.build.Publish
Rahul Ravikumar6da9b7f272021-10-20 13:52:42 -070025import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
Chris Craikfbfc7212021-01-27 11:54:18 -080026
27plugins {
28 id("AndroidXPlugin")
29 id("com.android.library")
30 id("kotlin-android")
31}
32
33android {
34 defaultConfig {
Rahul Ravikumara1d7e3f2021-10-18 13:49:40 -070035 minSdkVersion 23
Chris Craikfbfc7212021-01-27 11:54:18 -080036 multiDexEnabled true
37 }
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070038 namespace "androidx.benchmark.macro.junit4"
Chris Craikfbfc7212021-01-27 11:54:18 -080039}
40
41dependencies {
Aurimas Liutikas2c1a81e2021-05-24 16:43:05 -070042 api(libs.junit)
43 api(libs.kotlinStdlib)
Chris Craikfbfc7212021-01-27 11:54:18 -080044 api("androidx.annotation:annotation:1.1.0")
45 api(project(":benchmark:benchmark-macro"))
Rahul Ravikumar8c943b82023-09-12 14:42:57 -070046 api("androidx.test.uiautomator:uiautomator:2.3.0-alpha04")
Chris Craikfbfc7212021-01-27 11:54:18 -080047 implementation(project(":benchmark:benchmark-common"))
Chris Craik4a801eb2023-03-27 12:28:16 -070048 implementation("androidx.test:rules:1.5.0")
Rahul Ravikumar8c943b82023-09-12 14:42:57 -070049 implementation("androidx.test:runner:1.5.2")
Chris Craikfbfc7212021-01-27 11:54:18 -080050
51 androidTestImplementation(project(":internal-testutils-ktx"))
Aurimas Liutikas2c1a81e2021-05-24 16:43:05 -070052 androidTestImplementation(libs.testExtJunit)
53 androidTestImplementation(libs.testCore)
54 androidTestImplementation(libs.testRunner)
55 androidTestImplementation(libs.espressoCore)
56 androidTestImplementation(libs.mockitoCore, excludes.bytebuddy)
Chris Craikfbfc7212021-01-27 11:54:18 -080057 // DexMaker has it"s own MockMaker
Aurimas Liutikas2c1a81e2021-05-24 16:43:05 -070058 androidTestImplementation(libs.dexmakerMockito, excludes.bytebuddy)
Chris Craikfbfc7212021-01-27 11:54:18 -080059 // DexMaker has it"s own MockMaker
60}
61
62androidx {
Alan Viverettec9e1fd72023-05-08 17:36:59 -040063 name = "Benchmark - Macrobenchmark JUnit4"
Chris Craik7a104212021-03-30 16:18:52 -070064 publish = Publish.SNAPSHOT_AND_RELEASE
Chris Craikfbfc7212021-01-27 11:54:18 -080065 inceptionYear = "2020"
66 description = "Android Benchmark - Macrobenchmark JUnit4"
Jinseong Jeon999075e2023-08-22 00:40:11 -070067 metalavaK2UastEnabled = true
Chris Craikfbfc7212021-01-27 11:54:18 -080068}