1/* 2 * Copyright 2021 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 */ 16import androidx.build.SoftwareType 17 18plugins { 19 id("AndroidXPlugin") 20 id("com.android.library") 21} 22 23dependencies { 24 api(libs.jspecify) 25 api("androidx.annotation:annotation:1.1.0") 26 27 implementation(project(":appsearch:appsearch")) 28 implementation(project(":appsearch:appsearch-local-storage")) 29 implementation("androidx.collection:collection:1.4.2") 30 implementation(libs.truth) 31 32 androidTestImplementation(libs.testCore) 33 androidTestImplementation(libs.testRules) 34 androidTestImplementation(libs.truth) 35 androidTestImplementation(libs.junit) 36} 37 38androidx { 39 name = 'AppSearch Test Util' 40 type = SoftwareType.INTERNAL_TEST_LIBRARY 41 inceptionYear = '2021' 42 description = 'Test Utilities to be used by any test module for AppSearch' 43} 44 45android { 46 compileSdk = 36 47 namespace = "androidx.appsearch.testutil" 48} 49