blob: 2cb25fedacff77084ac0180f93d3bbeb2105142c [file] [log] [blame]
Alan Viverettea75e3d62021-06-23 17:38:25 -04001/*
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 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 */
Alan Viverettea75e3d62021-06-23 17:38:25 -040024import androidx.build.Publish
25
26plugins {
27 id("AndroidXPlugin")
28 id("com.android.library")
29 id("androidx.benchmark")
30}
31
32dependencies {
Aurimas Liutikasd02fb062023-11-10 17:18:40 -080033 androidTestImplementation("androidx.core:core:1.3.0")
Alan Viverettea75e3d62021-06-23 17:38:25 -040034 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 Liutikas4c1dac82022-08-26 23:25:50 +000046 androidTestImplementation(libs.multidex)
Alan Viverettea75e3d62021-06-23 17:38:25 -040047}
48
49androidx {
Alan Viverettec9e1fd72023-05-08 17:36:59 -040050 name = "Slice Benchmarks"
Alan Viverette08681cf2023-03-08 14:47:53 -050051 publish = Publish.NONE // Library is deprecated pending removal.
Alan Viverettea75e3d62021-06-23 17:38:25 -040052 mavenVersion = LibraryVersions.SLICE_BENCHMARK
Alan Viverettea75e3d62021-06-23 17:38:25 -040053 inceptionYear = "2018"
54 description = "RecyclerView Benchmarks"
Marcello Albanod80729f2023-05-02 15:13:17 -070055
56 deviceTests {
57 // Pending removal, don't run tests.
58 enabled = false
59 }
Alan Viverettea75e3d62021-06-23 17:38:25 -040060}
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070061
62android {
63 namespace "androidx.slice.benchmark"
Aurimas Liutikas4c1dac82022-08-26 23:25:50 +000064 defaultConfig {
65 multiDexEnabled = true
66 }
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070067}