1/** 2 * This file was created using the `create_project.py` script located in the 3 * `<AndroidX root>/development/project-creator` directory. 4 * 5 * Please use that script when creating a new project, rather than copying an existing project and 6 * modifying its settings. 7 */ 8 9import androidx.build.SoftwareType 10 11plugins { 12 id("AndroidXPlugin") 13 id("com.android.library") 14} 15 16android { 17 namespace = "androidx.webkit.instrumentation" 18 19 flavorDimensions = ["targetSdk"] 20 21 productFlavors { 22 targetSdk32 { 23 dimension = "targetSdk" 24 25 } 26 targetSdkLatest { 27 dimension = "targetSdk" 28 // uses default config 29 } 30 } 31} 32 33androidComponents { 34 beforeVariants(selector().withFlavor("targetSdk", "targetSdk32")) { variant -> 35 variant.androidTest.targetSdk = 32 36 } 37} 38 39dependencies { 40 api(libs.jspecify) 41 androidTestImplementation(project(":webkit:webkit")) 42 androidTestImplementation(project(":webkit:integration-tests:common")) 43 44 androidTestImplementation(libs.okhttpMockwebserver) 45 androidTestImplementation(libs.testExtJunit) 46 androidTestImplementation(libs.testCore) 47 androidTestImplementation(libs.testRunner) 48 androidTestImplementation(libs.testRules) 49 androidTestImplementation("androidx.appcompat:appcompat:1.1.0") 50 androidTestImplementation("androidx.concurrent:concurrent-futures:1.0.0") 51 androidTestImplementation(libs.mockitoCore) 52 androidTestImplementation(libs.dexmakerMockito) 53 54 // Hamcrest matchers: 55 androidTestImplementation(libs.bundles.espressoContrib) 56} 57 58androidx { 59 type = type = SoftwareType.INTERNAL_TEST_LIBRARY 60 additionalDeviceTestApkKeys.add("chrome") 61} 62