blob: 1c716980e6fff681dc791a44ef28c2cec76a356b [file] [log] [blame] [edit]
// Copyright (C) 2021 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_team: "trendy_team_aaos_framework",
default_applicable_licenses: ["Android-Apache-2.0"],
}
// This will replace the current android.car later. For now, use it only for testing / building
// purpose
// TODO(b/195961388): merge with android.car
java_sdk_library {
name: "android.car-module",
defaults: [
"car-framework-aconfig-libraries",
],
srcs: [
":android.car-full-src",
":com.android.car.internal.dep-src",
],
aidl: {
include_dirs: [
"packages/services/Car/car-lib/src",
"packages/modules/Bluetooth/framework/aidl-export",
],
},
sdk_version: "module_current",
// TODO(b/288271411): enable it when car mainline module is supported
// min_sdk_version: "33",
apex_available: [
"com.android.car.framework",
],
shared_library: false, // added to bootclasspath
libs: [
"android.car.builtin.stubs.module_lib",
"framework-annotations-lib",
"modules-utils-preconditions",
],
impl_only_libs: [
"framework-location.stubs.module_lib",
"framework-wifi.stubs.module_lib",
"framework-bluetooth.stubs.module_lib",
],
api_lint: {
enabled: true,
},
default_to_stubs: true,
// Need to update when merging with the current android.car
unsafe_ignore_missing_latest_api: true,
public: {
enabled: true,
sdk_version: "current",
libs: [
"framework-location.stubs",
"framework-wifi.stubs",
"framework-bluetooth.stubs",
],
},
test: {
enabled: true,
sdk_version: "test_current",
libs: [
"framework-location.stubs.test",
"framework-wifi.stubs.system",
"framework-bluetooth.stubs.system",
],
},
system: {
enabled: true,
sdk_version: "system_current",
libs: [
"framework-location.stubs.system",
"framework-wifi.stubs.system",
"framework-bluetooth.stubs.system",
],
},
module_lib: {
enabled: true,
sdk_version: "module_current",
libs: [
"framework-location.stubs.module_lib",
"framework-wifi.stubs.module_lib",
"framework-bluetooth.stubs.module_lib",
],
},
// stubs to everyone
stubs_library_visibility: ["//visibility:public"],
// Allowed car modules and some selected apps only
impl_library_visibility: [
"//packages/services/Car/service-builtin",
"//packages/services/Car/service",
"//frameworks/opt/car/services",
],
compile_dex: true,
installable: true,
lint: {
baseline_filename: "lint-baseline.xml",
},
}