• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15package {
16    // See: http://go/android-license-faq
17    // A large-scale-change added 'default_applicable_licenses' to import
18    default_applicable_licenses: ["packages_modules_appsearch_license"],
19}
20
21// Added automatically by a large-scale-change
22// See: http://go/android-license-faq
23license {
24    name: "packages_modules_appsearch_license",
25    visibility: [":__subpackages__"],
26    license_kinds: [
27        "SPDX-license-identifier-Apache-2.0",
28    ],
29    license_text: [
30        "NOTICE",
31    ],
32}
33
34sdk {
35    name: "appsearch-sdk",
36    bootclasspath_fragments: ["com.android.appsearch-bootclasspath-fragment"],
37    systemserverclasspath_fragments: ["com.android.appsearch-systemserverclasspath-fragment"],
38}
39
40apex {
41    name: "com.android.appsearch",
42    manifest: "apex_manifest.json",
43    bootclasspath_fragments: ["com.android.appsearch-bootclasspath-fragment"],
44    systemserverclasspath_fragments: ["com.android.appsearch-systemserverclasspath-fragment"],
45    key: "com.android.appsearch.key",
46    certificate: ":com.android.appsearch.certificate",
47    defaults: ["t-launched-apex-module"],
48    jni_libs: ["libicing"],
49    prebuilts: ["current_sdkinfo"],
50    min_sdk_version: "33",
51}
52
53apex_key {
54    name: "com.android.appsearch.key",
55    public_key: "com.android.appsearch.avbpubkey",
56    private_key: "com.android.appsearch.pem",
57}
58
59android_app_certificate {
60    name: "com.android.appsearch.certificate",
61    // This will use com.android.appsearch.x509.pem (the cert) and
62    // com.android.appsearch.pk8 (the private key)
63    certificate: "com.android.appsearch",
64}
65
66// Encapsulate the contributions made by the com.android.appsearch to the bootclasspath.
67bootclasspath_fragment {
68    name: "com.android.appsearch-bootclasspath-fragment",
69    contents: ["framework-appsearch"],
70    apex_available: ["com.android.appsearch"],
71
72    // The bootclasspath_fragments that provide APIs on which this depends.
73    fragments: [
74        {
75            apex: "com.android.art",
76            module: "art-bootclasspath-fragment",
77        },
78    ],
79
80    // Additional stubs libraries that this fragment's contents use which are
81    // not provided by another bootclasspath_fragment.
82    additional_stubs: [
83        "android-non-updatable",
84    ],
85
86    hidden_api: {
87        // This module does not contain any split packages.
88        split_packages: [],
89
90        // The following packages and all their subpackages currently only
91        // contain classes from this bootclasspath_fragment. Listing a package
92        // here won't prevent other bootclasspath modules from adding classes in
93        // any of those packages but it will prevent them from adding those
94        // classes into an API surface, e.g. public, system, etc.. Doing so will
95        // result in a build failure due to inconsistent flags.
96        package_prefixes: [
97            "android.app.appsearch",
98        ],
99    },
100}
101
102// Encapsulate the contributions made by the com.android.appsearch to the systemserverclasspath.
103systemserverclasspath_fragment {
104    name: "com.android.appsearch-systemserverclasspath-fragment",
105    contents: ["service-appsearch"],
106    apex_available: ["com.android.appsearch"],
107}
108