1/*
2 * Copyright 2017 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.application")
20    id("org.jetbrains.kotlin.android")
21}
22
23dependencies {
24    api(libs.kotlinStdlib)
25    implementation(project(":viewpager2:viewpager2"))
26    implementation("androidx.activity:activity-ktx:1.2.0")
27    // TODO(b/262583150): force tracing 1.1.0 since its required by androidTest
28    implementation("androidx.tracing:tracing:1.1.0")
29    implementation(libs.material) {
30        exclude group: "androidx.viewpager2", module: "viewpager2"
31    }
32
33    // Align default and test configuration dependencies by forcing both to use
34    // tip-of-tree core, thus avoiding a TaskDependencyResolveException.
35    implementation("androidx.core:core:1.15.0")
36    androidTestImplementation("androidx.core:core:1.15.0")
37
38    androidTestImplementation(project(":internal-testutils-espresso"))
39    androidTestImplementation(libs.testRules)
40    androidTestImplementation(libs.testExtJunit)
41    androidTestImplementation(libs.espressoCore)
42}
43
44android {
45    compileSdk = 35
46    namespace = "androidx.viewpager2.integration.testapp"
47}
48