Alan Viverette | a75e3d6 | 2021-06-23 17:38:25 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2018 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 | */ |
Alan Viverette | a75e3d6 | 2021-06-23 17:38:25 -0400 | [diff] [blame] | 24 | import androidx.build.Publish |
| 25 | |
| 26 | plugins { |
| 27 | id("AndroidXPlugin") |
| 28 | id("com.android.library") |
| 29 | id("androidx.benchmark") |
| 30 | } |
| 31 | |
| 32 | dependencies { |
Aurimas Liutikas | d02fb06 | 2023-11-10 17:18:40 -0800 | [diff] [blame] | 33 | androidTestImplementation("androidx.core:core:1.3.0") |
Alan Viverette | a75e3d6 | 2021-06-23 17:38:25 -0400 | [diff] [blame] | 34 | androidTestImplementation(project(":slice:slice-view")) |
| 35 | androidTestImplementation(project(":slice:slice-core")) |
| 36 | androidTestImplementation(project(":slice:slice-builders")) |
| 37 | androidTestImplementation(project(":benchmark:benchmark-junit4")) |
| 38 | androidTestImplementation(libs.junit) |
| 39 | androidTestImplementation(libs.testExtJunit) |
| 40 | androidTestImplementation(libs.testCore) |
| 41 | androidTestImplementation(libs.testRunner) |
| 42 | androidTestImplementation(libs.testRules) |
| 43 | androidTestImplementation(libs.espressoCore, excludes.espresso) |
| 44 | androidTestImplementation(libs.mockitoCore, excludes.bytebuddy) |
| 45 | androidTestImplementation(libs.dexmakerMockito, excludes.bytebuddy) |
Aurimas Liutikas | 4c1dac8 | 2022-08-26 23:25:50 +0000 | [diff] [blame] | 46 | androidTestImplementation(libs.multidex) |
Alan Viverette | a75e3d6 | 2021-06-23 17:38:25 -0400 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | androidx { |
Alan Viverette | c9e1fd7 | 2023-05-08 17:36:59 -0400 | [diff] [blame] | 50 | name = "Slice Benchmarks" |
Alan Viverette | 08681cf | 2023-03-08 14:47:53 -0500 | [diff] [blame] | 51 | publish = Publish.NONE // Library is deprecated pending removal. |
Alan Viverette | a75e3d6 | 2021-06-23 17:38:25 -0400 | [diff] [blame] | 52 | mavenVersion = LibraryVersions.SLICE_BENCHMARK |
Alan Viverette | a75e3d6 | 2021-06-23 17:38:25 -0400 | [diff] [blame] | 53 | inceptionYear = "2018" |
| 54 | description = "RecyclerView Benchmarks" |
Marcello Albano | d80729f | 2023-05-02 15:13:17 -0700 | [diff] [blame] | 55 | |
| 56 | deviceTests { |
| 57 | // Pending removal, don't run tests. |
| 58 | enabled = false |
| 59 | } |
Alan Viverette | a75e3d6 | 2021-06-23 17:38:25 -0400 | [diff] [blame] | 60 | } |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 61 | |
| 62 | android { |
| 63 | namespace "androidx.slice.benchmark" |
Aurimas Liutikas | 4c1dac8 | 2022-08-26 23:25:50 +0000 | [diff] [blame] | 64 | defaultConfig { |
| 65 | multiDexEnabled = true |
| 66 | } |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 67 | } |