Chris Craik | fbfc721 | 2021-01-27 11:54:18 -0800 | [diff] [blame] | 1 | /* |
| 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 Song | ee0da74 | 2024-01-03 14:08:46 -0800 | [diff] [blame] | 17 | /** |
| 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 Craik | fbfc721 | 2021-01-27 11:54:18 -0800 | [diff] [blame] | 24 | import androidx.build.Publish |
Rahul Ravikumar | 6da9b7f27 | 2021-10-20 13:52:42 -0700 | [diff] [blame] | 25 | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
Chris Craik | fbfc721 | 2021-01-27 11:54:18 -0800 | [diff] [blame] | 26 | |
| 27 | plugins { |
| 28 | id("AndroidXPlugin") |
| 29 | id("com.android.library") |
| 30 | id("kotlin-android") |
| 31 | } |
| 32 | |
| 33 | android { |
| 34 | defaultConfig { |
Rahul Ravikumar | a1d7e3f | 2021-10-18 13:49:40 -0700 | [diff] [blame] | 35 | minSdkVersion 23 |
Chris Craik | fbfc721 | 2021-01-27 11:54:18 -0800 | [diff] [blame] | 36 | multiDexEnabled true |
| 37 | } |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 38 | namespace "androidx.benchmark.macro.junit4" |
Chris Craik | fbfc721 | 2021-01-27 11:54:18 -0800 | [diff] [blame] | 39 | } |
| 40 | |
| 41 | dependencies { |
Aurimas Liutikas | 2c1a81e | 2021-05-24 16:43:05 -0700 | [diff] [blame] | 42 | api(libs.junit) |
| 43 | api(libs.kotlinStdlib) |
Chris Craik | fbfc721 | 2021-01-27 11:54:18 -0800 | [diff] [blame] | 44 | api("androidx.annotation:annotation:1.1.0") |
| 45 | api(project(":benchmark:benchmark-macro")) |
Rahul Ravikumar | 8c943b8 | 2023-09-12 14:42:57 -0700 | [diff] [blame] | 46 | api("androidx.test.uiautomator:uiautomator:2.3.0-alpha04") |
Chris Craik | fbfc721 | 2021-01-27 11:54:18 -0800 | [diff] [blame] | 47 | implementation(project(":benchmark:benchmark-common")) |
Chris Craik | 4a801eb | 2023-03-27 12:28:16 -0700 | [diff] [blame] | 48 | implementation("androidx.test:rules:1.5.0") |
Rahul Ravikumar | 8c943b8 | 2023-09-12 14:42:57 -0700 | [diff] [blame] | 49 | implementation("androidx.test:runner:1.5.2") |
Chris Craik | fbfc721 | 2021-01-27 11:54:18 -0800 | [diff] [blame] | 50 | |
| 51 | androidTestImplementation(project(":internal-testutils-ktx")) |
Aurimas Liutikas | 2c1a81e | 2021-05-24 16:43:05 -0700 | [diff] [blame] | 52 | androidTestImplementation(libs.testExtJunit) |
| 53 | androidTestImplementation(libs.testCore) |
| 54 | androidTestImplementation(libs.testRunner) |
| 55 | androidTestImplementation(libs.espressoCore) |
| 56 | androidTestImplementation(libs.mockitoCore, excludes.bytebuddy) |
Chris Craik | fbfc721 | 2021-01-27 11:54:18 -0800 | [diff] [blame] | 57 | // DexMaker has it"s own MockMaker |
Aurimas Liutikas | 2c1a81e | 2021-05-24 16:43:05 -0700 | [diff] [blame] | 58 | androidTestImplementation(libs.dexmakerMockito, excludes.bytebuddy) |
Chris Craik | fbfc721 | 2021-01-27 11:54:18 -0800 | [diff] [blame] | 59 | // DexMaker has it"s own MockMaker |
| 60 | } |
| 61 | |
| 62 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 63 | name = "Benchmark - Macrobenchmark JUnit4" |
Chris Craik | 7a10421 | 2021-03-30 16:18:52 -0700 | [diff] [blame] | 64 | publish = Publish.SNAPSHOT_AND_RELEASE |
Chris Craik | fbfc721 | 2021-01-27 11:54:18 -0800 | [diff] [blame] | 65 | inceptionYear = "2020" |
| 66 | description = "Android Benchmark - Macrobenchmark JUnit4" |
Jinseong Jeon | 999075e | 2023-08-22 00:40:11 -0700 | [diff] [blame] | 67 | metalavaK2UastEnabled = true |
Chris Craik | fbfc721 | 2021-01-27 11:54:18 -0800 | [diff] [blame] | 68 | } |