blob: 60cc3bec0a9d16cba3f6279d2333f40eaa754bf5 [file] [log] [blame]
Terry Wangecc0d1b2019-10-17 17:05:18 -07001// 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
15filegroup {
16 name: "framework-appsearch-sources",
17 srcs: [
18 "java/**/*.java",
19 "java/**/*.aidl",
20 ],
21 path: "java",
22}
23
24java_library {
25 name: "framework-appsearch",
Alexander Dorokhine04a05a82019-12-17 10:41:21 -080026 installable: true,
27 sdk_version: "core_platform", // TODO(b/146218515) should be core_current
28 srcs: [":framework-appsearch-sources"],
Jiyong Parkc81df3f2020-01-06 13:30:59 +090029 hostdex: true, // for hiddenapi check
Terry Wangecc0d1b2019-10-17 17:05:18 -070030 libs: [
Alexander Dorokhine04a05a82019-12-17 10:41:21 -080031 "framework-minus-apex", // TODO(b/146218515) should be framework-system-stubs
Terry Wangecc0d1b2019-10-17 17:05:18 -070032 ],
Jiyong Park476008f2020-01-06 14:31:07 +090033 visibility: ["//frameworks/base/apex/appsearch:__subpackages__"],
Jiyong Parkc81df3f2020-01-06 13:30:59 +090034 apex_available: ["com.android.appsearch"],
Terry Wangecc0d1b2019-10-17 17:05:18 -070035}
Alexander Dorokhine04a05a82019-12-17 10:41:21 -080036
Alexander Dorokhine04a05a82019-12-17 10:41:21 -080037droidstubs {
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 Park476008f2020-01-06 14:31:07 +090046 defaults: ["framework-module-stubs-defaults-systemapi"],
47 sdk_version: "system_current",
Alexander Dorokhine04a05a82019-12-17 10:41:21 -080048}
49
50java_library {
51 name: "framework-appsearch-stubs",
52 srcs: [":framework-appsearch-stubs-srcs"],
53 aidl: {
54 export_include_dirs: [
55 "java",
56 ],
57 },
Jiyong Park476008f2020-01-06 14:31:07 +090058 sdk_version: "system_current",
Alexander Dorokhine04a05a82019-12-17 10:41:21 -080059 installable: false,
60}