1/* 2 * Copyright 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 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 */ 24import androidx.build.ApkCopyHelperKt 25import androidx.build.SoftwareType 26 27plugins { 28 id("AndroidXPlugin") 29 id("com.android.application") 30} 31 32dependencies { 33 api(libs.jspecify) 34 implementation("androidx.appcompat:appcompat:1.1.0") 35 implementation("androidx.core:core:1.1.0") 36 implementation("androidx.annotation:annotation:1.8.1") 37 implementation(project(":webkit:webkit")) 38 implementation(libs.guavaAndroid) 39 implementation(libs.espressoIdlingNet) 40 implementation(libs.espressoIdlingResource) 41 implementation(libs.okhttpMockwebserver) 42 43 androidTestImplementation(libs.testExtJunit) 44 androidTestImplementation(libs.testCore) 45 androidTestImplementation(libs.testRunner) 46 androidTestImplementation(libs.testRules) 47 androidTestImplementation(libs.espressoCore) 48 androidTestImplementation(libs.bundles.espressoContrib) 49 androidTestImplementation(libs.espressoIdlingResource) 50 androidTestImplementation(libs.espressoWeb) 51 androidTestImplementation(libs.mockitoCore) 52 androidTestImplementation(libs.dexmakerMockito) 53} 54 55// We want to publish a release apk of this project for webkit team's use 56ApkCopyHelperKt.setupAppApkCopy(project, "release") 57 58android { 59 lint { 60 disable.add("UnusedResources") 61 } 62 buildTypes { 63 release { 64 minifyEnabled = true 65 } 66 } 67 namespace = "com.example.androidx.webkit" 68} 69 70androidx { 71 name = "WebKit Test App" 72 type = SoftwareType.TEST_APPLICATION 73 inceptionYear = "2017" 74 description = "The WebKit Support Library test application is a demonstration of the APIs provided in the androidx.webkit library." 75 additionalDeviceTestApkKeys.add("chrome") 76} 77