1// Copyright (C) 2021 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    // all of the 'license_kinds' from "art_license"
19    // to get the below license kinds:
20    //   SPDX-license-identifier-Apache-2.0
21    default_applicable_licenses: ["art_license"],
22}
23
24// Encapsulate the contributions made by the com.android.art to the bootclasspath.
25bootclasspath_fragment {
26    name: "art-bootclasspath-fragment",
27    image_name: "art",
28    // Must match the ART_APEX_JARS set in build/make/core/envsetup.mk
29    contents: [
30        "core-oj",
31        "core-libart",
32        "okhttp",
33        "bouncycastle",
34        "apache-xml",
35    ],
36
37    api: {
38        stub_libs: [
39            // Stubs for the core-oj and core-libart. The other modules do not
40            // have any public API.
41            "art.module.public.api",
42        ],
43    },
44    core_platform_api: {
45        stub_libs: [
46            // Core platform (aka. module_lib) stubs for all the non-coverage contents.
47            "art.module.public.api.stubs.module_lib",
48        ],
49    },
50
51    // Additional properties to append when coverage is enabled, i.e. when
52    // EMMA_INSTRUMENT_FRAMEWORK=true
53    coverage: {
54        contents: [
55            "jacocoagent",
56        ],
57        api: {
58            stub_libs: [
59                // Stubs for the jacocoagent.
60                "jacoco-stubs",
61            ],
62        },
63    },
64    visibility: [
65        "//art/build/apex",
66        "//art/build/sdk",
67    ],
68    apex_available: [
69        "com.android.art",
70        "com.android.art.debug",
71    ],
72
73    hidden_api: {
74        blocked: ["hiddenapi/hiddenapi-blocked.txt"],
75        max_target_o_low_priority: ["hiddenapi/hiddenapi-max-target-o-low-priority.txt"],
76        unsupported_packages: ["hiddenapi/hiddenapi-unsupported-packages.txt"],
77    },
78}
79