Terry Wang | ecc0d1b | 2019-10-17 17:05:18 -0700 | [diff] [blame] | 1 | // Copyright (C) 2019 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | filegroup { |
| 16 | name: "framework-appsearch-sources", |
| 17 | srcs: [ |
| 18 | "java/**/*.java", |
| 19 | "java/**/*.aidl", |
| 20 | ], |
| 21 | path: "java", |
| 22 | } |
| 23 | |
| 24 | java_library { |
| 25 | name: "framework-appsearch", |
Alexander Dorokhine | 04a05a8 | 2019-12-17 10:41:21 -0800 | [diff] [blame] | 26 | installable: true, |
| 27 | sdk_version: "core_platform", // TODO(b/146218515) should be core_current |
| 28 | srcs: [":framework-appsearch-sources"], |
Jiyong Park | c81df3f | 2020-01-06 13:30:59 +0900 | [diff] [blame] | 29 | hostdex: true, // for hiddenapi check |
Terry Wang | ecc0d1b | 2019-10-17 17:05:18 -0700 | [diff] [blame] | 30 | libs: [ |
Alexander Dorokhine | 04a05a8 | 2019-12-17 10:41:21 -0800 | [diff] [blame] | 31 | "framework-minus-apex", // TODO(b/146218515) should be framework-system-stubs |
Terry Wang | ecc0d1b | 2019-10-17 17:05:18 -0700 | [diff] [blame] | 32 | ], |
Jiyong Park | 476008f | 2020-01-06 14:31:07 +0900 | [diff] [blame] | 33 | visibility: ["//frameworks/base/apex/appsearch:__subpackages__"], |
Jiyong Park | c81df3f | 2020-01-06 13:30:59 +0900 | [diff] [blame] | 34 | apex_available: ["com.android.appsearch"], |
Terry Wang | ecc0d1b | 2019-10-17 17:05:18 -0700 | [diff] [blame] | 35 | } |
Alexander Dorokhine | 04a05a8 | 2019-12-17 10:41:21 -0800 | [diff] [blame] | 36 | |
Alexander Dorokhine | 04a05a8 | 2019-12-17 10:41:21 -0800 | [diff] [blame] | 37 | droidstubs { |
| 38 | name: "framework-appsearch-stubs-srcs", |
| 39 | srcs: [ |
| 40 | ":framework-annotations", |
| 41 | ":framework-appsearch-sources", |
| 42 | ], |
| 43 | aidl: { |
| 44 | include_dirs: ["frameworks/base/core/java"], |
| 45 | }, |
Jiyong Park | 476008f | 2020-01-06 14:31:07 +0900 | [diff] [blame] | 46 | defaults: ["framework-module-stubs-defaults-systemapi"], |
| 47 | sdk_version: "system_current", |
Alexander Dorokhine | 04a05a8 | 2019-12-17 10:41:21 -0800 | [diff] [blame] | 48 | } |
| 49 | |
| 50 | java_library { |
| 51 | name: "framework-appsearch-stubs", |
| 52 | srcs: [":framework-appsearch-stubs-srcs"], |
| 53 | aidl: { |
| 54 | export_include_dirs: [ |
| 55 | "java", |
| 56 | ], |
| 57 | }, |
Jiyong Park | 476008f | 2020-01-06 14:31:07 +0900 | [diff] [blame] | 58 | sdk_version: "system_current", |
Alexander Dorokhine | 04a05a8 | 2019-12-17 10:41:21 -0800 | [diff] [blame] | 59 | installable: false, |
| 60 | } |