• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19// This will replace the current android.car later. For now, use it only for testing / building
20// purpose
21// TODO(b/195961388): merge with android.car
22java_sdk_library {
23    name: "android.car-module",
24
25    srcs: [
26        ":android.car-full-src",
27    ],
28    aidl: {
29        include_dirs: [
30            "packages/services/Car/car-lib/src",
31            "packages/modules/Bluetooth/framework/aidl-export",
32        ],
33    },
34
35    sdk_version: "module_current",
36    min_sdk_version: "33",
37    apex_available: [
38        "com.android.car.framework"
39    ],
40    shared_library: false, // added to bootclasspath
41
42    libs: [
43        "android.car.builtin",
44        "framework-annotations-lib",
45        "modules-utils-preconditions",
46        "framework-wifi",
47        "framework-bluetooth",
48    ],
49    // Stub build drops module api and breaks build. Add it here.
50    stub_only_libs: [
51        "framework-wifi",
52        "framework-bluetooth",
53    ],
54
55    api_lint: {
56        enabled: true,
57    },
58
59    default_to_stubs: true,
60
61    // Need to update when merging with the current android.car
62    unsafe_ignore_missing_latest_api: true,
63
64    public: {
65        enabled: true,
66        sdk_version: "current",
67    },
68    test: {
69        enabled: true,
70        sdk_version: "test_current",
71    },
72    system: {
73        enabled: true,
74        sdk_version: "system_current",
75    },
76    module_lib: {
77        enabled: true,
78        sdk_version: "module_current",
79    },
80
81    // stubs to everyone
82    stubs_library_visibility: ["//visibility:public"],
83
84    // Allowed car modules and some selected apps only
85    impl_library_visibility: [
86        "//packages/services/Car/service-builtin",
87        "//packages/services/Car/service",
88        "//frameworks/opt/car/services",
89    ],
90
91    compile_dex: true,
92
93    installable: true,
94}
95