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 17plugins { 18 id("AndroidXPlugin") 19 id("com.android.test") 20 id("org.jetbrains.kotlin.android") 21} 22 23android { 24 defaultConfig { 25 minSdk = 23 26 compileSdk = 35 27 } 28 namespace = "androidx.glance.appwidget.macrobenchmark" 29 targetProjectPath = ":glance:glance-appwidget:integration-tests:macrobenchmark-target" 30 experimentalProperties["android.experimental.self-instrumenting"] = true 31} 32 33// Create a release build type and make sure it's the only one enabled. 34// This is needed because we benchmark the release build type only. 35android.buildTypes { release {} } 36androidComponents { beforeVariants(selector().all()) { enabled = buildType == 'release' } } 37 38dependencies { 39 implementation("androidx.compose.ui:ui-unit:1.2.1") 40 implementation(project(":benchmark:benchmark-macro")) 41 implementation(project(":benchmark:benchmark-common")) 42 implementation(project(":benchmark:benchmark-macro-junit4")) 43 implementation("androidx.core:core-ktx:1.7.0") 44 implementation(project(":glance:glance")) 45 implementation(project(":glance:glance-appwidget")) 46 implementation(project(":internal-testutils-macrobenchmark")) 47 implementation(libs.kotlinTest) 48 implementation(libs.testRules) 49 implementation(libs.testExtJunit) 50 implementation(libs.testCore) 51 implementation(libs.testRunner) 52 implementation(libs.testUiautomator) 53} 54