Xiaoyu Jin | 370c3e5 | 2021-08-17 21:14:55 +0800 | [diff] [blame] | 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 | */ |
Jelle Fresen | 4a13c56 | 2021-11-26 16:50:44 +0000 | [diff] [blame] | 16 | import androidx.build.LibraryType |
Xiaoyu Jin | 370c3e5 | 2021-08-17 21:14:55 +0800 | [diff] [blame] | 17 | |
| 18 | plugins { |
Aurimas Liutikas | 1fde311 | 2024-12-09 14:18:04 -0800 | [diff] [blame] | 19 | id("AndroidXPlugin") |
| 20 | id("com.android.library") |
Xiaoyu Jin | 370c3e5 | 2021-08-17 21:14:55 +0800 | [diff] [blame] | 21 | } |
| 22 | |
| 23 | dependencies { |
Julia McClellan | ead0fc6 | 2024-12-05 15:12:20 -0500 | [diff] [blame] | 24 | api(libs.jspecify) |
Aurimas Liutikas | ced7f81 | 2024-12-09 15:37:12 -0800 | [diff] [blame] | 25 | api("androidx.annotation:annotation:1.1.0") |
Xiaoyu Jin | 370c3e5 | 2021-08-17 21:14:55 +0800 | [diff] [blame] | 26 | |
| 27 | implementation(project(":appsearch:appsearch")) |
| 28 | implementation(project(":appsearch:appsearch-local-storage")) |
Aurimas Liutikas | b5d8a81 | 2024-07-25 16:29:20 -0700 | [diff] [blame] | 29 | implementation("androidx.collection:collection:1.4.2") |
Xiaoyu Jin | 370c3e5 | 2021-08-17 21:14:55 +0800 | [diff] [blame] | 30 | implementation(libs.truth) |
| 31 | |
| 32 | androidTestImplementation(libs.testCore) |
| 33 | androidTestImplementation(libs.testRules) |
| 34 | androidTestImplementation(libs.truth) |
Aurimas Liutikas | b20296a | 2021-12-21 15:56:47 -0800 | [diff] [blame] | 35 | androidTestImplementation(libs.junit) |
Xiaoyu Jin | 370c3e5 | 2021-08-17 21:14:55 +0800 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | androidx { |
| 39 | name = 'AppSearch Test Util' |
Jelle Fresen | 4a13c56 | 2021-11-26 16:50:44 +0000 | [diff] [blame] | 40 | type = LibraryType.INTERNAL_TEST_LIBRARY |
Xiaoyu Jin | 370c3e5 | 2021-08-17 21:14:55 +0800 | [diff] [blame] | 41 | inceptionYear = '2021' |
| 42 | description = 'Test Utilities to be used by any test module for AppSearch' |
| 43 | } |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 44 | |
| 45 | android { |
Aurimas Liutikas | 7795282 | 2024-12-04 18:00:17 -0800 | [diff] [blame] | 46 | compileSdk = 35 |
| 47 | namespace = "androidx.appsearch.testutil" |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 48 | } |